/* ============================================
   TURATHYA - LANDING PAGE STYLES
   Hero, featured sections, trust elements
   ============================================ */

/* ── Featured Auctions — dark Islamic pattern background ── */
.section--featured-bg {
  position: relative;
  background-image: url('../../assets/images/bg-1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Semi-transparent overlay for text legibility */
.section--featured-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content sits above the overlay */
.section--featured-bg .container {
  position: relative;
  z-index: 1;
}

/* Light text colour overrides */
.text-light {
  color: #f5f0e8 !important;
}


/* ==================== TRANSPARENT HEADER FOR LANDING ==================== */

/* Override header styles on landing page only */
#landing-page .header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
}

#landing-page .header .logo {
    display: flex;
    background: transparent !important;
    padding: 0;
}

#landing-page .header .logo img {
    background: transparent !important;
    /* Convert burgundy logo to pure white for dark navbar */
    filter: brightness(0) invert(1) contrast(1.2);
}

/* Mobile hamburger spans → white on dark landing navbar */
#landing-page .header .mobile-menu-toggle {
    color: #fff;
}

#landing-page .header .nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    font-family: var(--font-brand);
    font-size: var(--text-md);
    font-weight: var(--weight-normal);
}

#landing-page .header .nav-link:hover {
    color: var(--color-white);
}

#landing-page .header .btn-ghost {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

#landing-page .header .btn-ghost:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    padding: 36px 0;
    position: relative;
    overflow: hidden;
    background: #240d0a;
    border-bottom: 1px solid rgba(180, 60, 90, 0.25);
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(220, 80, 110, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(7, auto);
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.stat-item {
    text-align: center;
    padding: 18px 16px;
    min-width: 120px;
}

.stat-label {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    margin-top: 12px;
}

.stat-number {
    font-family: var(--font-brand);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: #D4AF37;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(201, 169, 110, 0.22);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        padding: 0 20px;
    }

    .stat-divider {
        display: none;
    }

    .stat-label {
        font-size: 16px;
    }

    .stat-number {
        font-size: clamp(32px, 8vw, 48px);
    }
}

/* ==================== FEATURED PRODUCTS (BEIGE CARDS) ==================== */
#featured-auctions .card {
    background: #F5F0E8;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#featured-auctions .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

#featured-auctions .card-image {
    background: #EDE8DF;
    aspect-ratio: 1 / 1;
}

#featured-auctions .card-content {
    padding: 20px;
}

#featured-auctions .label {
    font-family: var(--font-brand);
    font-size: 13px;
    color: #8B6914;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#featured-auctions .card-title {
    font-family: var(--font-brand);
    font-size: 20px;
    font-weight: 700;
    color: #2C1810;
    margin-bottom: 12px;
    line-height: 1.3;
}

#featured-auctions .card-subtitle {
    font-family: var(--font-brand);
    font-size: 14px;
    color: #6F6258;
    margin-bottom: 12px;
}

#featured-auctions .card-footer {
    border-top: none;
    color: #2C1810;
}

/* ==================== HERO SECTION ==================== */

.hero {
    /* Full viewport height for true full-screen hero */
    min-height: 100vh;
    height: 100vh;
    /* Fallback background if video fails */
    background: linear-gradient(to bottom, var(--color-ivory), var(--color-parchment));
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    /* Use CSS Grid for perfect centering */
    display: grid;
    place-items: center;
    text-align: center;
    /* Horizontal padding only - vertical centering handled by grid */
    padding: 0 var(--space-6);
}

.hero-video-container {
    /* Absolute positioning to cover entire hero */
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    /* Absolute positioning to cover entire hero */
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Subtle gradient for text readability - not over-darkened */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.35) 50%,
            rgba(0, 0, 0, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Content sits above overlay */
    max-width: 900px;
    width: 100%;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    color: var(--color-white);
    /* Elegant text shadow for depth */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-subtitle-content);
    font-weight: var(--weight-light);
    max-width: var(--subtitle-max-width);
    margin-left: auto;
    margin-right: auto;
    /* Subtle text shadow for elegance */
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-search {
    position: relative;
    z-index: 20;
    max-width: 600px;
    margin: 0 auto;
}

.hero-search .form-input {
    padding: var(--space-4) var(--space-12);
    font-size: var(--text-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
    /* Glass morphism */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    transition: all var(--duration-normal) var(--ease-elegant);
}

.hero-search .form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hero-search .form-input:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    pointer-events: auto;
}

.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-suggestions-section {
    padding: var(--space-4);
}

.search-suggestions-title {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
    padding: 0 var(--space-2);
}

.suggestion-card {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-2);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-elegant);
    text-decoration: none;
    color: inherit;
}

.suggestion-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.suggestion-card-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.suggestion-card-content {
    flex: 1;
    min-width: 0;
}

.suggestion-card-title {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-1);
}

.suggestion-card-price {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-olive);
}

.suggestion-card-auction {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.suggestion-card-auction .suggestion-card-image {
    width: 100px;
    height: 80px;
}

.no-results {
    padding: var(--space-6);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-base);
}

/* Scroll Indicator */
.scroll-indicator {
    /* Absolute positioning to place at bottom of hero */
    position: absolute;
    bottom: var(--space-12);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 1;
}

.scroll-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: var(--weight-normal);
    color: rgba(255, 255, 255, 0.8);
}

.scroll-arrow {
    color: rgba(255, 255, 255, 0.8);
    width: 20px;
    height: 20px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Responsive */
@media (max-width: 639px) {
    .hero {
        /* Account for header height and safe areas on mobile */
        /* Header is roughly 60px on mobile (reduced padding + safe area) */
        min-height: 100vh;
        height: 100vh;
        /* Use padding-top to push content below header */
        padding-top: calc(60px + env(safe-area-inset-top, 0px));
        padding-left: var(--space-4);
        padding-right: var(--space-4);
        padding-bottom: var(--space-4);
        /* Grid will center content in remaining space */
    }

    .hero-content {
        /* Ensure content has breathing room */
        padding-top: var(--space-8);
    }

    .hero-title {
        font-size: var(--text-3xl);
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-8);
    }

    .hero-search .form-input {
        font-size: var(--text-base);
        padding: var(--space-3) var(--space-10);
    }

    .scroll-indicator {
        bottom: calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
        /* Account for bottom safe area (home indicator) */
    }
}

@media (min-width: 1024px) {
    .hero {
        /* Full viewport on desktop */
        min-height: 100vh;
        height: 100vh;
    }

    .hero-title {
        font-size: var(--text-6xl);
    }

    .hero-subtitle {
        font-size: var(--text-2xl);
    }
}

/* ==================== SECTION HEADERS ==================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-section-sm);
}

.section-header h2 {
    margin-bottom: var(--space-title-subtitle);
}

.section-header p {
    font-size: var(--text-lg);
    max-width: var(--subtitle-max-width);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-subtitle-content);
}

/* ==================== TRUST SECTION ==================== */

.trust-section {
    position: relative;
    background-color: #1a1208;
    background-image: url('../../assets/images/fill-bg-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: none;
    border-bottom: none;
    overflow: hidden;
}
.trust-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    pointer-events: none;
    z-index: 0;
}
.trust-section .container {
    position: relative;
    z-index: 1;
}

.trust-item {
    text-align: center;
    padding: var(--space-6);
}

.trust-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6) auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a96e;
    background-color: rgba(201,169,110,0.15);
    border: 1px solid rgba(201,169,110,0.30);
    border-radius: 50%;
}

.trust-item h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: #ffffff;
}

.trust-item p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    margin: 0;
    color: rgba(255,255,255,0.72);
}

/* ==================== RESPONSIVE GRID ADJUSTMENTS ==================== */

@media (max-width: 639px) {
    .section-header {
        margin-bottom: var(--space-subtitle-content);
    }

    .trust-item {
        padding: var(--space-4);
    }

    .trust-icon {
        width: 48px;
        height: 48px;
        margin-bottom: var(--space-4);
    }

    .trust-item h3 {
        font-size: var(--text-lg);
    }

    .trust-item p {
        font-size: var(--text-sm);
    }
}


/* ==================== CTA BAND (PREMIUM BURGUNDY) ==================== */

.cta-band {
    background-color: #1a1208;         /* deep fallback if image fails */
    background-image: url('../../assets/images/fill-bg-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-ivory, #FAF8F3);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(250, 248, 243, 0.15);
    overflow: hidden;
}

/* Dark overlay for text legibility over the pattern */
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    pointer-events: none;
    z-index: 0;
}

/* Luxury Grain Overlay */
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Heritage Corner Ornaments */
.cta-ornament {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(250, 248, 243, 0.25);
    transform: rotate(45deg);
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(250, 248, 243, 0.05);
}

.cta-ornament::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(250, 248, 243, 0.15);
}

.cta-ornament--tl {
    top: 24px;
    left: 24px;
}

.cta-ornament--tr {
    top: 24px;
    right: 24px;
}

.cta-ornament--bl {
    bottom: 24px;
    left: 24px;
}

.cta-ornament--br {
    bottom: 24px;
    right: 24px;
}

.cta-band__inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    position: relative;
    z-index: 3;
    /* Ensure content sits above patterns and ornaments */
}

.cta-band__eyebrow {
    display: block;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(250, 248, 243, 0.85);
    margin-bottom: var(--space-4);
    opacity: 0;
    animation: ctaFadeInUp 0.8s ease-out forwards;
}

.cta-band__title {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: var(--weight-semibold);
    line-height: 1.2;
    color: #FAF8F3;
    margin-bottom: var(--space-6);
    opacity: 0;
    animation: ctaFadeInUp 0.8s ease-out 0.1s forwards;
}

.cta-band__desc {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: rgba(250, 248, 243, 0.9);
    margin-bottom: var(--space-10);
    max-width: var(--text-max-width);
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: ctaFadeInUp 0.8s ease-out 0.2s forwards;
}

.cta-band__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    opacity: 0;
    animation: ctaFadeInUp 0.8s ease-out 0.3s forwards;
}

/* Primary Button — Brand Gold */
.btn-cta-band-primary {
    display: inline-block;
    padding: var(--space-3) var(--space-8);
    background-color: #C6A46C;
    color: #1a0f0a;
    border: 1px solid #C6A46C;
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-cta-band-primary:hover {
    background-color: #d4b47c;
    border-color: #d4b47c;
    color: #1a0f0a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

/* Secondary Button (Transparent) */
.btn-cta-band-secondary {
    display: inline-block;
    padding: var(--space-3) var(--space-8);
    background-color: transparent;
    color: #FAF8F3;
    border: 1px solid rgba(250, 248, 243, 0.4);
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-band-secondary:hover {
    background-color: rgba(250, 248, 243, 0.1);
    border-color: #FAF8F3;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Animation Keyframes */
@keyframes ctaFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 639px) {
    .cta-band {
        padding: 3rem 0;
    }

    .cta-band__title {
        font-size: var(--text-2xl);
    }

    .cta-band__desc {
        font-size: var(--text-base);
    }

    .cta-band__actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .btn-cta-band-primary,
    .btn-cta-band-secondary {
        width: 100%;
        text-align: center;
    }

    .cta-ornament {
        display: none;
    }

    .cta-band__inner {
        padding: 0 var(--space-6);
    }
}