@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

:root {
	--bg-color: #3a3a3a;
	--text-color: #EAE6E1;
	--accent-color: #C69C6D;
	--header-bg: rgba(26, 44, 41, 0.95);
	/* header height used for mobile nav offset */
	--header-height-desktop: 72px;
	--header-height-mobile: 56px;
	--card-bg: #223834;
	--font-main: 'Sora', sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-main);
	background-color: #febd11;
	color: var(--text-color);
	line-height: 1.6;
}

/* Global Top Notification */
.top-notification {
	background-color: #1a1a1a;
	color: #febd11;
	text-align: center;
	padding: 0.5rem 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	position: relative;
	z-index: 1002;
}

/* Header */
header {
	position: fixed;
	top: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	/* use explicit height so mobile nav can be positioned relative to it */
	height: var(--header-height-desktop);
	padding: 0 5%;
	background-color: #000000 !important;
	z-index: 1200;
	/* keep header above the mobile nav panel */
	border-bottom: none;
}

nav {
	margin-left: auto;
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	letter-spacing: -0.5px;
}

nav ul {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	flex-wrap: wrap;
}

nav a {
	color: #ffffff;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
	font-size: 0.9rem;
	white-space: nowrap;
}

nav a:hover,
nav a.active {
	color: #febd11;
}

/* Hero Section */
.hero {
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 0 1rem;
	background: radial-gradient(circle at center, rgba(26, 44, 41, 0.5) 0%, rgba(26, 44, 41, 1) 100%), url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
}

.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1rem;
	max-width: 800px;
	line-height: 1.2;
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	max-width: 600px;
	opacity: 0.9;
}

.cta-btn {
	padding: 1rem 2rem;
	background-color: var(--accent-color);
	color: #000;
	text-decoration: none;
	font-weight: 600;
	border-radius: 50px;
	transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(198, 156, 109, 0.4);
}

/* Sections */
section {
	padding: 5rem 5%;
}

.section-title {
	font-size: 2.5rem;
	margin-bottom: 3rem;
	text-align: center;
	color: #000;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 3rem;
}

.grid-scroll {
	display: flex;
	gap: 3rem;
	animation: scroll 15s linear infinite;
	width: max-content;
}

.grid-container {
	overflow: hidden;
	width: 100%;
}

@keyframes scroll {
	0% {
		transform: translateX(0%);
	}

	100% {
		transform: translateX(calc(-350px * 6 - 3rem * 6));
	}
}

.card {
	background-color: #fff;
	padding: 2.5rem;
	border: 1px solid #000;
	border-radius: 4px;
	transition: transform 0.3s, background-color 0.3s;
	flex-shrink: 0;
	width: 350px;
	color: #000;
}

.card:hover {
	transform: translateY(-5px);
	background-color: rgba(34, 56, 52, 1);
	border-color: #000;
	color: #fff;
}

.card:hover h3 {
	color: #ffffff;
}

.card:hover p {
	color: #ffffff;
}

.card h3 {
	margin-bottom: 1rem;
	font-size: 1.8rem;
	color: var(--accent-color);
	font-weight: 600;
}

/* Footer */
footer {
	text-align: center;
	padding: 3rem 5%;
	background-color: #152321;
	margin-top: auto;
}

/* Ensure copyright text in footer is visible (white) on all pages */
footer p {
	color: #ffffff;
}

/* Mobile Nav */
.menu-toggle {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #ffffff;
	padding: 0.5rem;
	border: none;
	background: none;
	position: absolute;
	left: 4%;
	/* Relocated to left as per image */
	z-index: 1201;
}

@media (max-width: 768px) {
	.hero h1 {
		font-size: 2.5rem;
	}

	.menu-toggle {
		display: block;
	}

	/* Hide desktop navigation */
	nav ul {
		display: none;
	}

	header {
		height: var(--header-height-mobile);
		padding: 0.8rem 4%;
	}

	.logo {
		font-size: 1.2rem;
	}

	.logo img {
		height: 40px !important;
	}

	/* Mobile nav slides in from top */
	nav ul.show {
		display: flex;
		position: fixed;
		top: var(--header-height-mobile);
		left: 0;
		right: 0;
		width: 100%;
		height: auto;
		/* Allow height to fit items */
		min-height: 50vh;
		flex-direction: column;
		justify-content: space-evenly;
		align-items: center;
		background-color: #000000;
		text-align: center;
		padding: 2.5rem 1rem;
		transform: translateY(0);
		transition: transform 0.3s ease-in-out;
		z-index: 1100;
		overflow: hidden;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	}

	.logo {
		margin-left: 45px;
		/* Offset for left hamburger */
		font-size: 1rem !important;
	}

	nav ul li {
		width: 100%;
		margin: 0;
	}

	nav ul li a {
		display: block;
		width: 100%;
		padding: 0.8rem;
		text-align: center;
		font-size: 1rem;
		color: #ffffff !important;
		font-weight: 700;
		border-bottom: none;
		border-radius: 4px;
		transition: background-color 0.3s;
	}

	nav ul li a:hover {
		background-color: rgba(255, 255, 255, 0.1);
	}

	/* Close mobile nav when clicking outside */
	body.nav-open {
		overflow: hidden;
	}

	/* Scale down content when nav is open */
	body.nav-open main,
	body.nav-open .book-table-container,
	body.nav-open .booking-container {
		transform: none;
	}
}

/* Global responsive improvements */

/* Make images and embedded content scale */
img,
picture,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

iframe {
	max-width: 100%;
}

/* Ensure grids collapse to single column on small screens */
@media (max-width: 860px) {
	.contact-page {
		padding-top: 100px;
	}

	.contact-page .location-row {
		flex-direction: column;
	}

	.contact-page iframe {
		height: 200px;
	}

	.grid {
		grid-template-columns: 1fr !important;
		gap: 1.5rem !important;
	}

	.card,
	.card * {
		box-sizing: border-box;
	}

	/* Reduce section padding on tablets */
	section {
		padding: 3rem 4%;
	}
}

/* Form elements full width on small screens */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select,
button {
	max-width: 100%;
	box-sizing: border-box;
}

@media (max-width: 480px) {

	/* Make buttons expand full width for touch */
	.btn-pill-black,
	.apply-btn,
	.cta-btn,
	.submit-btn {
		width: 100%;
		display: block;
		margin: 0.5rem 0;
		min-height: 48px;
		/* Minimum touch target size */
	}

	/* Footer spacing and text size adjustments */
	footer {
		padding: 2rem 4%;
	}

	footer p {
		font-size: 0.9rem;
	}

	/* Reduce hero vertical height for phones */
	.hero,
	.hero-landing {
		padding: 2rem 1rem;
		min-height: 80vh;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.hero p {
		font-size: 1rem;
	}

	/* Reduce section padding on phones */
	section {
		padding: 2rem 4%;
	}

	/* Improve text readability */
	.section-title {
		font-size: 2rem;
		margin-bottom: 2rem;
	}

	.card {
		padding: 1.5rem;
	}

	.card h3 {
		font-size: 1.5rem;
	}
}

/* Accessibility: larger tappable areas for links in lists */
nav a {
	padding: 0.35rem 0.5rem;
	min-height: 44px;
	/* Minimum touch target */
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Prevent horizontal scroll on mobile */
* {
	max-width: 100%;
}

html,
body {
	overflow-x: hidden;
}

/* Improve touch targets */
button,
.btn-pill-black,
.cta-btn,
.apply-btn,
.submit-btn {
	min-height: 44px;
	min-width: 44px;
}

/* Better focus states for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
	outline: 2px solid var(--accent-color);
	outline-offset: 2px;
}

/* Utility classes for mobile optimization */
.text-wrap {
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
}

.no-scroll {
	overflow: hidden;
}

/* Smooth scrolling for better UX */
html {
	scroll-behavior: smooth;
}

/* Ensure all text is readable on mobile */
@media (max-width: 480px) {

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	p,
	span,
	div {
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
}

.contact-page {
	background: url('../images/WeNeighborhood_SunRay_Logo_Blue.jpg') no-repeat center center fixed;
	background-size: cover;
	min-height: 100vh;
	color: #000;
}

.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page h4,
.contact-page h5,
.contact-page h6,
.contact-page p,
.contact-page span,
.contact-page div,
.contact-page strong {
	color: #000;
}

.contact-page .location-row {
	margin-bottom: 2rem;
	display: flex;
	gap: 2rem;
	align-items: center;
	/* vertically center map and text */
}

.contact-page .location-row .col:first-child {
	flex: 1;
}

.contact-page .location-row .col:last-child {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Remove tap highlight and focus outline */
button,
input,
textarea,
select,
a {
	-webkit-tap-highlight-color: transparent;
	outline: none;
}

button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
	outline: none;
	box-shadow: none;
}

/* end contact layout rules */

/* Map wrapper badge for Contact page */
.map-wrapper {
	position: relative;
	width: 100%;
}

.map-wrapper iframe {
	display: block;
}

.map-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	height: 32px;
	width: 32px;
	pointer-events: none;
	background: rgba(255, 255, 255, 0.85);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	z-index: 9999;
}

/* Ensure overlay isn't clipped by wrapper/iframe stacking */
.map-wrapper {
	overflow: visible;
}

/* Utility Classes */
.chess-pattern {
	background-color: #ffffff;
	background-image: conic-gradient(#fff9e5 90deg, #ffffff 90deg 180deg, #fff9e5 180deg 270deg, #ffffff 270deg);
	background-size: 100px 100px;
}

.chess-pattern-dark {
	background-color: #ffffff;
	background-image: conic-gradient(#f2df91 90deg, #ffffff 90deg 180deg, #f2df91 180deg 270deg, #ffffff 270deg);
	background-size: 100px 100px;
}