/* Home Page Specific Styles */

html {
    scroll-behavior: smooth;
}

/* Sticky Navbar for better UX */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(239, 244, 248, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Site Themed Search Bar */
.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-inner {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-inner:focus-within {
    border-color: #111827;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #1f2937;
    font-family: 'Lato', sans-serif;
    padding: 12px 0;
    font-size: 1rem;
    outline: none;
    min-width: 0;
}

.search-input::placeholder {
    color: #6c757d;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.search-icon {
    color: #6c757d;
    margin-right: 12px;
    font-size: 1rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.search-inner:focus-within .search-icon {
    color: #111827;
}

.search-clear {
    display: none; /* Hidden by default */
    color: #9ca3af;
    cursor: pointer;
    margin-left: 8px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.search-clear:hover {
    color: #dc3545;
}

/* Split Hero Section Styles */
.hero-split {
    display: flex;
    flex-direction: column;
    min-height: 30vh; /* Reduced from 70vh to bring content below into view earlier */
    position: relative;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .hero-split {
        flex-direction: row;
    }
}

.hero-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: flex 0.4s ease;
    color: white;
}

.hero-option:hover {
    flex: 2; /* Increased for a more dramatic effect */
}

/* Spotlight Effect: Dim the side that isn't being hovered */
.hero-split:hover .hero-option:not(:hover) {
    filter: brightness(0.6);
}

/* Backgrounds with overlay */
.option-shop {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1562157873-818bc0726f68?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
}

.option-create {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1503341504253-dff4815485f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
}

.hero-content-inner {
    z-index: 2;
    max-width: 500px;
}

.hero-option h2 {
    font-size: var(--text-3xl); /* Larger, more editorial size */
    color: #ffffff; /* Force white text for visibility on dark bg */
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-option p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.95); /* High contrast white */
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    max-width: 80%; /* Constrain width for elegance */
    margin-left: auto;
    margin-right: auto;
}

@keyframes pulse-white {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.hero-or-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.2);
    animation: pulse-white 2s infinite;
}

@media (max-width: 767px) {
    .hero-or-divider { display: none; }
    .hero-split { min-height: auto; }
    .hero-option { padding: 1.5rem 1rem; }
    .hero-option h2 {
        font-size: var(--text-2xl);
        margin-bottom: 0.5rem;
    }
    .hero-option p {
        font-size: var(--text-body);
        margin-bottom: 1.2rem;
    }
}

/* Luxury Button Style for Hero Sections */
.hero-option .btn {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    font-weight: 600;
    letter-spacing: 0.15em; /* Editorial spacing */
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 50px; /* Match global pill shape */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-option .btn:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Steps (Integrated How-It-Works) */
.hero-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
}

.hero-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    position: relative;
}

.hero-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-step:hover .hero-step-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.hero-step-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-step-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Features / Trust Section */
.features-section {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #111827;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-family: 'Cinzel', serif;
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
    color: #111827;
}

.feature-item p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Mobile Adjustments to prevent overflow */
@media (max-width: 767px) {
    .features-section {
        padding: 3rem 1rem;
    }
    .hero-steps {
        gap: 0.5rem;
        margin: 1rem 0;
    }
    .hero-step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Specific adjustments for iPhone SE, 12 Pro and smaller screens */
@media (max-width: 430px) {
    .hero-option {
        padding: 1rem 0.5rem;
    }
    .hero-option h2 {
        font-size: var(--text-lg); /* Slightly smaller to prevent wrapping issues */
    }
    .hero-option .btn {
        font-size: 0.8rem;
        padding: 0.7rem 1rem;
        white-space: nowrap;
    }
    .hero-step-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}