/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;700&family=Montserrat:wght@400;600&family=Playfair+Display:ital@1&display=swap');

/* CSS Variables */
:root {
    --color-primary: #D35400;
    --color-secondary: #2C2C2C;
    --color-accent: #A3A04A;
    --color-background: #F0EAD6;
    --color-border: #E1E1E1;
    --color-white: #FFFFFF;
    --font-primary: 'Ubuntu', Arial, Helvetica, sans-serif;
    --font-secondary: 'Montserrat', Arial, Helvetica, sans-serif;
    --font-accent: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-secondary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0;
    /* REMOVE all bottom space from header */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.20rem 0 0.10rem 0;
    /* Almost zero vertical padding */
    min-height: 48px;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    /* Remove any unwanted vertical space */
    padding: 0;
    line-height: 1;
    height: 68px;
    /* This should match your logo img height for perfect fit */
}

.logo img {
    height: 68px;
    /* Adjust as needed, should be <= header min-height */
    width: auto;
    max-width: 220px;
    display: block;
    margin: 0;
    /* Prevent any image margin */
    padding: 0;
    /* Prevent any image padding */
    vertical-align: middle;
    /* Aligns better in flex context */
}

/* Nav */
nav .nav-list {
    list-style: none;
    display: flex;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav .nav-list a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.1rem 0.85rem;
    font-size: 1.03rem;
    line-height: 1.9rem;
}

nav .nav-list a:hover {
    color: var(--color-primary);
    background: rgba(211, 84, 0, 0.07);
    border-radius: 3px;
}

/* Hero Section */
#hero {
    background-image: url('/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: filter 0.3s ease;
}

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

.btn-primary:hover {
    filter: brightness(0.9);
}

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

.btn-secondary:hover {
    filter: brightness(0.9);
}

/* Featured Products */
#featured-products {
    padding: 4rem 0;
}

#featured-products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    padding: 1rem;
}

.product-card img {
    width: 100%;
    height: auto;
}

.product-card h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.product-card .price {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

/* Categories */
#categories {
    padding: 4rem 0;
}

#categories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    position: relative;
    text-align: center;
}

.category-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.category-card h3 {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* Testimonials */
#testimonials {
    background-color: var(--color-white);
    padding: 4rem 0;
}

#testimonials h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.testimonial-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
}

.testimonial {
    flex: 0 0 300px;
    background-color: var(--color-background);
    border-radius: 4px;
    padding: 1.5rem;
    scroll-snap-align: start;
    text-align: center;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial span {
    display: block;
    font-weight: 700;
    color: var(--color-secondary);
}

/* Footer */
footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    margin-right: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

footer p {
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 0.1rem;
        padding: 0.18rem 0 0.10rem 0;
    }

    nav .nav-list {
        flex-direction: column;
        align-items: center;
    }
}

/* Cookie Consent Modal */
#cookie-consent {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(253, 165, 0, 0.471);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

#cookie-consent.show {
    display: flex;
}

#cookie-consent .cookie-banner {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

#cookie-consent .cookie-banner button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.gallery-grid .category-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    box-shadow: 0 2px 8px rgba(44, 44, 44, 0.04);
}

.gallery-grid .category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.18s;
}

.gallery-grid .category-card img:hover {
    transform: scale(1.04);
}

.gallery-grid .category-card .artifact-title {
    background: rgba(44, 44, 44, 0.78);
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 1.02rem;
    font-weight: 600;
    padding: 0.48rem 0.1rem 0.48rem 0.1rem;
    text-align: center;
    border-radius: 0 0 8px 8px;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}