/*
 * PikuCam Landing Page - Custom Styles
 * Following BEM (Block Element Modifier) Methodology
 * Critical CSS for layout (Tailwind CDN backup)
 */

/* ==========================================================================
   Header Fixes for Twenty Twenty-Five Theme
   ========================================================================== */

/* Fix header icon alignment - generic selectors for any theme */
header nav,
header .wp-block-navigation,
.wp-block-navigation__responsive-container-content {
    display: flex !important;
    align-items: center !important;
}

/* Ensure header buttons/icons align properly */
header .wp-block-navigation__responsive-container-open,
header .wp-block-navigation__responsive-container-close {
    display: flex !important;
    align-items: center !important;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tailwind-like utility classes for layout */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

/* Order utilities */
.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

/* Responsive grid columns for large screens */
@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .lg\:gap-20 {
        gap: 5rem;
    }
    .lg\:order-1 {
        order: 1;
    }
    .lg\:order-2 {
        order: 2;
    }
    .lg\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    .lg\:pt-36 {
        padding-top: 9rem;
    }
    .lg\:pt-56 {
        padding-top: 14rem;
    }
    .lg\:pb-32 {
        padding-bottom: 8rem;
    }
    .lg\:pl-20 {
        padding-left: 5rem;
    }
    .lg\:mb-32 {
        margin-bottom: 8rem;
    }
    .lg\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
    .lg\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}

@media (min-width: 640px) {
    .sm\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    .sm\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .sm\:hidden {
        display: none;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:gap-10 {
        gap: 2.5rem;
    }
    .md\:gap-12 {
        gap: 3rem;
    }
    .md\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .md\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .md\:px-12 {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    .md\:py-12 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .md\:py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .md\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    .md\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    .md\:pt-12 {
        padding-top: 3rem;
    }
    .md\:pt-20 {
        padding-top: 5rem;
    }
    .md\:pt-28 {
        padding-top: 7rem;
    }
    .md\:pt-48 {
        padding-top: 12rem;
    }
    .md\:pb-12 {
        padding-bottom: 3rem;
    }
    .md\:pb-24 {
        padding-bottom: 6rem;
    }
    .md\:hidden {
        display: none;
    }
    .md\:mb-5 {
        margin-bottom: 1.25rem;
    }
    .md\:mb-6 {
        margin-bottom: 1.5rem;
    }
    .md\:mb-8 {
        margin-bottom: 2rem;
    }
    .md\:mb-20 {
        margin-bottom: 5rem;
    }
    .md\:mb-24 {
        margin-bottom: 6rem;
    }
    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .md\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    .md\:text-left {
        text-align: left;
    }
    .md\:mx-0 {
        margin-left: 0;
        margin-right: 0;
    }
    .md\:max-w-3xl {
        max-width: 48rem;
    }
    .md\:w-16 {
        width: 4rem;
    }
    .md\:h-16 {
        height: 4rem;
    }
}

/* Text alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Position utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Width and height */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.w-2 {
    width: 0.5rem;
}

.h-2 {
    height: 0.5rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

/* Min height */
.min-h-screen {
    min-height: 100vh;
    min-height: 100svh;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Z-index */
.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

/* Flex utilities */
.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-col {
    flex-direction: column;
}

/* Object fit */
.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

/* Rounded corners */
.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

/* Display */
.inline-block {
    display: inline-block;
}

/* Remove underline from links */
a {
    text-decoration: none;
}

/* Gradient backgrounds */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-black\/60 {
    --tw-gradient-from: rgba(0, 0, 0, 0.6);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-black\/30 {
    --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 0, 0, 0.3), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.to-black\/80 {
    --tw-gradient-to: rgba(0, 0, 0, 0.95);
}

.bg-gradient-to-tr {
    background-image: linear-gradient(to top right, var(--tw-gradient-stops));
}

.bg-gradient-to-tl {
    background-image: linear-gradient(to top left, var(--tw-gradient-stops));
}

.from-warm-brown\/20 {
    --tw-gradient-from: rgba(115, 50, 24, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(115, 50, 24, 0));
}

.to-transparent {
    --tw-gradient-to: transparent;
}

/* Backdrop blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Background */
.bg-white {
    background-color: #ffffff;
}

.bg-black {
    background-color: #000000;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

/* Text colors */
.text-white {
    color: #ffffff;
}

.text-black {
    color: #000000;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

/* Warm brown colors */
.bg-warm-brown {
    background-color: #733218;
}

.text-warm-brown {
    color: #733218;
}

.bg-warm-brown-light {
    background-color: #87462C;
}

/* Spacing utilities - padding */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pt-12 {
    padding-top: 3rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.pb-12 {
    padding-bottom: 3rem;
}

.pt-20 {
    padding-top: 5rem;
}

.pt-32 {
    padding-top: 8rem;
}

/* Spacing utilities - margin */
.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Max width */
.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-7xl {
    max-width: 80rem;
}

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Typography */
.font-sans {
    font-family: 'Inter', sans-serif;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Text sizes */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

/* Shadows */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-all-around {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Transform */
.transform {
    transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

/* Hover states */
.hover\:bg-warm-brown-light:hover {
    background-color: #87462C;
}

.hover\:bg-white:hover {
    background-color: #ffffff;
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:text-white:hover {
    color: #ffffff;
}

/* Group hover */
.group:hover .group-hover\:bg-warm-brown {
    background-color: #733218;
}

.group:hover .group-hover\:text-white {
    color: #ffffff;
}

/* Pointer events */
.pointer-events-none {
    pointer-events: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background: #ffffff;
    color: #000000;
}

/* Critical Layout CSS - Ensures layout works even if Tailwind fails */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}
@media (min-width: 768px) {
    .container { max-width: 768px; padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Basic utility classes removed - let Tailwind handle these */

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.overflow-hidden {
    overflow: hidden;
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen.loaded {
    opacity: 0;
    pointer-events: none;
}

.loading-bar {
    width: 150px;
    max-width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar__progress {
    height: 100%;
    background: linear-gradient(90deg, #733218, #87462C);
    width: 0%;
    animation: loadProgress 1s ease-out forwards;
    box-shadow: 0 0 15px rgba(115, 50, 24, 0.8);
    border-radius: 2px;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }
    50% {
        width: 60%;
    }
    100% {
        width: 100%;
    }
}

/* Prevent flash of unstyled content */
body {
    opacity: 1 !important;
}

/* ==========================================================================
   Discount Banner - Animated scrolling text
   ========================================================================== */

.discount-banner {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.discount-banner__track {
    display: flex;
    animation: scroll-left 20s linear infinite;
    white-space: nowrap;
}

.discount-banner__text {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.875rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .discount-banner__text {
        font-size: 0.75rem;
        padding: 0 1.5rem;
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

/* ==========================================================================
   Navigation - Removed (WordPress theme will provide header)
   ========================================================================== */

/* ==========================================================================
   Hero Section with Slider
   ========================================================================== */

.hero {
    position: relative;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    min-height: 100vh;
    min-height: 100svh; /* Use small viewport height for mobile */
}

/* Hero slider container - force full height */
.hero__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100svh;
}

/* Hero Slider - Smooth crossfade */
.hero__slide {
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100svh;
}

.hero__slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Ensure picture element fills container */
.hero__slide picture {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.hero__bg-image {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100svh;
    filter: blur(2px);
    display: block;
}

/* Fix image display on mobile */
@media (max-width: 768px) {
    .hero__bg-image {
        object-fit: cover;
        object-position: center center;
        filter: blur(3px);
    }

    .hero__slide {
        width: 100%;
        height: 100%;
    }
}

/* Slider Navigation Dots - Force small size */
.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0 !important;
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
}

.slider-dot.active {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.4);
}

/* Mobile: Make dots even smaller */
@media (max-width: 768px) {
    .slider-dot {
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
        min-height: 8px !important;
        max-width: 8px !important;
        max-height: 8px !important;
    }

    .slider-dot.active {
        transform: scale(1.3);
    }
}

@media (max-width: 480px) {
    .slider-dot {
        width: 6px !important;
        height: 6px !important;
        min-width: 6px !important;
        min-height: 6px !important;
        max-width: 6px !important;
        max-height: 6px !important;
    }

    .slider-dot.active {
        transform: scale(1.2);
    }
}

/* Slider Arrows */
.hero__arrow {
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.hero__arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Hero Content */
.hero__content {
    padding: 20px 0;
    max-width: 100%;
    opacity: 0;
    animation: heroFadeIn 1s ease-out 0.3s forwards;
}

/* CSS-based hero animation for iOS reliability */
@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile padding fix */
@media (max-width: 640px) {
    .hero__content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Prevent horizontal overflow on all sections */
section {
    max-width: 100vw;
    overflow-x: hidden;
}


/* Prevent horizontal scrollbars only */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* No overflow on hero section */
.hero {
    overflow: hidden;
}

.hero__content,
.hero__content * {
    overflow: visible;
}

/* Hero title - Mobile optimized */
.hero__title {
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero__subtitle {
    letter-spacing: 0.02em;
}

/* Hero description - One line on desktop, wrap on mobile */
.hero__description {
    white-space: normal;
}

@media (min-width: 768px) {
    .hero__description {
        white-space: nowrap;
    }
}

/* Scroll indicator animation */
.scroll-indicator {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Remove outline and make click state subtle */
.btn:focus,
.btn:active {
    outline: none;
    box-shadow: none;
}

.btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn--primary,
.btn--hero,
.btn--cta {
    box-shadow: 0 4px 14px 0 rgba(115, 50, 24, 0.39);
}

.btn--primary:hover,
.btn--hero:hover,
.btn--cta:hover {
    box-shadow: 0 4px 12px 0 rgba(115, 50, 24, 0.3);
    transform: translateY(-1px);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    position: relative;
}

.features__grid {
    display: grid !important;
}

.features__title,
.features__subtitle {
    display: block;
}

.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1 !important;
    transform: translateY(0);
    display: block !important;
    visibility: visible !important;
    min-height: 200px;
    border-radius: 16px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-card__title {
    color: #000000;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card__description {
    color: #4B5563;
    line-height: 1.75;
    display: block;
}

.feature-card--visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card__icon-wrapper {
    background-color: rgba(115, 50, 24, 0.1);
    border-radius: 12px;
}

.feature-card__icon {
    color: #733218;
}

/* Staggered animation delays for feature cards */
.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* ==========================================================================
   Product Showcase
   ========================================================================== */

.product-showcase {
    position: relative;
}

.product-display {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Safari fix: Force grid layout for desktop */
@media (min-width: 1024px) {
    .product-showcase .product-display {
        display: -ms-grid !important;
        display: grid !important;
        -ms-grid-columns: 1fr 1fr !important;
        grid-template-columns: 1fr 1fr !important;
        align-items: center !important;
        gap: 5rem !important;
        column-gap: 5rem !important;
    }

    .product-display__image,
    .product-display__content {
        display: block !important;
        width: 100% !important;
    }
}

.product-display--visible {
    opacity: 1;
    transform: translateY(0);
}

.product-display__image {
    position: relative;
}

.product-display__image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.product-display__image:hover img {
    transform: scale(1.02);
}

/* Image loading effect */
.product-display__image img {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Image Slider Section
   ========================================================================== */

.image-slider-section {
    position: relative;
}

.slider-container {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #f3f4f6;
    min-height: 300px;
    overflow: hidden;
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
}

.slider-slide {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.slider-slide img {
    transition: transform 0.3s ease;
}

.slider-slide:hover img {
    transform: scale(1.02);
}

.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    transform: scale(1.4);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
    position: relative;
}

.cta__title {
    letter-spacing: -0.02em;
}

.cta__price {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    position: relative;
}

.footer__social a:hover svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #733218;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5F1E04;
}

/* Loading state */
.loading {
    opacity: 0;
    pointer-events: none;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Slide up animation */
.slide-up {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* ==========================================================================
   Responsive Design Enhancements
   ========================================================================== */

/* ==========================================================================
   Mobile-First Optimizations (PRIMARY FOCUS)
   ========================================================================== */

/* Base mobile styles */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero {
        min-height: 100svh; /* Better mobile viewport */
    }

    .hero__title {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .hero__description {
        font-size: 0.875rem;
    }


    /* Features Section Mobile */
    .features {
        padding: 2rem 0;
    }

    .features__title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .features__subtitle {
        font-size: 1rem;
    }

    .features__grid {
        gap: 1.5rem;
    }

    .feature-card {
        margin-bottom: 0.5rem;
        padding: 1.5rem;
    }

    .feature-card__icon-wrapper {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 1rem;
    }

    .feature-card__icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .feature-card__title {
        font-size: 1rem;
    }

    .feature-card__description {
        font-size: 1rem;
    }

    /* Product Showcase Mobile */
    .product-showcase {
        padding: 3rem 0;
    }

    .product-display {
        margin-bottom: 3rem;
        gap: 2rem;
    }

    .product-display h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .product-display p {
        font-size: 1rem;
    }

    .product-display__image img {
        border-radius: 1.5rem;
    }

    /* CTA Section Mobile */
    .cta {
        padding: 3rem 0;
    }

    .cta__title {
        font-size: 2rem;
    }

    .cta__subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta__price {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .cta__buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 0;
    }

    .footer__content {
        gap: 2rem;
    }

    /* Touch-friendly targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__cta {
        padding: 0 0.5rem;
    }

    .features__title {
        font-size: 1.25rem;
    }

    .product-display h2 {
        font-size: 1.25rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero__title {
        font-size: 4rem;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop optimizations */
@media (min-width: 1025px) {
    .container {
        max-width: 1280px;
    }

    .hero__title {
        font-size: 6rem;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Focus states for keyboard navigation - removed brown outline */
a:focus,
button:focus {
    outline: none;
}

/* Keep focus visible for accessibility but make it subtle */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(115, 50, 24, 0.3);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn--primary,
    .btn--hero,
    .btn--cta {
        border: 2px solid currentColor;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .nav,
    .hero__scroll,
    .footer__social {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}

/* Give hero room for scroll indicator on mobile */
@media (max-width: 768px) {
    #hero {
        padding-bottom: 4rem;
    }
}