/* ==========================================================================
   ImImprint - Handmade Folding Camping Chair
   Custom Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-primary-bg: #ffffff;
    --color-secondary-bg: #5c4939;
    --color-primary-text: #000000;
    --color-secondary-text: #ffffff;
    --color-dark-accent: #414833;
    
    /* Derived colors */
    --color-secondary-bg-light: #6d5a4a;
    --color-secondary-bg-dark: #4a3a2d;
    --color-dark-accent-light: #525940;
    
    /* Typography */
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --section-padding-mobile: 80px;
    
    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-primary-text);
    background-color: var(--color-primary-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   Brand Typography
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Logo Styles
   -------------------------------------------------------------------------- */
.navbar-logo {
    height: 40px;
    width: auto;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 512px;
}

.footer-logo {
    height: 32px;
    width: auto;
}

@media (max-width: 991.98px) {
    .hero-logo {
        max-height: 256px;
    }
}

@media (max-width: 575.98px) {
    .navbar-logo {
        height: 32px;
    }
    
    .hero-logo {
        max-height: 256px;
    }
    
    .footer-logo {
        height: 28px;
    }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand:hover .navbar-logo {
    opacity: 0.8;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-primary-text) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary-bg);
    transition: all 0.3s var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: calc(100% - 2rem);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-purchase {
    background-color: var(--color-secondary-bg);
    color: var(--color-secondary-text);
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--color-secondary-bg);
    transition: all 0.3s var(--transition-smooth);
}

.btn-purchase:hover {
    background-color: var(--color-dark-accent);
    border-color: var(--color-dark-accent);
    color: var(--color-secondary-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(92, 73, 57, 0.3);
}

.btn-purchase:active {
    transform: translateY(0);
}

.btn-outline-dark {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 50px;
    border-width: 2px;
    font-weight: 500;
}

.btn-outline-dark:hover {
    background-color: var(--color-primary-text);
    border-color: var(--color-primary-text);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    background-color: var(--color-primary-bg);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(92, 73, 57, 0.03) 100%);
    pointer-events: none;
}

.hero-content {
    padding: 2rem 0;
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-dark-accent);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: #555;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80%;
    height: 80%;
    background-color: var(--color-secondary-bg);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.1;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-secondary-bg);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-secondary-bg), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--transition-smooth) forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Story Section
   -------------------------------------------------------------------------- */
.story-section {
    background-color: var(--color-secondary-bg);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}


.story-content {
    position: relative;
    z-index: 1;
}

.story-lead {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--color-secondary-text);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.story-divider {
    width: 80px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 2rem auto;
}

.story-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.story-quote {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    color: var(--color-secondary-text);
    margin-top: 3rem;
    padding: 2rem;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    border-right: 3px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.features-section {
    padding: var(--section-padding) 0;
    background-color: var(--color-primary-bg);
}

.features-image-wrapper {
    position: relative;
}

.features-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    border-radius: 12px;
    transition: all 0.3s var(--transition-smooth);
}

.feature-item:hover {
    background-color: rgba(92, 73, 57, 0.05);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: var(--color-secondary-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary-text);
    font-size: 1.25rem;
}

.feature-content h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Gallery Section
   -------------------------------------------------------------------------- */
.gallery-section {
    padding: var(--section-padding) 0;
    background-color: var(--color-dark-accent);
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s var(--transition-smooth);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-smooth);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s var(--transition-smooth);
}

.lightbox-modal.active .lightbox-image {
    transform: scale(1);
}

/* --------------------------------------------------------------------------
   Specifications Section
   -------------------------------------------------------------------------- */
.specs-section {
    padding: var(--section-padding) 0;
    background-color: var(--color-primary-bg);
}

.specs-image-wrapper {
    position: relative;
}

.specs-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.spec-item {
    background: linear-gradient(135deg, rgba(92, 73, 57, 0.05) 0%, rgba(92, 73, 57, 0.1) 100%);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-label {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-secondary-bg);
}

.materials-section h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--color-dark-accent);
}

.materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.material-tag {
    background-color: var(--color-dark-accent);
    color: var(--color-secondary-text);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--color-secondary-bg) 0%, var(--color-secondary-bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: ctaPulse 15s linear infinite;
}

@keyframes ctaPulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    color: var(--color-secondary-text);
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-section .btn-purchase {
    background-color: var(--color-secondary-text);
    color: var(--color-secondary-bg);
    border-color: var(--color-secondary-text);
}

.cta-section .btn-purchase:hover {
    background-color: transparent;
    color: var(--color-secondary-text);
    border-color: var(--color-secondary-text);
}

.cta-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-primary-bg);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
}

.footer-brand:hover .footer-logo {
    opacity: 0.8;
}

.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    color: #666;
    margin-bottom: 0;
}

.footer-etsy-link {
    color: var(--color-secondary-bg);
    font-weight: 500;
}

.footer-etsy-link:hover {
    color: var(--color-dark-accent);
}

.footer-divider {
    margin: 2rem 0;
    opacity: 0.1;
}

.footer-copyright {
    color: #999;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-content {
        text-align: center;
        padding: 2rem 0 3rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        margin-top: 2rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .btn-purchase {
        display: block;
        width: 100%;
        margin-top: 1rem;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .gallery-image {
        height: 250px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-cta .btn.ms-3 {
        margin-left: 0 !important;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 575.98px) {
    .story-quote {
        padding: 1.5rem 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item:hover {
        transform: translateY(-5px);
    }
    
    .feature-icon {
        margin: 0 auto;
    }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .navbar,
    .scroll-indicator,
    .lightbox-modal,
    .cta-section {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0;
    }
    
    body {
        font-size: 12pt;
    }
}

