/*
Theme Name: NOLA Parades
Theme URI: https://www.nolaparades.com/
Author: NOLA Parades, LLC
Author URI: https://www.nolaparades.com/
Description: Lightweight block theme for nolaparades.com, the home of the WWL Parade Tracker app.
Version: 1.0.3
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nolaparades
*/

/* Most styling lives in theme.json. This file holds the few things theme.json cannot express. */

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--wp--preset--color--night);
	background-image:
		linear-gradient(180deg, rgba(49, 14, 89, 0.92) 0%, rgba(31, 8, 56, 0.97) 60%),
		url("assets/images/bg-map.jpg");
	background-size: cover, 900px auto;
	background-attachment: fixed, fixed;
	-webkit-font-smoothing: antialiased;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

/* Keep the footer at the bottom on short pages */
.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > main,
.wp-site-blocks > #main {
	flex: 1 0 auto;
}

body,
.wp-site-blocks {
	overflow-x: clip;
}

/* Skip link */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--night);
}

/* Header */
.np-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-bar .np-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .np-header {
		top: 46px;
	}
}

.np-header .wp-block-site-title a,
.np-brand a {
	text-decoration: none;
}

.np-header .wp-block-navigation a:hover,
.np-header .wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--gold);
}

.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--night) !important;
	color: #fff !important;
	padding: 24px;
}

/* Mardi Gras stripe */
.np-stripe {
	height: 6px;
	background: linear-gradient(90deg,
		var(--wp--preset--color--purple) 0 33.33%,
		var(--wp--preset--color--gold) 33.33% 66.66%,
		var(--wp--preset--color--green) 66.66% 100%);
}

/* Hero */
.np-hero h1 {
	text-wrap: balance;
}

.np-app-icon img {
	border-radius: 22%;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Store badges */
.np-badges {
	gap: 14px;
}

.np-badges .wp-block-image {
	margin: 0;
}

.np-badges img {
	height: 52px !important;
	width: auto !important;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.np-badges a:hover img,
.np-badges a:focus-visible img {
	transform: translateY(-2px);
	opacity: 0.92;
}

/* Phone screenshots */
.np-phone img {
	border-radius: 28px;
	border: 6px solid #12051f;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
	aspect-ratio: 1206 / 2622;
	object-fit: cover;
	object-position: top;
	width: 100%;
	height: auto;
}

.np-phone figcaption {
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
	margin-top: 14px;
}

/* Feature cards */
.np-card {
	height: 100%;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.np-card:hover {
	border-color: rgba(254, 212, 42, 0.45);
	transform: translateY(-2px);
}

.np-card .np-emoji {
	font-size: 30px;
	line-height: 1;
	margin: 0;
}

/* Paper panel used for pages with long text and forms */
.np-paper {
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.np-paper a {
	text-underline-offset: 3px;
}

.np-paper h2 {
	padding-top: 0.4em;
	border-top: 1px solid rgba(49, 14, 89, 0.1);
}

.np-paper h2:first-of-type,
.np-paper .np-no-rule {
	border-top: 0;
}

.np-paper table {
	border-collapse: collapse;
	width: 100%;
}

.np-paper td,
.np-paper th {
	border: 1px solid rgba(49, 14, 89, 0.15);
	padding: 10px 12px;
	vertical-align: top;
	text-align: left;
}

.np-paper th {
	background: var(--wp--preset--color--lilac);
}

.np-paper .wp-block-table {
	overflow-x: auto;
}

/* Shared-location banner on /wwl/ (filled in by assets/js/shared-location.js) */
.np-shared-location[hidden] {
	display: none !important;
}

/* WPForms tidy-up so forms match the theme */
.np-paper .wpforms-container {
	margin: 0 !important;
}

.np-paper div.wpforms-container-full button[type="submit"],
.np-paper div.wpforms-container-full .wpforms-form button[type="submit"] {
	background-color: var(--wp--preset--color--purple) !important;
	border-color: var(--wp--preset--color--purple) !important;
	border-radius: 999px !important;
	padding: 12px 28px !important;
	height: auto !important;
	font-weight: 700 !important;
}

.np-paper div.wpforms-container-full button[type="submit"]:hover {
	background-color: var(--wp--preset--color--plum) !important;
}

.np-form-missing {
	padding: 16px 20px;
	border-radius: 12px;
	background: var(--wp--preset--color--lilac);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.np-card,
	.np-badges img {
		transition: none;
	}
}

@media (max-width: 781px) {
	body {
		background-attachment: scroll, scroll;
	}

	.np-badges img {
		height: 46px !important;
	}
}

@media (max-width: 600px) {
	.np-header .np-header-cta {
		display: none;
	}

	.np-header .np-brand img {
		width: 76px !important;
	}
}
