/* Google Fonts — @import as local-dev fallback in case wp_enqueue_style URL fails */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* ============================================================
   Améline Homepage – homepage.css
   Brand colours (also in :root of style.css):
     Gold        #ecc882
     Navy        #081C40
     Red         #9B2226
     White       #F8F6F4
     Dark Navy   #061530
     Gold Dim    rgba(236, 200, 130, 0.15)
   ============================================================ */

/* ── Reset / base ──────────────────────────────────────────── */
.ameline-page {
    font-family: 'Montserrat', sans-serif;
    color: var(--ameline-white);
    background-color: var(--ameline-navy);
    overflow-x: hidden;
}

.ameline-page *,
.ameline-page *::before,
.ameline-page *::after {
    box-sizing: border-box;
}

/* Hide the default page title Solace injects */
.ameline-page .entry-title,
.ameline-page .page-title,
.ameline-page .entry-header {
    display: none;
}

/* ── Utility ────────────────────────────────────────────────── */
.ameline-section {
    padding: 96px 20px;
}

.ameline-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.ameline-section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--ameline-white);
    text-align: center;
    margin: 0 0 14px;
    letter-spacing: 0.04em;
}

/* 40px gold accent line under headings — per brand tokens */
.ameline-gold-line {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--ameline-gold);
    margin: 0 auto 52px;
    opacity: 1;
    box-shadow: 0 0 8px rgba(236, 200, 130, 0.4);
}

/* ── Keyframe animations ────────────────────────────────────── */
@keyframes ameline-fade-down {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ameline-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ameline-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   1. HERO SECTION
   French tricolour — solid bold colour bands, softly blended.
   Inline style on the <section> sets the actual background;
   this CSS rule is the fallback / source of truth.
   ============================================================ */
.ameline-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px;
    overflow: hidden;

    /* French-inspired gradient: deep blue left, dark navy centre, deep red right */
    background:
        linear-gradient(
            to right,
            rgba(0, 35, 149, 0.55)  0%,
            rgba(0, 35, 149, 0.25) 30%,
            transparent            50%,
            rgba(155, 34, 38, 0.25) 70%,
            rgba(155, 34, 38, 0.50) 100%
        ),
        #081C40;

}

.ameline-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
}

/* Hero text — gold/white on dark background */
.ameline-hero__wordmark {
    font-family: 'Dancing Script', cursive !important;
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 700;
    color: #ecc882 !important;
    -webkit-text-fill-color: #ecc882 !important;
    line-height: 1;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
    text-shadow:
        0 0 60px rgba(236, 200, 130, 0.30),
        0 0 140px rgba(236, 200, 130, 0.12);

    animation: ameline-fade-down 1.1s ease both;
}

.ameline-hero__tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 3.5vw, 1.8rem);
    font-weight: 300;
    font-style: italic;
    color: var(--ameline-white);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0 0 6px;

    animation: ameline-fade-up 1.1s 0.3s ease both;
}

.ameline-hero__divider {
    display: block;
    width: 80px;
    height: 1px;
    background: var(--ameline-gold);
    margin: 26px auto;
    opacity: 0.55;

    animation: ameline-fade-in 1.2s 0.5s ease both;
}

.ameline-hero__sub {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(248, 246, 244, 0.70);
    margin: 0 0 52px;

    animation: ameline-fade-up 1.1s 0.6s ease both;
}

/* CTA button — BUG-20: navy border + navy text, hover fills navy with gold text */
.ameline-hero__cta {
    display: inline-block;
    padding: 16px 48px;
    background: transparent;
    border: 2px solid #081C40;
    color: #081C40;
    border-radius: 50px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s ease;

    animation: ameline-fade-up 1.1s 0.8s ease both;
}

.ameline-hero__cta:hover,
.ameline-hero__cta:focus {
    background: #081C40;
    color: #ecc882;
    text-decoration: none;
}

/* ============================================================
   2. LIVE AUCTIONS — dark navy #061530
   ============================================================ */
.ameline-auctions {
    background-color: var(--ameline-dark-navy);
    padding: 96px 20px;
}

.ameline-auctions .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--ameline-white);
}

.ameline-auctions .woocommerce ul.products li.product .price {
    color: var(--ameline-gold);
}

/* ============================================================
   3. FEATURES — navy #081C40
   ============================================================ */
.ameline-features {
    background-color: var(--ameline-navy);
}

.ameline-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .ameline-features__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card: gold-dim border, near-invisible gold tint background */
.ameline-feature-card {
    background: rgba(236, 200, 130, 0.03);
    border: 0.5px solid var(--ameline-gold-dim);
    padding: 52px 36px;
    text-align: center;
    transition: border-color 0.4s ease, transform 0.4s ease, background 0.4s ease;
}

.ameline-feature-card:hover {
    border-color: var(--ameline-gold);
    transform: translateY(-4px);
    background: rgba(236, 200, 130, 0.06);
}

.ameline-feature-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid rgba(236, 200, 130, 0.35);
    padding: 12px;
    transition: border-color 0.4s ease;
}

.ameline-feature-card:hover .ameline-feature-card__icon {
    border-color: var(--ameline-gold);
}

.ameline-feature-card__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--ameline-gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ameline-feature-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--ameline-gold);
    margin: 0 0 14px;
    letter-spacing: 0.02em;
}

.ameline-feature-card__desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--ameline-white);
    opacity: 0.8;
    line-height: 1.85;
    margin: 0;
}

/* ============================================================
   4. TESTIMONIALS — dark navy #061530
   ============================================================ */
.ameline-testimonials {
    background-color: var(--ameline-dark-navy);
}

.ameline-testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .ameline-testimonials__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ameline-testimonial-card {
    background: rgba(236, 200, 130, 0.03);
    border: 0.5px solid var(--ameline-gold-dim);
    padding: 48px 36px 36px;
    position: relative;
    transition: border-color 0.4s ease;
}

.ameline-testimonial-card:hover {
    border-color: rgba(236, 200, 130, 0.4);
}

/* Large, prominent gold quote mark */
.ameline-testimonial-card__quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 7rem;
    line-height: 1;
    color: var(--ameline-gold);
    opacity: 0.75;
    position: absolute;
    top: 12px;
    left: 24px;
    font-weight: 400;
    pointer-events: none;
    user-select: none;
}

.ameline-testimonial-card__body {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem; /* 16px */
    font-style: italic;
    font-weight: 300;
    color: var(--ameline-white);
    line-height: 1.85;
    margin: 44px 0 28px;
}

.ameline-testimonial-card__name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ameline-gold);
}

/* ============================================================
   5. CTA SECTION — navy #081C40, gold line dividers
   ============================================================ */
.ameline-cta-section {
    background-color: var(--ameline-navy);
    text-align: center;
    position: relative;
}

/* Gold line dividers above and below content */
.ameline-cta-section::before,
.ameline-cta-section::after {
    content: '';
    display: block;
    width: 160px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ameline-gold), transparent);
    margin: 0 auto 44px;
}

.ameline-cta-section::after {
    margin: 44px auto 0;
}

.ameline-cta-section__headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.7rem, 4.5vw, 2.8rem);
    font-weight: 400;
    color: var(--ameline-white);
    margin: 0 0 40px;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

/* "bold elegance" — gold italic */
.ameline-cta-section__headline em {
    color: var(--ameline-gold);
    font-style: italic;
    font-weight: 400;
}

.ameline-btn {
    display: inline-block;
    padding: 17px 48px;
    border: 1.5px solid var(--ameline-gold);
    color: var(--ameline-gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.4s ease, color 0.4s ease;
}

.ameline-btn:hover,
.ameline-btn:focus {
    background: var(--ameline-gold);
    color: var(--ameline-navy);
    text-decoration: none;
}

/* Footer styles removed — all footer rules live in style.css only */

/* ============================================================
   Responsive — mobile-first adjustments
   ============================================================ */
@media (max-width: 767px) {
    .ameline-section {
        padding: 60px 20px;
    }

    .ameline-hero {
        min-height: 70vh !important;
        padding: 100px 20px 60px !important;
    }

    .ameline-feature-card {
        padding: 40px 28px;
    }

    .ameline-testimonial-card {
        padding: 40px 28px 32px;
    }

    .ameline-testimonial-card__quote-mark {
        font-size: 5.5rem;
    }

    .ameline-cta-section::before,
    .ameline-cta-section::after {
        width: 100px;
    }

    .ameline-hero__wordmark,
    .ameline-hero-title {
        font-size: 4rem !important;
    }

    .ameline-hero-subtitle,
    .ameline-hero__tagline {
        font-size: 12px !important;
        letter-spacing: 3px !important;
    }
}

@media (max-width: 480px) {
    .ameline-hero__wordmark,
    .ameline-hero-title {
        font-size: 3rem !important;
    }
}

/* ── Hero title — supports both .ameline-hero__wordmark (template) and
      .ameline-hero-title (utility alias)
   ────────────────────────────────────────────────────────── */
.ameline-hero-title {
    font-family: 'Dancing Script', cursive !important;
    color: #ecc882 !important;
    font-size: 8rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 2px 40px rgba(236, 200, 130, 0.2) !important;
    animation: fadeUp 1s ease-out !important;
}

/* Update existing wordmark to match larger size on desktop */
.ameline-hero__wordmark {
    font-size: clamp(4rem, 12vw, 8rem) !important;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── BUG-3: Hero CTA button — gold border, visible on dark hero
   Targets the actual class used in template-ameline-home.php
   ─────────────────────────────────────────────────────────── */
.ameline-hero .ameline-hero__cta,
.ameline-hero-cta a,
.ameline-hero .ameline-hero-cta a {
    border: 1.5px solid #ecc882 !important;
    color: #ecc882 !important;
    background: transparent !important;
    border-radius: 50px !important;
    padding: 16px 48px !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: all 0.4s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.ameline-hero .ameline-hero__cta:hover,
.ameline-hero-cta a:hover,
.ameline-hero .ameline-hero-cta a:hover {
    background: #ecc882 !important;
    color: #081C40 !important;
    border-color: #ecc882 !important;
    box-shadow: 0 4px 15px rgba(236, 200, 130, 0.3) !important;
}

/* ── BUG-6: Hero entrance animations
   Uses actual class names from template-ameline-home.php
   ─────────────────────────────────────────────────────────── */
@keyframes amelineFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ameline-hero__wordmark,
.ameline-hero-title {
    animation: amelineFadeUp 1s ease-out 0.2s both !important;
}

.ameline-hero__tagline,
.ameline-hero-subtitle {
    animation: amelineFadeUp 1s ease-out 0.4s both !important;
}

.ameline-hero__sub,
.ameline-hero-tagline {
    animation: amelineFadeUp 1s ease-out 0.6s both !important;
}

.ameline-hero__cta,
.ameline-hero-cta {
    animation: amelineFadeUp 1s ease-out 0.8s both !important;
}

/* Footer social hover removed — moved to style.css */

/* ── Lining figures: prevent old-style descenders (5, 3, 7) in Cormorant Garamond ── */
.ameline-auctions .woocommerce ul.products li.product .price,
.ameline-auctions .woocommerce ul.products li.product .woocommerce-Price-amount,
.ameline-auctions .woocommerce ul.products li.product .amount,
.ameline-card-bid,
.ameline-card-price,
.ameline-current-bid-value,
.ameline-bid-info .info-value,
.ameline-countdown .value,
.woocommerce-Price-amount,
.amount {
    font-feature-settings: "lnum" 1, "tnum" 1 !important;
    font-variant-numeric: lining-nums tabular-nums !important;
}

/* ── HERO MOBILE FIX — increased specificity for clamp() override ── */
@media (max-width: 480px) {
    .ameline-hero.ameline-hero .ameline-hero__wordmark {
        font-size: 2.8rem !important;
        line-height: 1.05 !important;
    }
    .ameline-hero.ameline-hero .ameline-hero__sub,
    .ameline-hero.ameline-hero .ameline-hero__tagline {
        font-size: 0.75rem !important;
        letter-spacing: 0.18em !important;
    }
}

/* ── HOMEPAGE UI FIXES ─────────────────────────────────────── */

/* ISSUE #1 — Homepage auction grid: 4 columns, equal-height cards */
.ameline-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    align-items: stretch !important;
}

/* FIX 2 — Card equal height: flex column so body stretches */
.ameline-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
@media (max-width: 1024px) {
    .ameline-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .ameline-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ISSUE #2 — Card body equal height */
.ameline-card__body {
    flex: 1 !important;
    min-height: 294px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ISSUE #3 — Features and testimonials grids: mobile responsive */
@media (max-width: 767px) {
    .ameline-features__grid,
    .ameline-testimonials__grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .ameline-features__grid,
    .ameline-testimonials__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ISSUE #5 and #6 — Footer social icon rules removed — moved to style.css */

/* ISSUE #30 — Mobile grid overflow fixes */
@media (max-width: 767px) {
    .ameline-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
}
@media (max-width: 480px) {
    .ameline-grid {
        grid-template-columns: 1fr !important;
    }
}

/* FIX 7 — Homepage countdown card: branded font */
.ameline-card__countdown,
.ameline-card__countdown-wrap {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 15px !important;
    color: rgba(248, 246, 244, 0.7) !important;
    letter-spacing: 1px !important;
    font-feature-settings: "lnum" 1, "tnum" 1 !important;
}

/* FIX 8 — Hero CTA button border weight */
.ameline-hero__cta {
    border-width: 1.5px !important;
}
