/* ==========================================================================
   1. DESIGN SYSTEM VARIABLES & CORE SETUP
   ========================================================================== */
:root { 
	font-family: 'Inter', sans-serif; 
	--text-color: #FDFAD9;  /* Signature Cream */
	--hover-color: #01164B; /* Deep Navy */
	color: var(--text-color);
}

@supports (font-variation-settings: normal) {
	:root { font-family: 'Inter var', sans-serif; }
}

* {
	box-sizing: border-box;
}

html, body {
	max-width: 100%;
	overflow-x: hidden; /* Hard block against any accidental horizontal viewport scrolling */
}

html {
	scroll-behavior: smooth;
}


body {
	font-family: "Inter", sans-serif;
	color: var(--text-color);
	background-color: #F63A2E; /* Punchy Vibrant Red */
	margin: 0;
}

/* Global Heading Defaults (Lemon Character Font) */
h1, h2, h3, header#main_header a {
	font-family: "Lemon", serif;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

a {
	text-decoration: none;
}

.container {
	width: 100%;
	max-width: 70%;
	margin-left: auto;
	margin-right: auto;
}

.page {
	display: flex; 
	flex-flow: column; 
	min-height: 100dvh;
}

.page > .page-contents {
	flex: 1 1 auto; 
	position: relative; 
	background-color: #F63A2E;
}


/* ==========================================================================
   2. REFRESHED HEADER STYLES (Sophisticated Frosted Backdrop)
   ========================================================================== */
header#main_header {
	position: fixed; 
	top: 0; 
	left: 0; 
	width: 100%;  
	z-index: 12; 
	padding: 16px 0;
	
	/* The Balance: Soft cream tint that lets the rich red ground pass through underneath */
	background-color: rgba(253, 250, 217, 0.88); 
	
	/* The Magic: Blurs whatever content passes behind the header block */
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	
	/* A crisp, clean navy baseline that structures the top boundary smoothly */
	border-bottom: 3px solid var(--hover-color);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

/* Maintain consistency across your toggle classes */
header#main_header.transparent {
	background-color: rgba(253, 250, 217, 0.88);
}

.header-inner {
	max-width: 85%;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Nav Links: Clean Deep Navy Typography */
header#main_header a.nav-link {
	font-family: "Lemon", serif;
	color: var(--hover-color) !important; /* Grounded Navy text */
	font-size: 1.05rem;
	padding: 8px 16px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.2s ease;
	display: inline-block;
}

header#main_header a.nav-link:hover {
	color: #F63A2E !important; /* Flashes your trademark red on hover */
	transform: scale(1.05);
}

.header-right {
	display: flex;
	align-items: center;
	gap: 25px;
}

/* Contact Button: Solid Signature Red Frame */
header#main_header a.contact-btn {
	font-family: "Lemon", serif;
	background: #F63A2E !important;       /* Bright red fill block */
	color: var(--text-color) !important;   /* Cream text cutout */
	padding: 10px 20px;
	border: 2px solid var(--hover-color) !important; /* Secure navy stroke border */                  
	border-radius: 0px !important;         /* Sharp geometric retro edges */
	text-transform: uppercase;
	font-size: 0.95rem;
	letter-spacing: 0.05em;
	box-shadow: 4px 4px 0px var(--hover-color); /* Flat block shadow offset */
	transition: all 0.2s ease;
}

header#main_header a.contact-btn:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0px var(--hover-color);
}

/* --- LOGO HOMEPAGE GEOMETRY --- */
.hero-logo-container {
	text-align: center; 
	display: flex; 
	justify-content: center; 
	flex-direction: column; 
	margin-top: 140px; /* Snug buffer below the fixed navigation bar */
	z-index: 10;
}

.logo-large {
	max-width: 100%; 
	width: calc(150px + 30%);
	margin: 0 auto;
}


/* ==========================================================================
   3. BRUTALIST RETRO-MATCHBOX STOCKISTS DIRECTORY
   ========================================================================== */
/* --- THE MAIN PAGE TITLE (STOCKISTS) --- */
.stockists-container h1 {
	font-family: "Lemon", serif;
	font-size: 3.5rem;          /* Massive, loud presence */
	text-align: center;
	display: block;
	margin: 60px auto 40px auto;
	text-transform: uppercase;
	color: var(--text-color);    /* Cream Text */
	
	/* Double-layer retro shadow: gives it a 3D pop art effect without a box */
	text-shadow: 
		3px 3px 0px var(--hover-color), 
		6px 6px 0px rgba(0, 0, 0, 0.2);
	
	letter-spacing: 0.05em;
}

/* --- THE REGIONAL HEADERS (H2s - e.g., London, Manchester) --- */
.container > h2 {
	font-family: "Lemon", serif;
	color: var(--text-color);    /* Cream Text */
	font-size: 1.8rem;
	
	/* Turn the heading into a graphic "Stencil Tape" block */
	background-color: var(--hover-color); /* Deep Navy background slab */
	display: inline-block;
	padding: 8px 24px;
	margin-top: 60px;
	margin-bottom: 35px;
	
	/* Dynamic slant + flat shadow combo */
	transform: skewX(-8deg); 
	box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.25);
	
	letter-spacing: 0.08em;
}

ul.stockists {
	display: grid;
	/* Balanced grid columns */
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	padding: 0;
	margin-bottom: 60px;
}

ul.stockists li {
	list-style-type: none;
	margin: 0;
	display: flex; /* Magic trick: Forces child links to stretch to equal height */
}

ul.stockists li a {
	display: flex;
	flex-direction: column;
	width: 100%;
	
	/* The Matchbox Card Styling */
	background-color: var(--text-color); /* Inverted look: Crisp cream card background */
	color: #F63A2E;                       /* Punchy red text inside the card */
	padding: 24px;
	border-radius: 0px;                  /* Hard, raw, un-rounded geometric edges */
	border: 3px solid var(--hover-color); /* Thick, solid navy street-border */
	box-shadow: 6px 6px 0px var(--hover-color); /* Pop art flat block shadow */
	
	transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Store Title Header inside the Matchbox */
ul.stockists li h3 {
	font-family: "Lemon", serif;
	font-size: 1.35rem;
	text-transform: uppercase;
	margin: 0 0 10px 0;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: var(--hover-color); /* Dark navy header so it jumps off the cream card */
	transition: color 0.2s ease;
}

/* Address text inside the Matchbox */
ul.stockists li span {
	font-family: "Inter", sans-serif;
	font-size: 0.95rem;
	color: #2b3a61; /* Deep indigo-slate for legible, high-contrast reading */
	display: block;
	line-height: 1.45;
	margin-top: auto; /* Pushes the address down cleanly to stay unified */
}

/* Interactive Hover State: The Card Pops Up off the Screen */
ul.stockists li a:hover {
	transform: translate(-4px, -4px); /* Moves card up and left */
	box-shadow: 12px 12px 0px var(--hover-color); /* Increases block shadow scale */
	background-color: var(--text-color); /* Keeps block background stable */
}

ul.stockists li a:hover h3 {
	color: #F63A2E; /* Inverts the header title back to vibrant red on hover */
}


/* ==========================================================================
   4. CURATED BRUTALIST GALLERY STYLES
   ========================================================================== */
.gallery-container {
	columns: 3 250px; 
	column-gap: 20px;
	padding: 20px;
	margin-top: 40px;
}

.gallery-item {
	break-inside: avoid; 
	margin-bottom: 20px;
	background: #000; 
	border: 4px solid var(--text-color); 
	box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.3); 
	transform: rotate(var(--rotation, 0deg)); 
	transition: transform 0.3s ease;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gallery-item:nth-child(even) { --rotation: -1.5deg; }
.gallery-item:nth-child(odd) { --rotation: 1.5deg; }

.gallery-item:hover {
	transform: scale(1.03) rotate(0deg);
}


/* ==========================================================================
   5. REFRESHED FOOTER & BADGES
   ========================================================================== */
#footer {
	background: var(--text-color);
	border-top: 4px solid var(--hover-color);
	padding: 40px 5%;
	display: flex;
	flex-direction: column;
	gap: 30px;
	align-items: center;
	text-align: center;
}

.footer-section h3 {
	font-family: "Lemon", serif;
	color: var(--hover-color);
	font-size: 1.4rem;
	margin-top: 0;
	margin-bottom: 15px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Social Icon Badges Container */
.social-links {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.social-container {
	font-size: 22px;
	height: 44px;
	width: 44px;
	border-radius: 50%;
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: transform 0.2s ease;
}

.social-container:hover {
	transform: scale(1.15) rotate(-5deg);
}

/* Social Media App Branding Colors */
.instagram { 
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
}
.tiktok   { background-color: #000000; }
.facebook { background-color: #1877F2; }

/* The Fixed Ticket-Style Contact Button */
.footer-email-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: #F63A2E;
	color: var(--text-color) !important;
	font-family: "Lemon", serif;
	font-size: 1rem;
	padding: 12px 24px;
	border: 3px solid var(--hover-color);
	box-shadow: 4px 4px 0px var(--hover-color);
	transition: all 0.2s ease;
}

.footer-email-badge:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0px var(--hover-color);
	background-color: var(--hover-color);
	color: var(--text-color) !important;
}


/* ==========================================================================
   6. RESPONSIVE LAYOUT MEDIA QUERIES (Mobile-Safe Corrections)
   ========================================================================== */

/* TABLETS & PHONES (Down to 0px) */
@media only screen and (max-width: 767px) {
	.container {
		max-width: 90%; 
	}

	/* HEADER MOBILE RECONSTRUCTION */
	header#main_header {
		padding: 12px 0;
	}
	
	.header-inner {
		max-width: 92%;
		gap: 10px;
	}

	header#main_header a.nav-link {
		font-size: 0.85rem; 
		padding: 6px 8px;
	}

	.header-right {
		gap: 10px;
	}

	header#main_header a.contact-btn {
		padding: 8px 14px;
		font-size: 0.8rem;
		box-shadow: 2px 2px 0px var(--hover-color); 
	}
	
	header#main_header a.contact-btn:hover {
		transform: none;
		box-shadow: 2px 2px 0px var(--hover-color);
	}

	/* HERO LOGO BUFFER */
	.hero-logo-container {
		margin-top: 100px;
	}

	/* STOCKISTS ENGINE MOBILE CLEANUP */
	.stockists-container h1 {
		font-size: 2.2rem; 
		margin: 40px auto 20px auto;
		text-shadow: 2px 2px 0px var(--hover-color);
	}

	.container > h2 {
		font-size: 1.2rem; 
		padding: 6px 16px;
		margin-top: 40px;
		margin-bottom: 20px;
		max-width: 100%;
		white-space: normal; 
	}

	ul.stockists {
		grid-template-columns: 1fr; 
		gap: 20px;
	}

	ul.stockists li a {
		padding: 18px;
		box-shadow: 4px 4px 0px var(--drink-red); 
	}
	
	ul.stockists li a:hover {
		transform: none; 
		box-shadow: 4px 4px 0px var(--drink-red);
	}

	/* GALLERY CASCADE CONVERSION */
	.gallery-container {
		columns: 2 140px; 
		padding: 10px;
		margin-top: 20px;
	}
	
	.gallery-item {
		border: 2px solid var(--hover-color);
		box-shadow: 4px 4px 0px var(--drink-red);
	}
}

/* DESKTOP RESPONSIVE DESIGN (768px and up) */
@media only screen and (min-width: 768px) {
	#footer {
		flex-direction: row; /* Snaps the columns back to side-by-side row split */
		justify-content: space-between;
		text-align: left;
	}
	
	.footer-section {
		display: flex;
		flex-direction: column;
	}
	
	.footer-section.contact-section {
		align-items: flex-end; /* Aligns contact data neatly to the right flank */
	}
	
	.social-links {
		justify-content: flex-start;
	}
}

/* ==========================================================================
   SEARCH BAR GLOBAL & MOBILE STYLES
   ========================================================================== */
.search-wrapper {
	max-width: 500px;
	margin: 0 auto 50px auto;
	padding: 0 15px;
	width: 100%;
}

#stockist-search {
	width: 100%;
	font-family: "Inter", sans-serif;
	font-weight: 700;
	font-size: 1rem;
	padding: 16px;
	background-color: var(--text-color);
	color: var(--hover-color);
	border: 3px solid var(--hover-color);
	border-radius: 0px;
	box-shadow: 4px 4px 0px var(--hover-color);
	outline: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.2s ease;
}

#stockist-search::placeholder {
	color: rgba(1, 22, 75, 0.5);
}

#stockist-search:focus {
	box-shadow: 6px 6px 0px #ffffff;
}

/* --- TELEPHONE & SMALL SCREEN OVERRIDES --- */
@media only screen and (max-width: 767px) {
	.search-wrapper {
		margin-bottom: 30px; /* Tighter vertical spacing on mobile devices */
		padding: 0 10px;
	}

	#stockist-search {
		font-size: 0.85rem;  /* Shrinks large desktop text down to mobile bounds */
		padding: 12px 14px;  /* Slightly less chunky internal padding */
		border-width: 2px;   /* Thinner brutalist ink outline on tiny devices */
		box-shadow: 3px 3px 0px var(--hover-color); /* Scaled down flat perspective shadow */
	}
	
	#stockist-search:focus {
		box-shadow: 4px 4px 0px #ffffff;
	}
	
	/* Card specific action label adjustments for compact phone list layouts */
	.card-action {
		font-size: 0.75rem;
		margin-top: 12px;
	}
}