/* ============================================
   SHOUCAIR COMMERCE CORPORATION
   Retro Pixel Art Website Stylesheet
   ============================================ */

/* --- Font Face --- */
@font-face {
    font-family: 'Mokoto';
    src: url('../assets/fonts/mokoto.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Design Tokens --- */
:root {
    /* From business cards */
    --color-bg-blue: #4AA3DF;
    --color-bg-blue-dark: #3788BF;
    --color-burgundy: #4f1932;
    --color-green: #43A047;
    --color-green-dark: #1b631b;
    --color-gold: #FDD835;
    --color-gold-warm: #e0b07b;
    --color-gold-light: #fcdd9c;
    --color-cream: #fcebc7;
    --color-red: #E53935;
    --color-red-dark: #9c172b;
    --color-brown: #bf640a;
    --color-brown-dark: #703216;

    /* From sister site - dark tones & accents */
    --color-navy: #0D1B2A;
    --color-dark: #1B2838;
    --color-sky: #4FC3F7;
    --color-sky-dark: #0288D1;
    --color-sky-light: #B3E5FC;
    --color-orange: #FB8C00;
    --color-purple: #7E57C2;
    --color-gray: #90A4AE;
    --color-black: #000000;
    --color-white: #F5F5F5;

    --font-heading: 'Mokoto', 'Press Start 2P', monospace;
    --font-body: 'VT323', monospace;

    --pixel-border: 4px solid var(--color-black);
    --pixel-shadow: 4px 4px 0px var(--color-black);

    --max-width: 1100px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-body);
    font-size: 22px;
    line-height: 1.5;
    color: var(--color-white);
    background: var(--color-navy);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Utility --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.section-heading .cursor {
    animation: blink 1s step-end infinite;
}

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

.section-subheading {
    font-family: var(--font-body);
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.85;
}

/* --- Pixel Button --- */
.pixel-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(0.7rem, 2vw, 0.95rem);
    background: var(--color-sky);
    color: var(--color-navy);
    border: var(--pixel-border);
    box-shadow: var(--pixel-shadow);
    padding: 14px 28px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    letter-spacing: 1px;
}

.pixel-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-black);
}

.pixel-btn:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.pixel-btn--red {
    background: var(--color-red);
    color: var(--color-white);
}

.pixel-btn--green {
    background: var(--color-green);
    color: var(--color-white);
}

/* --- Pixel Border Card --- */
.pixel-card {
    background: var(--color-white);
    border: var(--pixel-border);
    box-shadow: var(--pixel-shadow);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pixel-card:hover {
    transform: translateY(-4px);
    box-shadow: 4px 8px 0px var(--color-black);
}

/* ============================================
   NAVIGATION
   ============================================ */
.pixel-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(13, 27, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--color-sky-dark);
    transition: box-shadow 0.3s;
}

.pixel-nav.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-sky);
    letter-spacing: 2px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
}

.nav-logo span {
    color: var(--color-orange);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-white);
    text-shadow: 1px 1px 0 var(--color-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
    padding: 8px 0;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    image-rendering: pixelated;
    margin-right: 2px;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.pixel-hamburger,
.pixel-hamburger::before,
.pixel-hamburger::after {
    display: block;
    width: 28px;
    height: 4px;
    background: var(--color-white);
    box-shadow: 1px 1px 0 var(--color-black);
    transition: transform 0.3s, opacity 0.3s;
}

.pixel-hamburger {
    position: relative;
}

.pixel-hamburger::before,
.pixel-hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.pixel-hamburger::before { top: -9px; }
.pixel-hamburger::after { top: 9px; }

/* Hamburger open state */
.nav-toggle[aria-expanded="true"] .pixel-hamburger {
    background: transparent;
    box-shadow: none;
}
.nav-toggle[aria-expanded="true"] .pixel-hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .pixel-hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.section-hero {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 70px 24px 40px;
    background: #6BABDD;
    overflow: hidden;
}

/* Background pattern from business card */
.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/bg-pattern-seamless.png');
    background-size: 800px auto;
    background-repeat: repeat;
    pointer-events: none;
}


.hero-content {
    position: relative;
    z-index: 2;
}

.pixel-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    color: var(--color-white);
    text-shadow:
        3px 3px 0 var(--color-black),
        -1px -1px 0 var(--color-black);
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-orange);
    text-shadow: 2px 2px 0 var(--color-black);
    margin-bottom: 28px;
    letter-spacing: 2px;
}

.business-card-showcase {
    position: relative;
    z-index: 2;
    margin-top: 24px;
}

.card-img {
    border: var(--pixel-border);
    box-shadow: 6px 6px 0 var(--color-black);
    max-width: 320px;
    transition: transform 0.3s ease;
}

.card-img:hover {
    transform: rotate(-2deg) scale(1.02);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about {
    padding: 100px 0 80px;
    background: var(--color-dark);
    position: relative;
}

.section-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-sky), transparent);
}

.section-about .section-heading {
    color: var(--color-sky);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 24px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--color-gray);
}

.about-text strong {
    color: var(--color-orange);
}

.about-card {
    text-align: center;
}

.about-card .card-img {
    transform: rotate(-2deg);
}

.about-card .card-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.contact-card {
    margin-top: 32px;
}

.contact-card .card-img {
    max-width: 300px;
    transform: rotate(-2deg);
}

.contact-card .card-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.section-services {
    padding: 80px 0;
    background: #6BABDD;
    position: relative;
}

.section-services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/bg-pattern-seamless.png');
    background-size: 800px auto;
    background-repeat: repeat;
    pointer-events: none;
}

.section-services::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.section-services .section-heading {
    color: var(--color-white);
    text-shadow: 2px 2px 0 var(--color-black);
    position: relative;
    z-index: 1;
}

.section-services .section-subheading {
    color: var(--color-orange);
    text-shadow: 1px 1px 0 var(--color-black);
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.service-card {
    text-align: center;
}

.service-card.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.service-icon {
    margin-bottom: 12px;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.3));
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    margin-bottom: 8px;
    color: var(--color-sky-dark);
    letter-spacing: 1px;
}

.service-card p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
}

/* ============================================
   LEAF OF LETTUCE (PRODUCT) SECTION
   ============================================ */
.section-product {
    padding: 80px 0;
    background: var(--color-green-dark);
    position: relative;
    overflow: hidden;
}

.section-product::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/bg-pattern-seamless.png');
    background-size: 800px auto;
    background-repeat: repeat;
    opacity: 0.15;
    pointer-events: none;
}

.section-product::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
    z-index: 1;
}

.section-product .section-heading {
    color: var(--color-orange);
    text-shadow: 2px 2px 0 var(--color-black);
    position: relative;
    z-index: 1;
}

.heading-icon {
    width: 48px;
    height: 48px;
    vertical-align: middle;
    image-rendering: pixelated;
    margin-left: 4px;
}

.product-content {
    position: relative;
    z-index: 1;
}

.product-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    background: var(--color-orange);
    color: var(--color-black);
    border: var(--pixel-border);
    padding: 6px 16px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.product-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3vw, 1.6rem);
    color: var(--color-white);
    text-shadow: 2px 2px 0 var(--color-black);
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-description {
    font-size: 1.35rem;
    color: var(--color-cream);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 36px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    background: var(--color-white);
    border: var(--pixel-border);
    box-shadow: var(--pixel-shadow);
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 4px 8px 0px var(--color-black);
}

.feature-item .feature-icon {
    margin-bottom: 8px;
}

.feature-item .feature-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.3));
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    color: var(--color-sky-dark);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.feature-item p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
}

/* --- Screenshot Gallery & Lightbox --- */
.feature-gallery {
    grid-column: 1 / -1;
    min-width: 0;
    overflow: hidden;
}

.gallery-grid {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    max-width: 100%;
}

.gallery-grid::-webkit-scrollbar {
    height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: var(--color-dark);
    border: 2px solid var(--color-black);
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--color-orange);
    border: 2px solid var(--color-black);
}

.gallery-thumb {
    height: 140px;
    width: auto;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--color-dark);
    border: 3px solid var(--color-black);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    image-rendering: auto;
    scroll-snap-align: start;
}

.gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--color-black);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    isolation: isolate;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    margin-top: 60px;
    object-fit: contain;
    border: var(--pixel-border);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    image-rendering: auto;
    touch-action: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    font-family: var(--font-heading);
    background: var(--color-navy);
    color: var(--color-white);
    border: var(--pixel-border);
    box-shadow: var(--pixel-shadow);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-black);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) translate(2px, 2px);
}

@media (max-width: 768px) {
    .gallery-grid {
        scroll-snap-type: x mandatory;
        gap: 0;
        padding-bottom: 12px;
    }

    .gallery-thumb {
        min-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
        scroll-snap-align: center;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 10px; right: 10px; }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.section-contact {
    padding: 80px 0;
    background: var(--color-dark);
    position: relative;
}

.section-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-green), transparent);
}

.section-contact .section-heading {
    color: var(--color-sky);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 24px;
}

.contact-info p {
    font-size: 1.35rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-item {
    margin-bottom: 16px;
}

.contact-label {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    color: var(--color-orange);
    display: block;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.pixel-link {
    font-size: 1.4rem;
    color: var(--color-sky);
    border-bottom: 3px solid var(--color-sky);
    transition: color 0.2s, border-color 0.2s;
}

.pixel-link:hover {
    color: var(--color-orange);
    border-color: var(--color-orange);
}

/* --- Contact Form --- */
.contact-form-wrap {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    color: var(--color-orange);
    display: block;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.pixel-input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-white);
    background: var(--color-navy);
    border: var(--pixel-border);
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pixel-input::placeholder {
    color: var(--color-gray);
    opacity: 0.6;
}

.pixel-input:focus {
    border-color: var(--color-sky);
    box-shadow: 4px 4px 0 var(--color-sky-dark);
}

.pixel-textarea {
    resize: vertical;
    min-height: 120px;
}

#contact-submit {
    width: 100%;
    margin-top: 8px;
}

.form-status {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-top: 12px;
    text-align: center;
}

.form-status.success {
    color: var(--color-green);
}

.form-status.error {
    color: var(--color-red);
}

/* ============================================
   FOOTER
   ============================================ */
.pixel-footer {
    background: var(--color-navy);
    color: var(--color-gray);
    text-align: center;
    padding: 24px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(79, 195, 247, 0.08);
}

.pixel-footer a {
    color: var(--color-sky);
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal.animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.animate.visible,
.service-card.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
.section-about,
.section-services,
.section-product,
.section-contact,
.pixel-footer {
    position: relative;
    z-index: 1;
}

/* ============================================
   ICON DIVIDERS
   ============================================ */
.icon-divider {
    background: var(--color-navy);
    overflow: hidden;
    padding: 12px 0;
    border-top: 2px solid rgba(79, 195, 247, 0.15);
    border-bottom: 2px solid rgba(79, 195, 247, 0.15);
}


.icon-divider-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
}

.icon-divider-track img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    image-rendering: pixelated;
    opacity: 0.6;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(31, 31, 31, 0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 0 var(--color-black);
    }

    .nav-links.nav-open {
        right: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-card {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .card-img {
        max-width: 280px;
    }

    .pixel-title {
        font-size: clamp(1.2rem, 6vw, 2rem);
    }

}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    html {
        scroll-behavior: auto;
    }
}
