/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Colors */
    --clr-bg: #f8f9fa;
    --clr-bg-alt: #ffffff;
    --clr-text: #1a1a1a;
    --clr-text-light: #555555;
    --clr-primary: #000000;
    --clr-primary-hover: #333333;
    --clr-border: #e0e0e0;

    /* Typography */
    --ff-main: 'Outfit', sans-serif;
    --ff-heading: 'Playfair Display', serif;
    --fs-base: 0.95rem;
    --fs-h1: clamp(2rem, 5vw, 3.25rem);
    --fs-h2: clamp(1.5rem, 3vw, 2rem);
    --fs-h3: clamp(1.125rem, 2vw, 1.25rem);

    /* Layout */
    --container-width: 1280px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4.5rem;

    /* Touch */
    --touch-target: 48px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-main);
    font-size: var(--fs-base);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: var(--ff-heading);
    font-weight: 400;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    padding: 0 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    border-radius: 4px;
}

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

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

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

.btn-large {
    font-size: 1.125rem;
    padding: 0 3rem;
    min-height: 60px;
}

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

.btn-dark:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
}

.btn-link {
    padding: 0;
    min-height: auto;
    border-bottom: 2px solid var(--clr-primary);
    border-radius: 0;
}

.btn-link:hover {
    color: var(--clr-text-light);
    border-color: var(--clr-text-light);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--clr-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 1001;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: var(--touch-target);
    height: var(--touch-target);
    z-index: 1002;
}

.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition-fast);
    margin: 0 auto;
}

/* Mobile Navigation Dropdown */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Fallback */
    height: 100svh;
    background-color: var(--clr-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    z-index: 1001;
}

.main-nav.active {
    opacity: 1;
    visibility: visible;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links a {
    font-size: var(--fs-h2);
    font-weight: 600;
    text-transform: uppercase;
}

/* Menu Open State (hamburger animation) */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* body locking when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        height: auto;
        width: auto;
        background-color: transparent;
        opacity: 1;
        visibility: visible;
        display: block;
    }

    .nav-links {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .nav-links a {
        font-size: 1rem;
        font-weight: 600;
        transition: color var(--transition-fast);
    }

    .nav-links a:hover {
        color: var(--clr-text-light);
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: min(500px, 70svh);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 70px;
    /* Offset header */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: var(--fs-h1);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
    font-weight: 400;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

/* ==========================================================================
   COLLECTIONS GRID
   ========================================================================== */
.collections {
    padding-block: var(--spacing-xl);
}

.collection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.collection-card {
    position: relative;
    overflow: hidden;
    background-color: var(--clr-bg-alt);
    border-radius: 4px;
    aspect-ratio: 3/4;
    display: flex;
    align-items: flex-end;
}

.collection-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.collection-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
}

.collection-card .card-content {
    position: relative;
    z-index: 1;
    padding: var(--spacing-md);
    color: white;
    width: 100%;
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
}

.collection-card h2 {
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.collection-card .btn-outline {
    border-color: white;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

/* Hover effects for desktop */
@media (hover: hover) {
    .collection-card:hover img {
        transform: scale(1.05);
    }

    .collection-card:hover .card-content {
        transform: translateY(0);
    }

    .collection-card:hover .btn-outline {
        opacity: 1;
        visibility: visible;
    }

    .collection-card .btn-outline:hover {
        background-color: white;
        color: var(--clr-primary);
    }
}

/* Ensure button is visible on touch devices */
@media (hover: none) {
    .collection-card .card-content {
        transform: translateY(0);
    }

    .collection-card .btn-outline {
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================================================
   WHOLESALE & RETAIL
   ========================================================================== */
.business-lines {
    padding-bottom: var(--spacing-xl);
}

.business-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.business-card {
    background-color: var(--clr-bg-alt);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.business-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.b-content {
    padding: var(--spacing-md);
    text-align: center;
}

.b-content h2 {
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-sm);
}

.b-content p {
    color: var(--clr-text-light);
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   ABOUT & VISIT SECTIONS
   ========================================================================== */
.about-section,
.visit-section {
    padding-block: var(--spacing-xl);
    background-color: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
}

.about-content {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.about-content h2,
.shop-info h2,
.contact-info h2 {
    font-size: var(--fs-h2);
    margin-bottom: var(--spacing-md);
}

.about-content p,
.contact-info p,
.info-block p {
    color: var(--clr-text-light);
    margin-bottom: var(--spacing-md);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: stretch;
}

@media (min-width: 768px) {
    .visit-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: var(--spacing-xl);
    }
}

.shop-info .section-title {
    font-size: var(--fs-h3);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-text-light);
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block .icon {
    flex-shrink: 0;
    color: var(--clr-primary);
    margin-top: 2px;
    opacity: 0.8;
}

.info-block h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.info-block p,
.info-block address {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    line-height: 1.5;
}

.info-block .mailto-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    display: inline-block;
    margin-top: 0.25rem;
}

address {
    font-style: normal;
    line-height: 1.6;
    color: var(--clr-text-light);
}

address strong {
    color: var(--clr-text);
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    flex-grow: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--clr-primary);
    color: white;
    padding-top: var(--spacing-lg);
    padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links,
.footer-social {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.footer-links a:hover,
.footer-social span:hover {
    color: #cccccc;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: #888;
    border-top: 1px solid #333;
    padding-top: var(--spacing-md);
}