/* ======================================
   AISLES APP - DARK MODE REPLICA
   Design Tokens: Deep Navy / Playfair / Pill Shapes
   ====================================== */

/* ----- CSS Custom Properties (Retailer Mode Default) ----- */
:root {
    /* Dark Mode: Deep Navy */
    --color-bg: #020617;
    /* Slate 950 */
    --color-surface: #0F172A;
    /* Slate 900 */
    --color-surface-hover: #1E293B;
    /* Slate 800 */

    /* Text */
    --color-text: #F8FAFC;
    /* Slate 50 */
    --color-text-muted: #94A3B8;
    /* Slate 400 */

    /* Navy as primary (kept for brand, but might need adjustment on dark) */
    --color-primary: #3B82F6;
    /* Blue 500 for better visibility on dark */
    --color-primary-hover: #60A5FA;
    /* Blue 400 */

    /* Sky Blue for accents */
    --color-secondary: #0EA5E9;

    --color-border: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-pill: 9999px;
    --radius-card: 24px;

    /* Shadows */
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ----- Reset & Base ----- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ----- Layout Utilities ----- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
    /* Offset for fixed header */
}

.grid {
    display: grid;
    gap: 2rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----- Typography ----- */
.display-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.text-lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 500px;
    margin-bottom: 2rem;
}

.text-highlight {
    color: var(--color-secondary);
}

/* ----- Components: Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ----- Components: Address Input (App Style) ----- */
.address-input-wrapper {
    background: var(--color-surface);
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    max-width: 500px;
    box-shadow: var(--shadow-glow);
    transition: border-color 0.3s ease;
}

.address-input-wrapper:focus-within {
    border-color: var(--color-primary);
}

.address-input-wrapper i {
    color: var(--color-primary);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.address-input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    flex: 1;
    font-size: 1rem;
    outline: none;
}

.address-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ----- Components: App Cards ----- */
.app-card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ----- Header / Nav ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.mobile-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media(max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}

/* ----- Hero Section ----- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(238, 238, 150, 0.1) 0%, transparent 25%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-phones {
    position: relative;
    /* Simulate the 3-phone layout from Figma if possible, 
       or just a clean placeholder for the app screens */
    height: 600px;
    background: url('assets/images/hero-visual.webp') no-repeat center center;
    background-size: contain;
}

/* "City Grid" Visual Effect (Background pattern) */
.bg-grid {
    position: absolute;
    inset: 0;
    /* Brighter grid lines (0.15) for better visibility */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    /* Brought up slightly to sit behind content but visible */
    pointer-events: none;
    /* Ensure it doesn't block clicks */

    /* Spotlight Effect: Default to center, updated by JS */
    --x: 50%;
    --y: 50%;
    /* Larger, sharper mask */
    mask-image: radial-gradient(600px circle at var(--x) var(--y), black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(600px circle at var(--x) var(--y), black 20%, transparent 70%);
}

/* ----- Features / Browse ----- */
.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.product-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: none;
    /* Firefox */
}

.product-scroll::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 250px;
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.product-img {
    height: 180px;
    background: #25253A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    padding: 1rem;
}

.product-price {
    color: var(--color-accent-green);
    font-weight: 600;
}

.product-name {
    font-weight: 600;
    margin: 0.25rem 0;
    font-family: var(--font-heading);
}

.product-store {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ----- Footer ----- */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 4rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-logo {
    height: 40px;
    margin: 0 auto 1.5rem;
    opacity: 0.8;
}

/* ----- Features Grid ----- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ----- Mobile Responsiveness ----- */
@media (max-width: 900px) {
    .display-title {
        font-size: 2.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-phones {
        height: 400px;
        order: -1;
    }

    .address-input-wrapper {
        margin: 0 auto;
    }
}

/* Retailer Global Styles */
/* Retailer Global Styles */
.navbar {
    background: rgba(2, 6, 23, 0.8);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(20px);
}

.hero {
    background:
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(15, 23, 42, 0.05) 0%, transparent 25%);
}



/* ======================================
   RETAILER OVERHAUL: UTILITIES
   ====================================== */

/* Device Frame: Makes a screenshot look like a phone */
/* Device Frame: Standardized Phone Container */
.device-frame {
    position: relative;
    width: 300px;
    height: 600px;
    /* Standard height for all screens */
    border-radius: 40px;
    border: 8px solid #1A1A2E;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.1),
        /* Outer bevel */
        0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* Drop shadow */
    overflow: hidden;
    background: #000;

    /* Image handling */
    object-fit: cover;
    object-position: top center;
    /* Focus on top of app */
    display: block;
    /* Remove inline-block spacing */
    margin: 0 auto;
    /* Center in container */
}

/* Floating UI Elements */
.floating-ui {
    position: relative;
    background: rgba(30, 41, 59, 0.9);
    /* Darker background */
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: max-content;
    /* Animation handled by wrapper or inline */
    animation: flyIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.floating-wrapper {
    position: absolute;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes flyIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating-ui.dark {
    background: #1A1A2E;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alternating Feature Rows - Clean & Aligned */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* Standard gap */
    align-items: center;
    margin-bottom: 6rem;
    /* Consistent vertical spacing */
    max-width: 1000px;
    /* Readability constraint */
    margin-left: auto;
    margin-right: auto;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse>* {
    direction: ltr;
    /* Reset text direction */
}

.feature-text {
    padding: 1rem;
}

.feature-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.feature-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    /* Breathing room */
}



.feature-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Mobile Adjustments for New Layout */
@media (max-width: 900px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 3rem;
        direction: ltr !important;
        /* Disable alternation on mobile */
        text-align: center;
    }

    .feature-visual {
        order: -1;
        /* Visual first on mobile */
    }

    .feature-text h3 {
        font-size: 2rem;
    }
}

/* ======================================
   FAQ Styles
   ====================================== */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--color-text-muted);
}

/* Active State */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.1);
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust if content is very long */
}

/* ======================================
   Product Card Popup
   ====================================== */
.floating-ui.product-card,
.floating-ui.dark {
    background: #1F2937;
    /* Unified dark grey (Gray-800) */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}/* ==========================================================================
   Trust Logos Component
   - Responsive grid of client/partner logos
   - Grayscale to color hover effect
   - Configurable via CSS variables
   ========================================================================== */

.trust-logos {
    padding: var(--section-padding, 60px 0);
    background: var(--trust-logos-bg, var(--color-surface, #f8f9fa));
}

.trust-logos__heading {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-muted, #6c757d);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-logos__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-logo-item img {
    max-height: var(--trust-logo-height, 50px);
    max-width: var(--trust-logo-max-width, 150px);
    width: auto;
    height: auto;
    object-fit: contain;

    /* Grayscale effect */
    filter: grayscale(100%);
    opacity: 0.6;

    /* Smooth transition */
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.trust-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ==========================================================================
   Variants
   ========================================================================== */

/* Dark background variant */
.trust-logos--dark {
    background: var(--color-dark, #1a1a2e);
}

.trust-logos--dark .trust-logos__heading {
    color: rgba(255, 255, 255, 0.7);
}

.trust-logos--dark .trust-logo-item img {
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 0.5;
}

.trust-logos--dark .trust-logo-item img:hover {
    filter: grayscale(0%) brightness(1) invert(0);
    opacity: 1;
}

/* No heading variant */
.trust-logos--no-heading .trust-logos__heading {
    display: none;
}

/* Compact variant (less padding) */
.trust-logos--compact {
    padding: 30px 0;
}

.trust-logos--compact .trust-logos__grid {
    gap: 1.5rem 2rem;
}

/* Large logos variant */
.trust-logos--large .trust-logo-item img {
    max-height: 70px;
    max-width: 180px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .trust-logos {
        padding: 40px 0;
    }

    .trust-logos__heading {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .trust-logos__grid {
        gap: 1.5rem 2rem;
        padding: 0 1rem;
    }

    .trust-logo-item img {
        max-height: 40px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .trust-logos__grid {
        gap: 1rem 1.5rem;
    }

    .trust-logo-item img {
        max-height: 35px;
        max-width: 100px;
    }
}
