/* 
 * Virginia City Farmacy Design System
 */

/* =========================================
   1. Variables & Custom Properties
   ========================================= */
:root {
    /* Color Palette */
    --color-gold: #B08B5B;
    --color-black: #000000;
    --color-dark-grey: #333333;
    --color-white: #ffffff;
    --color-light-grey: #f5f5f5;
    --color-overlay: rgba(255, 255, 255, 0.9);

    /* Typography */
    --font-heading: 'Bevan', serif;
    --font-subheading: 'Oswald', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 8rem;

    /* Shadows */
    --shadow-solid: 2px 2px 0px #000000;
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Cutthroat Edibles Section */
    --cutthroat-edibles-logo: url('images/cutthroat-edibles-logo.jpg');

    /* Cutthroat Edibles Section */
    .cutthroat-section {
        position: relative;
        background-image: url('images/cutthroat-edibles-logo.jpg');
        background-size: cover;
        background-position: center;
        z-index: 1;
    }

    .cutthroat-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: -1;
    }

    .cutthroat-section h2 {
        color: var(--color-white);
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 2px 2px 5px rgba(0, 0, 0, 0.5);
    }

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Hero-specific variables */
    --accent-glow: #B08B5B;
    --shadow-depth: #2a1a11;
    --anim-speed: 6s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 700;
    /* Medium weight */
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 18px;
}

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

a {
    text-decoration: underline;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* =========================================
   3. Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

h1 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    text-shadow: var(--shadow-solid);
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    text-shadow: var(--shadow-solid);
    font-size: 2.5rem;
}

h3 {
    font-family: var(--font-subheading);
    color: var(--color-dark-grey);
    font-weight: 700;
    /* Very Bold */
    font-size: 1.75rem;
}

h4 {
    font-family: var(--font-subheading);
    color: var(--color-dark-grey);
    font-weight: 700;
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
    font-family: var(--font-body);
}

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

.text-right {
    text-align: right;
}

.text-white {
    color: var(--color-white);
}

/* =========================================
   4. Layout Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--color-light-grey);
}

.bg-dark {
    background-color: var(--color-dark-grey);
    color: var(--color-white);
}

.bg-gold {
    background-color: var(--color-gold);
    color: var(--color-black);
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

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

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

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

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

    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.hours-container .btn {
    width: auto;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    white-space: normal;
    line-height: 1.2;
    box-sizing: border-box;
    max-width: 100%;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.hidden {
    display: none !important;
}

/* =========================================
   5. Components
   ========================================= */

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-gold);
    color: var(--color-dark-grey);
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-solid);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 2px solid var(--color-black);
    text-decoration: none;
    white-space: normal;
    /* Allow text to wrap if needed */
    text-align: center;
}



.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000000;
}

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

/* Header */
.site-header {
    background-color: var(--color-white);
    padding: var(--spacing-md) 0;
    border-bottom: 4px solid var(--color-gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-link {
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark-grey);
    font-size: 1.1rem;
    text-decoration: none;
    /* Remove default underline */
}

.nav-link:hover {
    color: var(--color-gold);
    text-decoration: underline;
    /* Add underline on hover */
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--color-dark-grey);
    transition: fill var(--transition-fast);
}

.social-icon:hover {
    fill: var(--color-gold);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: var(--color-white);
    padding: 4rem 0;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}


.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

/* NEW: Film Overlay Effect applied directly to each slide */
/* .hero-slide::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -50%;
    width: 300%;
    height: 300%;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="1"/%3E%3C/svg%3E');
    opacity: 0.30;
    animation: grain 8s steps(10) infinite;
    z-index: 1;
} */

.hero-slide::before {
    /* Scratches, Vignette, and Darkening */
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg,
            transparent 0,
            transparent 2px,
            rgba(255, 255, 255, 0.05) 3px,
            /* Subtle scratches */
            transparent 4px);
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.8);
    /* Vignette */
    background-color: rgba(0, 0, 0, 0.75);
    /* Darkening overlay */
    opacity: 0.6;
    animation: flicker 4s infinite;
    z-index: 1;
    /* Sit on top of the slide's background image */
}

.hero-content {
    z-index: 3;
    max-width: 800px;
    padding: var(--spacing-lg);
}

.hero-content h1 {
    color: var(--color-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Cards & Features */
.card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-light-grey);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.icon-box {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
}

.icon-box svg {
    stroke: var(--color-gold);
}

/* Footer */
.site-footer {
    background-color: var(--color-dark-grey);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    border-top: 4px solid var(--color-gold);
}

.site-footer h4 {
    color: var(--color-gold);
}

.site-footer a {
    color: var(--color-light-grey);
}

.site-footer a:hover {
    color: var(--color-gold);
}

/* 21+ Pop Up */
.age-gate-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.age-gate-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.age-gate-content {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border: 4px solid var(--color-gold);
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.age-gate-logo {
    max-width: 300px;
    margin: 0 auto var(--spacing-lg);
}

#ageGateBtn {
    font-size: 2rem;
    margin-top: var(--spacing-md);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.95);
        z-index: 9999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: opacity 0.3s ease;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-menu a {
        display: block;
        padding: 1rem;
        border-bottom: none;
        font-family: var(--font-subheading);
        font-size: 1.5rem;
        text-transform: uppercase;
        color: var(--color-black);
        text-decoration: none;
        text-align: center;
    }

    .mobile-menu a:hover {
        color: var(--color-gold);
    }
}

.fancy-border {
    border: 2px solid var(--color-gold);
    padding: var(--spacing-lg);
    position: relative;
}

.fancy-border::before,
.fancy-border::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--color-gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.fancy-border::before {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.fancy-border::after {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.wood-background {
    position: relative;
    z-index: 1;
    border-top: 4px solid var(--color-gold);
    border-bottom: 4px solid var(--color-gold);
}

.wood-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/wood-floor.jpg');
    background-size: auto;
    background-repeat: repeat;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.15;
    z-index: -1;
}

/* Page Header Backgrounds */
.page-header-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    z-index: 1;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dark overlay for readability */
    z-index: -1;
}

.page-header-bg h1,
.page-header-bg p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.page-header-bg p {
    font-family: var(--font-subheading);
    /* Oswald */
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   6. New Hero Component Styles
   ========================================
*/

.western-hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
    z-index: 3;
    pointer-events: none;
}

.western-hero-container .card {
    margin-bottom: 2rem;
}

.western-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gold);
    pointer-events: auto;
    text-shadow: 2px 2px 0px #ffffff;
    margin-bottom: 1rem;
}

.western-subhead {
    display: block;
    font-family: 'Oswald', sans-serif;
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
    animation: slideUpReveal 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
    animation-delay: 1.8s;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}

.location-line {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    font-weight: 700;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
    position: relative;
}

.location-line::before,
.location-line::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    transform: rotate(45deg);
    margin: 0 10px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.line {
    display: block;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.line-1 {
    animation: slideUpReveal 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards,
        campfirePulseLarge 8s ease-in-out infinite,
        subtleShake 10s ease-in-out infinite;
    animation-delay: 0.2s, 1.2s, 1.2s;
}

.line-2 {
    font-size: 0.4em;
    letter-spacing: 0.3em;
    margin: 0.5rem 0;
    animation: slideUpReveal 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards,
        campfirePulseSmall 8s ease-in-out infinite,
        subtleShake 9s ease-in-out infinite reverse;
    animation-delay: 0.4s, 1.4s, 1.4s;
}

.line-3 {
    animation: slideUpReveal 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards,
        campfirePulseLarge 8.4s ease-in-out infinite,
        subtleShake 12s ease-in-out infinite;
    animation-delay: 0.6s, 1.6s, 1.6s;
}

.western-btn {
    display: inline-block;
    background-color: var(--color-white);
    color: var(--color-dark-grey);
    font-family: 'Bevan', serif;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 45px;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-top: 2.5rem;
    box-shadow: 2px 2px 0px #000000;
    border: 2px solid var(--color-gold);
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
    animation: slideUpReveal 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
    animation-delay: 2.4s;
    pointer-events: auto;
    transition: all 0.2s ease;
}

.western-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 4px 4px 0px #000000;
    background-color: var(--color-white);
    color: var(--color-gold);
}

.western-btn:active {
    transform: translateY(1px);
    box-shadow: 1px 1px 0px #000000;
}

@keyframes slideUpReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes campfirePulseLarge {
    0% {
        letter-spacing: 0.05em;
        opacity: 1;
    }

    5% {
        opacity: 0.8;
    }

    10% {
        opacity: 1;
    }

    50% {
        letter-spacing: 0.08em;
        opacity: 0.9;
    }

    75% {
        opacity: 0.6;
    }

    78% {
        opacity: 1;
    }

    82% {
        opacity: 0.8;
    }

    100% {
        letter-spacing: 0.05em;
        opacity: 1;
    }
}

@keyframes campfirePulseSmall {
    0% {
        letter-spacing: 0.3em;
        opacity: 1;
    }

    5% {
        opacity: 0.8;
    }

    10% {
        opacity: 1;
    }

    50% {
        letter-spacing: 0.35em;
        opacity: 0.9;
    }

    75% {
        opacity: 0.6;
    }

    78% {
        opacity: 1;
    }

    82% {
        opacity: 0.8;
    }

    100% {
        letter-spacing: 0.3em;
        opacity: 1;
    }
}

@keyframes subtleShake {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    25% {
        transform: rotate(0.5deg) translateY(1px);
    }

    50% {
        transform: rotate(-0.5deg) translateY(-1px);
    }

    75% {
        transform: rotate(0.25deg) translateY(0.5px);
    }
}

@media (max-width: 1440px) {
    .western-hero-container {
        padding: 4rem 2rem;
    }

    .western-text {
        font-size: clamp(2.5rem, 6vw, 5.5rem);
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 1440px) {
    .western-hero-container {
        padding: 8rem 2rem;
    }

    .western-text {
        font-size: clamp(2.5rem, 5.5vw, 5rem);
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        padding: 2rem 0;
    }

    .western-text {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .line-2 {
        font-size: 0.35em;
        margin: 0.2rem 0;
    }

    .location-line {
        font-size: 1.3em;
    }

    .location-line::before,
    .location-line::after {
        width: 8px;
        height: 8px;
        margin: 0 5px;
    }

    .western-btn {
        font-size: 1.1rem;
        padding: 12px 30px;
    }
}

/* Footer Updates */
/* Footer Updates */
.site-footer .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    align-items: start;
}

.footer-column {
    padding-left: var(--spacing-md);
    border-left: 2px solid var(--color-gold);
    height: 100%;
}

.footer-logo-col {
    border-left: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-icon {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
    margin-bottom: var(--spacing-xs);
    display: block;
}

.footer-link {
    color: #999;
    text-decoration: none;
    transition: color var(--transition-fast);
    display: block;
    margin-top: var(--spacing-sm);
}

.footer-link:hover {
    color: var(--color-gold);
}

.contact-link-underline {
    text-decoration: underline;
    text-decoration-color: var(--color-gold);
    text-underline-offset: 4px;
}

/* Hours Infographic Styles */
.hours-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.hours-container.vertical {
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin: 0 auto;
    gap: 8px;
}

.day-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.day-label {
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    color: var(--color-dark-grey);
    font-weight: 500;
    text-align: left;
}

.site-footer .day-label {
    color: var(--color-white);
}

.site-footer .hours-container.vertical {
    margin: 1rem 0 0 0;
}

.day-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    position: relative;
}

.day-box.open {
    background-color: var(--color-gold);
}

.day-box.closed {
    background-color: #666;
}

.hours-legend {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

@media (max-width: 992px) {
    .site-footer .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-footer .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-column {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--color-gold);
        padding-top: var(--spacing-md);
    }
}

@media (max-width: 900px) {
    .site-footer .grid-3 {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-column {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 215, 0, 0.3);
        padding-top: var(--spacing-lg);
    }
}

/* Gold Social Button */
.gold-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gold);
    color: white !important;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: bold;
    transition: background-color var(--transition-fast);
    width: fit-content;
}

.gold-social-btn:hover {
    background-color: #b8860b;
    /* Darker gold */
    color: white !important;
}

.gold-social-btn .footer-icon {
    color: white;
    margin-bottom: 0;
    margin-right: 0.5rem;
}

/* Text Gold Utility */
.text-gold {
    color: var(--color-gold);
}

/* Contact Row */
.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-row .footer-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.testimonial-slider {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Black and Gold Map Filter */
/* Gold Theme Map Filter */
.map-gold-theme {
    filter: grayscale(100%) sepia(40%) contrast(120%) brightness(115%);
    -webkit-filter: grayscale(100%) sepia(40%) contrast(120%) brightness(115%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}