/* style.css - Cultural Heritage Rebranding */

:root {
    /* Color Palette */
    --color-green: #298555;
    --color-brown-dark: #372321;
    --color-red: #e24741;
    --color-cream: #f1e8d1;
    --color-cream-alt: #e4d7b8;
    --color-orange: #f08b3a;

    /* Text Colors */
    --color-text-main: var(--color-brown-dark);
    --color-text-muted: #644941;
    --color-text-light: var(--color-cream);
    
    /* Typography */
    --font-heading: 'Squada One', cursive; /* Used instead of Canva's "BOXING" */
    --font-body: 'Montserrat', sans-serif;
    
    /* Shadows & Effects */
    --shadow-solid: 8px 8px 0px 0px rgba(55, 35, 33, 0.15); /* Heavy solid shadow for rugged look */
    --border-thick: 4px solid var(--color-brown-dark);
    
    /* Layout */
    --container-max-width: 1200px;
    --transition-snappy: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--color-cream);
}

/* Base Body with texture */
body {
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-main);
    overflow-x: hidden;
    position: relative;
}

/* Noise overlay to simulate parchment */
.texture-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-brown-dark);
}

.site-logo {
    height: 48px;
    width: auto;
    display: block;
}

.site-logo-footer {
    height: 64px;
    width: auto;
    display: block;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-snappy);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--color-red);
    text-shadow: 2px 2px 0px var(--color-brown-dark);
}

.section-heading > p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Tribal Borders */
.tribal-bar {
    width: 100%;
    height: 20px;
    background-color: var(--color-brown-dark);
    position: relative;
    z-index: 105;
}
.tribal-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(45deg, 
        transparent, transparent 10px, 
        var(--color-orange) 10px, var(--color-orange) 20px,
        transparent 20px, transparent 30px,
        var(--color-green) 30px, var(--color-green) 40px
    );
    opacity: 0.9;
}

/* Subtle Geometric Pattern Background for sections */
.pattern-bg {
    background-image: radial-gradient(var(--color-cream-alt) 2px, transparent 2px);
    background-size: 30px 30px;
    background-color: var(--color-cream);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    border: var(--border-thick);
    cursor: pointer;
    transition: var(--transition-snappy);
    text-transform: uppercase;
}

.btn-primary {
    background: var(--color-red);
    color: var(--color-cream);
}

.btn-primary:hover {
    background: var(--color-brown-dark);
    color: var(--color-cream);
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-solid);
}

.btn-secondary {
    background: var(--color-orange);
    color: var(--color-brown-dark);
    box-shadow: 4px 4px 0px 0px var(--color-brown-dark);
}

.btn-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px var(--color-brown-dark);
}

.btn-text {
    background: transparent;
    color: var(--color-brown-dark);
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
}

.btn-text .arrow {
    margin-left: 8px;
    transition: var(--transition-snappy);
    color: var(--color-red);
}

.btn-text:hover {
    color: var(--color-red);
}

.btn-text:hover .arrow {
    transform: translateX(6px);
}

/* Header */
.main-header {
    background-color: var(--color-cream);
    border-bottom: var(--border-thick);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    color: var(--color-green);
    text-shadow: 2px 2px 0px var(--color-brown-dark);
}

.desktop-nav a {
    font-family: var(--font-heading);
    margin: 0 1.2rem;
    font-size: 1.2rem;
    color: var(--color-brown-dark);
    position: relative;
}

.desktop-nav a:hover {
    color: var(--color-orange);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 60px;
    padding-bottom: 40px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    border-bottom: var(--border-thick);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text .subtitle {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--color-red);
    margin-bottom: 1rem;
    background: var(--color-cream-alt);
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border: 2px solid var(--color-brown-dark);
}

.hero-text .title {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.hero-text .description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border: var(--border-thick);
    background-color: var(--color-brown-dark);
    box-shadow: var(--shadow-solid);
}

.hero-img {
    width: 100%;
    height: auto;
    filter: sepia(0.2) contrast(1.1); /* Adds a warm retro tone */
}

.hero-img.placeholder {
    aspect-ratio: 4/5;
    background: var(--color-cream-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    position: relative;
}

.hero-img.placeholder::before {
    content: 'hero-banner.jpg';
    position: absolute;
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 1.2rem;
}

.heritage-float-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-green);
    border: var(--border-thick);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 4px 4px 0px 0px var(--color-brown-dark);
    color: var(--color-cream);
}

.heritage-float-card .icon {
    font-size: 2rem;
    color: var(--color-orange);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-cream);
}

.card-desc {
    font-size: 0.85rem;
    font-weight: 600;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
    background-color: var(--color-cream);
    border-bottom: var(--border-thick);
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-orange);
    text-shadow: 2px 2px 0px var(--color-brown-dark);
    line-height: 1;
    min-width: 45px;
    text-align: right;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: var(--color-brown-dark);
}

.step-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* Catalogue Section */
.catalogue-section {
    padding: 4rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.product-card {
    position: relative;
    cursor: pointer;
    background-color: var(--color-cream);
    border: var(--border-thick);
    box-shadow: 6px 6px 0px 0px rgba(55, 35, 33, 0.4);
    transition: var(--transition-snappy);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px 0px var(--color-brown-dark);
}

.product-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border-bottom: var(--border-thick);
    background: var(--color-cream-alt);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Image Placeholder Style */
.product-image img.placeholder {
    visibility: hidden;
}

.product-image::after {
    content: attr(data-filename);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    color: var(--color-brown-dark);
    font-size: 1.5rem;
    opacity: 0.4;
    z-index: 0;
}

.product-image.has-img::after {
    display: none;
}

.product-info {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--color-cream);
}

.product-title {
    font-size: 1.8rem;
    color: var(--color-red);
    margin-bottom: 0.5rem;
}

.product-action {
    display: inline-block;
    color: var(--color-green);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid transparent;
    transition: var(--transition-snappy);
}

.product-card:hover .product-action {
    border-bottom-color: var(--color-green);
}

/* Footer Section */
.footer {
    background: var(--color-brown-dark);
    color: var(--color-cream);
    padding: 4rem 0 0 0;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.footer .site-logo-footer {
    opacity: 1;
}

.footer-desc {
    color: #a08a85;
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-red);
}

.footer-contact a, 
.footer-social a {
    display: block;
    color: var(--color-cream);
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.footer-contact a:hover, 
.footer-social a:hover {
    color: var(--color-green);
    text-decoration: underline;
}

.support-text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    border-top: 2px solid rgba(241, 232, 209, 0.1);
    padding: 2rem 0;
    color: #a08a85;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Animations Tools */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Flying WhatsApp Button */
.flying-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.flying-wa svg {
    width: 34px;
    height: 34px;
}

.flying-wa:hover {
    transform: scale(1.1) rotate(-5deg);
    background-color: #1ebe5d;
    box-shadow: 6px 6px 20px rgba(0,0,0,0.4);
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text .title {
        font-size: 4rem;
    }
    
    .hero-text .description {
        margin: 0 auto 2.5rem auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .site-logo {
        height: 34px;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 2.8rem;
        line-height: 1;
    }
    
    .hero-text .title {
        font-size: 3.2rem;
        line-height: 0.9;
    }
    
    .flying-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .flying-wa svg {
        width: 28px;
        height: 28px;
    }
}
