/* 
   Gandalf's Smoke Shop - Premium Boutique CSS
*/

:root {
    --bg-primary: #FFFFFF; /* Crisp White */
    --bg-secondary: #F5F6F5; /* Very Light Grey */
    --text-main: #111111; /* Solid Black */
    --text-light: #444444;
    --accent-gold: #1A7B39; /* Forest Green from Logo */
    --accent-dark: #000000;
    --accent-orange: #FF6B00; /* Vibrant Orange */
    
    --font-ui: 'Outfit', sans-serif;
    --font-serif: 'Outfit', sans-serif; /* Using sans-serif for headings for a modern retail look */
    
    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 6px;
}

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

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 220px;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--accent-dark);
}

.premium-title {
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.sub-title {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Utilities */
.premium-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-gold), #115726);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-ui);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 123, 57, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(26, 123, 57, 0.5);
    background: linear-gradient(135deg, #1f9444, #14692e);
    color: #fff;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-dark);
    border: 1px solid var(--accent-dark);
}

.btn-outline:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* Top Banner */
.top-banner {
    background: var(--accent-gold);
    color: #fff;
    text-align: center;
    padding: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.top-banner a {
    color: var(--accent-dark);
    font-weight: 700;
}

/* Header & Nav */
.main-header {
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
    border-bottom: 2px solid #013D04;
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.main-header.scrolled .nav-container {
    padding: 0.2rem 2rem 1rem;
    gap: 0;
}

.logo-img {
    height: 150px;
    width: auto;
    transition: all 0.3s ease;
}

.main-header.scrolled .logo-img {
    height: 120px;
    padding: 20px 0;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    padding-top: 1rem;
    position: relative;
}

.nav-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50vw;
    width: 200vw;
    border-top: 2px solid #013D04;
}

.nav-list a {
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    transition: color 0.3s;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--accent-gold);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-hover);
    list-style: none;
    padding: 1rem 0;
    border-radius: 4px;
    min-width: 220px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0.5px;
}

.dropdown-menu li a:hover {
    background: var(--bg-primary);
}

/* About Section */
.hero-section {
    padding: 6rem 2rem;
    background-color: var(--bg-primary);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.disclaimer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #EAE8E3;
    font-size: 0.85rem;
    color: #999;
}

/* Gallery / Products */
.gallery-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dark-premium-section {
    background: linear-gradient(135deg, #051A0A 0%, #0A2914 100%);
}

.dark-premium-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('assets/illustration_hero.png') center/cover;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.dark-premium-section .premium-title {
    color: #fff;
    position: relative;
    z-index: 2;
}

.dark-premium-section .sub-title {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.gallery-item {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-orange);
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-subtle);
}

.gallery-label {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--accent-dark);
}

/* Locations */
.locations-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.location-card {
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-badge {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent-gold);
}

.location-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.location-address {
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Newsletter */
.newsletter-section {
    padding: 6rem 2rem;
    background: var(--accent-dark);
    color: #fff;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: #fff;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.newsletter-form input {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: var(--font-ui);
    flex-grow: 1;
    max-width: 300px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #EAE8E3;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-social img {
    width: 24px;
    height: 24px;
    filter: invert(0.2) sepia(0.1) saturate(0) hue-rotate(0deg) brightness(0.2) contrast(1);
    transition: filter 0.3s;
}

.footer-social a:hover img {
    filter: invert(0.7) sepia(0.5) saturate(3) hue-rotate(0deg) brightness(0.8) contrast(1);
}

.footer-bottom {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Product Cards for Products Page */
.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: white;
    padding: 1rem;
    border-bottom: 1px solid #EAE8E3;
}

.pill-container {
    display: flex;
    flex-wrap: wrap;
    max-height: 110px;
    overflow-y: auto;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-right: 0.5rem;
}

.pill-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.pill-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.pill-container::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

.pill-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

.pill-tag {
    background: #F0F2F0;
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Gallery Filters */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.filter-btn {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--accent-gold);
    background: transparent;
    color: var(--accent-gold);
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent-gold);
    color: #fff;
}
.gallery-category {
    display: none;
}
.gallery-category.active {
    display: block;
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
}

.product-info h3 {
    margin-bottom: 1rem;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Single Location Layout */
.location-hero {
    background: var(--bg-secondary);
    padding: 6rem 2rem;
    text-align: center;
    border-bottom: 1px solid #EAE8E3;
}

.location-details-wrap {
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.location-details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .location-details-grid {
        grid-template-columns: 1fr;
    }
    .nav-list {
        display: none; /* simple mobile hide for now, standard practice */
    }
}

/* Masonry Gallery */
.masonry-gallery {
    column-count: 5;
    column-gap: 1rem;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.masonry-item img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.masonry-item img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 1200px) {
    .masonry-gallery { column-count: 3; }
}
@media (max-width: 900px) {
    .masonry-gallery { column-count: 2; }
}
@media (max-width: 600px) {
    .masonry-gallery { column-count: 1; }
}

/* --- Wow Factors: Age Gate & Scroll Animations --- */

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Age Gate Overlay */
.age-gate-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.age-gate-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html.age-verified .age-gate-overlay {
    display: none !important;
}

.age-gate-card {
    background: var(--bg-primary);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    color: var(--text-main);
    transform: translateY(0) scale(1);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.age-gate-overlay.hidden .age-gate-card {
    transform: translateY(30px) scale(0.95);
}

.age-gate-logo {
    height: 100px;
    margin-bottom: 2rem;
}

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3.5rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-orange);
    transform: scale(1.1);
}
