/*
Theme Name: Last Call Society
Theme URI: https://lcsclothing.com
Description: Hole-in-the-wall dive bar child theme for Last Call Society, built on Storefront. Funny apparel & accessories for bartenders and bar-goers.
Author: Last Call Society
Template: storefront
Version: 3.0.0
Text Domain: last-call-society
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--lcs-black: #14100d;
	--lcs-black-2: #1c1712;
	--lcs-black-3: #241d16;
	--lcs-paper: #d8cdb4;
	--lcs-paper-2: #c9bc9c;
	--lcs-ink: #211a14;
	--lcs-neon: #304b3a;
	--lcs-neon-glow: rgba(48, 75, 58, 0.55);
	--lcs-neon-dim: rgba(48, 75, 58, 0.28);
	--lcs-neon-bright: #6dffab;
	--lcs-neon-bright-glow: rgba(109, 255, 171, 0.85);
	--lcs-neon-bright-dim: rgba(109, 255, 171, 0.5);
	--lcs-brass: #d1c29f;
	--lcs-brass-light: #ded2b4;
	--lcs-bill-green: #5b6f4e;
	--lcs-bill-paper: #cfd0b8;
	--lcs-pin: #8a8378;
	--lcs-font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
	--lcs-font-hand: 'Caveat', cursive;
	--lcs-font-mono: 'Special Elite', 'Courier New', monospace;
	--lcs-font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   2. Base / typography
   ========================================================================== */
body {
	background-color: var(--lcs-black-2);
	color: var(--lcs-paper);
	font-family: var(--lcs-font-body);
	font-size: 16px;
	line-height: 1.6;
}

h1, h2, h3, h4,
.site-title,
.woocommerce-loop-product__title,
.product_title {
	font-family: var(--lcs-font-display);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--lcs-paper);
}

a {
	color: var(--lcs-brass-light);
}

a:hover {
	color: var(--lcs-neon);
}

/* Grime texture across the whole site */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
	opacity: 0.09;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reusable "washi tape" strip, used to pin cards/notes to the page */
.lcs-taped {
	position: relative;
}

.lcs-taped::before {
	content: "";
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%) rotate(-3deg);
	width: 64px;
	height: 22px;
	background-color: rgba(216, 205, 180, 0.55);
	background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 2px, transparent 2px, transparent 5px);
	border: 1px solid rgba(0, 0, 0, 0.12);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   3. Header / nav
   ========================================================================== */
#masthead.site-header,
.storefront-primary-navigation {
	background-color: var(--lcs-black);
	border-bottom: 1px solid rgba(209, 194, 159, 0.35);
}

.site-header-cart,
#masthead .site-search,
.storefront-primary-navigation {
	background-color: transparent;
}

.site-branding .site-title a,
.site-branding .site-title a:visited {
	font-family: var(--lcs-font-display);
	font-size: 2rem;
	letter-spacing: 0.04em;
	color: var(--lcs-paper);
	display: inline-block;
}

.site-branding .site-description {
	font-family: var(--lcs-font-hand);
	color: var(--lcs-brass-light);
	font-size: 0.95rem;
}

.main-navigation ul li a {
	font-family: var(--lcs-font-body);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.07em;
	color: var(--lcs-paper-2);
}

.main-navigation ul li a:hover,
.main-navigation ul li:hover > a {
	color: var(--lcs-neon);
}

.main-navigation ul ul {
	background-color: var(--lcs-black-2);
	border-top: 1px solid rgba(209, 194, 159, 0.35);
}

#masthead .site-header-cart a.cart-contents,
#masthead .site-search input[type="search"] {
	color: var(--lcs-paper);
}

.site-header-cart .cart-contents .amount {
	color: var(--lcs-brass-light);
}

/* ==========================================================================
   4. Buttons (site-wide + WooCommerce) - worn brass hardware, not stickers
   ========================================================================== */
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
a.lcs-btn {
	background-color: var(--lcs-brass);
	color: var(--lcs-ink);
	font-family: var(--lcs-font-body);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.82rem;
	border: 1px solid rgba(0, 0, 0, 0.5);
	border-radius: 2px;
	padding: 0.85em 1.7em;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.5);
	transition: filter 0.15s ease, transform 0.15s ease;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
a.lcs-btn:hover {
	filter: brightness(1.12);
	color: var(--lcs-ink);
	transform: translateY(-1px);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
a.lcs-btn--dark {
	background-color: var(--lcs-black-3);
	color: var(--lcs-paper);
	border-color: rgba(209, 194, 159, 0.5);
}

.woocommerce span.onsale {
	background-color: var(--lcs-neon);
	color: var(--lcs-black);
	font-family: var(--lcs-font-body);
	text-transform: uppercase;
	font-weight: 700;
}

.woocommerce ul.products li.product .price ins {
	color: var(--lcs-brass-light);
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
#colophon.site-footer {
	background-color: var(--lcs-black);
	color: var(--lcs-paper-2);
	border-top: 1px solid rgba(209, 194, 159, 0.35);
}

#colophon.site-footer a {
	color: var(--lcs-brass-light);
}

#colophon .widget-title {
	font-family: var(--lcs-font-display);
	color: var(--lcs-paper);
	letter-spacing: 0.03em;
}

/* ==========================================================================
   6. Hero - dim, single flickering neon
   ========================================================================== */
.lcs-hero {
	position: relative;
	background-color: var(--lcs-black);
	background-image: radial-gradient(ellipse at 65% 15%, var(--lcs-neon-dim) 0%, transparent 45%), radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
	color: var(--lcs-paper);
	text-align: center;
	padding: 5rem 1.5rem 5.5rem;
	overflow: hidden;
}

.lcs-badge {
	width: 120px;
	height: 120px;
	margin: 0.5rem auto 1.25rem;
	color: var(--lcs-paper-2);
	opacity: 0.85;
}

.lcs-hero-title {
	font-family: var(--lcs-font-display);
	font-size: clamp(2.75rem, 7.5vw, 5.75rem);
	line-height: 0.95;
	margin: 0 0 0.9rem;
	color: #eafff2;
	text-shadow:
		0 0 2px #fff,
		0 0 8px #fff,
		0 0 18px var(--lcs-neon-bright),
		0 0 34px var(--lcs-neon-bright-glow),
		0 0 60px var(--lcs-neon-bright-glow),
		0 0 110px var(--lcs-neon-bright-dim);
	animation: lcs-sign-flicker 8s infinite;
}

@keyframes lcs-sign-flicker {
	0%, 100% { opacity: 1; }

	/* a sign catching itself - rapid stutter */
	12.5% { opacity: 1; }
	14%   { opacity: 0.35; }
	15%   { opacity: 1; }
	16.5% { opacity: 0.4; }
	17.5% { opacity: 1; }
	19%   { opacity: 0.3; }
	20%   { opacity: 1; }
	21.9% { opacity: 0.55; }
	23.1% { opacity: 1; }

	/* single quick dip */
	37.5% { opacity: 1; }
	38.8% { opacity: 0.4; }
	40%   { opacity: 1; }

	/* longer stutter, sign about to give out */
	75%   { opacity: 1; }
	76.5% { opacity: 0.25; }
	77.5% { opacity: 1; }
	79%   { opacity: 0.4; }
	80%   { opacity: 1; }
	81.5% { opacity: 0.3; }
	82.5% { opacity: 1; }
	84.4% { opacity: 0.6; }
	85.6% { opacity: 1; }
	87.1% { opacity: 0.35; }
	88.1% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.lcs-hero-title {
		animation: none;
	}
}

.lcs-hero-sub {
	font-family: var(--lcs-font-body);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	max-width: 560px;
	margin: 0 auto 2.25rem;
	color: var(--lcs-paper-2);
	line-height: 1.55;
}

.lcs-hero-ctas {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* ==========================================================================
   9. Brand story
   ========================================================================== */
.lcs-story {
	background-color: var(--lcs-black-2);
	padding: 5rem 1.5rem;
}

.lcs-story__inner {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}

.lcs-story h2 {
	font-size: 2.25rem;
	margin: 0 0 1rem;
	color: var(--lcs-paper);
}

.lcs-story p {
	text-transform: none;
	font-size: 1.05rem;
	color: var(--lcs-paper-2);
}

/* ==========================================================================
   10. Newsletter - a torn note pinned to the wall
   ========================================================================== */
.lcs-newsletter {
	background-color: var(--lcs-black);
	padding: 4.5rem 1.5rem;
	text-align: center;
}

.lcs-note {
	position: relative;
	max-width: 420px;
	margin: 0 auto;
	background-color: var(--lcs-paper);
	padding: 2rem 1.75rem;
	box-shadow: 2px 5px 14px rgba(0, 0, 0, 0.55);
	transform: rotate(-1deg);
}

.lcs-note h2 {
	font-family: var(--lcs-font-hand);
	text-transform: none;
	font-size: 2.1rem;
	color: var(--lcs-ink);
	margin: 0 0 0.5rem;
}

.lcs-note p {
	text-transform: none;
	color: #4a4038;
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
}

.lcs-newsletter-form {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.lcs-newsletter-form input[type="email"] {
	flex: 1 1 200px;
	padding: 0.8em 0.9em;
	border: 1px solid rgba(0, 0, 0, 0.4);
	border-radius: 2px;
	font-family: var(--lcs-font-body);
	font-size: 0.92rem;
}

.lcs-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cf-turnstile {
	flex-basis: 100%;
	display: flex;
	justify-content: center;
	overflow: hidden;
	max-height: 80px;
	opacity: 1;
	transition: opacity 0.35s ease, max-height 0.35s ease, margin-top 0.35s ease;
}

.cf-turnstile.lcs-turnstile-solved {
	opacity: 0;
	max-height: 0;
	pointer-events: none;
}

.lcs-newsletter-msg {
	max-width: 420px;
	margin: 0.9rem auto 0;
	font-family: var(--lcs-font-body);
	font-size: 0.9rem;
	font-weight: 600;
	min-height: 1.2em;
}

.lcs-newsletter-msg--ok {
	color: #3f6b52;
}

.lcs-newsletter-msg--error {
	color: #8b3a2e;
}

.lcs-signup-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.5rem 0 0.25rem;
	text-align: center;
}

.lcs-signup-success[hidden] {
	display: none;
}

.lcs-stamp {
	width: 108px;
	height: 108px;
	color: #3f6b52;
	transform: rotate(-8deg);
	animation: lcs-stamp-down 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

@keyframes lcs-stamp-down {
	0% {
		opacity: 0;
		transform: rotate(-30deg) scale(1.8);
	}
	60% {
		opacity: 1;
	}
	100% {
		opacity: 1;
		transform: rotate(-8deg) scale(1);
	}
}

.lcs-signup-success__message {
	margin: 0.9rem 0 0;
	font-family: var(--lcs-font-body);
	font-weight: 700;
	font-size: 1rem;
	text-transform: none;
	color: var(--lcs-ink);
}

@media (prefers-reduced-motion: reduce) {
	.lcs-stamp {
		animation: none;
	}
}
