/*
Theme Name: Mini Golf Gardens Modern
Theme URI: https://www.minigolfgardens.com/
Author: SEOMetrics
Description: A lightweight modern block theme for Mini Golf Gardens. Designed to work with Clean WP blocks for site info, hours, pricing, carousel, gallery, notices, contact forms, and maps.
Version: 1.2.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: minigolf-gardens-modern
*/


html { scroll-behavior: smooth; }
body { 
	background: var(--wp--preset--color--cream);
}
a { text-underline-offset: 0.18em; }
.wp-site-blocks { overflow-x: clip; }



.mgg-shadow-soft { box-shadow: 0 18px 45px rgba(31, 77, 43, 0.12); }
.mgg-shadow-strong { box-shadow: 0 28px 80px rgba(18, 49, 29, 0.22); }
.mgg-card-hover { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.mgg-card-hover:hover { transform: translateY(-3px); box-shadow: 0 22px 55px rgba(31, 77, 43, 0.16); }
.mgg-header { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mgg-hero-overlay { background: linear-gradient(90deg, rgba(18, 49, 29, 0.88), rgba(18, 49, 29, 0.54), rgba(18, 49, 29, 0.18)); }

/* Header layout: wide logo top row, centred menu below on desktop; compact one-row header on mobile. */
.mgg-header-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand call"
    "nav nav";
  align-items: center;
  column-gap: clamp(1rem, 3vw, 3rem);
  row-gap: 0.8rem;
}

.mgg-brand { grid-area: brand; min-width: 0; }
.mgg-brand .wp-block-site-title { margin: 0; }
.mgg-brand .wp-block-site-title a {
  white-space: nowrap;
  font-size: clamp(1.6rem, 3.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}
.mgg-brand .wp-block-site-logo { flex: 0 0 auto; }
.mgg-brand .wp-block-site-logo img { width: clamp(2.75rem, 5vw, 5rem); height: auto; }

.mgg-header-nav {
  grid-area: nav;
  justify-self: center;
  width: 100%;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(31, 77, 43, 0.12);
}
.mgg-header-nav .wp-block-navigation__container { justify-content: center; }
.mgg-header-nav a { text-decoration: none; }
.mgg-header-nav a:hover,
.mgg-header-nav .current-menu-item > a,
.mgg-header-nav .current-menu-ancestor > a { color: var(--wp--preset--color--deep-green); }

.mgg-call-button {
  grid-area: call;
  justify-self: end;
  margin: 0;
}
.mgg-call-button .wp-block-button__link {
  white-space: nowrap;
  min-width: max-content;
  padding: 0.82rem 1.45rem;
  box-shadow: 0 10px 24px rgba(246, 200, 95, 0.30);
}

/* Hero action button layout */
.hero-action-buttons {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.5rem;
	align-items: center;
	justify-content: flex-start;
}

/* Make the block wrappers behave consistently */
.hero-action-buttons > * {
	margin: 0;
	flex: 0 0 auto;
}

/* Keep desktop buttons on one row */
.hero-action-buttons .wp-block-clean-wp-site-action-button,
.hero-action-buttons .cws-action-button {
	width: auto;
	white-space: nowrap;
}

/* Mobile: 2 buttons on first row, directions full width */
@media (max-width: 640px) {
	.hero-action-buttons {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.9rem;
		width: 100%;
		align-items: stretch;
	}

	.hero-action-buttons > * {
		width: 100%;
		margin: 0;
		display: flex;
		align-items: stretch;
	}

	.hero-action-buttons > *:nth-child(3) {
		grid-column: 1 / -1;
	}

	.hero-action-buttons .wp-block-clean-wp-site-action-button,
	.hero-action-buttons .cws-action-button {
		width: 100%;
		min-height: 3.35rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		text-align: center;
		white-space: nowrap;
		padding-inline: 1rem;
	}

	.hero-action-buttons .cws-action-button__label {
		line-height: 1;
	}
}




@media (max-width: 782px) {
  .mgg-header-grid {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand call nav";
    column-gap: 0.65rem;
    row-gap: 0;
  }
  .mgg-header-nav {
    width: auto;
    padding-top: 0;
    border-top: 0;
    justify-self: end;
  }
  .mgg-header-nav .wp-block-navigation__responsive-container-open {
    color: var(--wp--preset--color--deep-green);
    padding: 0.45rem;
  }
  .mgg-brand { gap: 0.35rem !important; }
  .mgg-brand .wp-block-site-title a {
    font-size: clamp(1.18rem, 6.4vw, 2rem);
    letter-spacing: -0.06em;
  }
  .mgg-brand .wp-block-site-logo img { width: clamp(2.15rem, 9vw, 3rem); }
  .mgg-call-button .wp-block-button__link {
    padding: 0.68rem 0.95rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .mgg-call-button .wp-block-button__link { padding: 0.62rem 0.78rem; font-size: 0.84rem; }
  .mgg-brand .wp-block-site-title a { font-size: clamp(1.05rem, 6vw, 1.5rem); }
}


.mgg-page-shell {
  position: relative;
  overflow: hidden;
}

.mgg-page-shell::before,
.mgg-page-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.52;
  z-index: 0;
}

.mgg-page-shell::before {
  width: 28rem;
  height: 28rem;
  right: -12rem;
  top: 5rem;
  background: rgba(246, 200, 95, 0.32);
}

.mgg-page-shell::after {
  width: 24rem;
  height: 24rem;
  left: -11rem;
  bottom: 10rem;
  background: rgba(119, 168, 87, 0.20);
}

.mgg-layer { position: relative; z-index: 1; }

.mgg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border: 1px solid rgba(31, 77, 43, 0.16);
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(31, 77, 43, 0.08);
}

.mgg-stat {
  border-left: 4px solid var(--wp--preset--color--warm-yellow);
}

.mgg-rule-number,
.mgg-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: var(--wp--preset--color--deep-green);
  color: var(--wp--preset--color--white);
  font-weight: 850;
  line-height: 1;
}

.mgg-modern-card {
  border: 1px solid rgba(31, 77, 43, 0.10);
}

.mgg-feature-list {
  list-style: none;
  padding-left: 0;
}

.mgg-feature-list li {
  position: relative;
  padding-left: 1.55rem;
  margin: 0.6rem 0;
}

.mgg-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--wp--preset--color--fresh-green);
}

.mgg-diagonal {
  background: linear-gradient(135deg, var(--wp--preset--color--forest) 0%, var(--wp--preset--color--deep-green) 58%, #2d6b3b 100%);
}

.mgg-glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (max-width: 782px) {
  .mgg-hide-mobile { display: none !important; }
  .mgg-page-shell::before { right: -18rem; }
  .mgg-page-shell::after { left: -18rem; }
}



.mgm-hero {
	position: relative;
	overflow: hidden;
	border-radius: 34px;
	padding: clamp(28px, 4vw, 56px);
	background:
		radial-gradient(circle at 28% 25%, rgba(24, 119, 69, 0.78) 0%, rgba(7, 65, 38, 0.55) 34%, rgba(4, 37, 22, 0) 64%),
		linear-gradient(135deg, #07391f 0%, #052d1a 48%, #031f13 100%);
	color: #fff;
}

.mgm-hero::before {
	content: "";
	position: absolute;
	left: -24px;
	bottom: -26px;
	width: 230px;
	height: 230px;
	opacity: 0.18;
	pointer-events: none;
	background:
		radial-gradient(ellipse at 20% 80%, transparent 0 35%, rgba(164, 190, 143, 0.75) 36% 38%, transparent 39%),
		linear-gradient(38deg, transparent 0 45%, rgba(164, 190, 143, 0.55) 46% 50%, transparent 51%),
		linear-gradient(75deg, transparent 0 43%, rgba(164, 190, 143, 0.42) 44% 53%, transparent 54%);
	border-radius: 50%;
	transform: rotate(-8deg);
}

.mgm-hero::after {
	content: "";
	position: absolute;
	top: 24px;
	right: 28px;
	width: 170px;
	height: 170px;
	opacity: 0.42;
	pointer-events: none;
	background-image: radial-gradient(circle, rgba(242, 199, 92, 0.75) 2px, transparent 2.5px);
	background-size: 18px 18px;
	mask-image: linear-gradient(135deg, transparent 0%, #000 30%, #000 100%);
	-webkit-mask-image: linear-gradient(135deg, transparent 0%, #000 30%, #000 100%);
}

.mgm-hero__grid {
	position: relative;
	z-index: 2;
	align-items: center !important;
	gap: clamp(24px, 4vw, 56px);
}

.mgm-hero__content {
	position: relative;
	z-index: 3;
}

.mgm-hero__eyebrow {
	margin: 0 0 18px;
	color: #f2c75c;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mgm-hero h1 {
	margin: 0 0 24px;
	max-width: 11ch;
	color: #fff;
	font-size: clamp(3rem, 5.3vw, 5.8rem);
	font-weight: 850;
	line-height: 0.96;
	letter-spacing: -0.04em;
}

.mgm-hero p:not(.mgm-hero__eyebrow) {
	max-width: 39rem;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1.15rem, 1.7vw, 1.55rem);
	line-height: 1.55;
}

.mgm-hero__media {
	position: relative;
	min-height: 480px;
	z-index: 3;
}

.mgm-hero__media::before {
	content: "";
	position: absolute;
	inset: 0 -12px 0 26px;
	z-index: 1;
	opacity: 0.38;
	border-radius: 24% 16% 22% 18% / 18% 24% 19% 20%;
	background: rgba(123, 168, 86, 0.7);
	transform: rotate(2deg);
}

.mgm-hero__photo {
	position: absolute;
	inset: 36px 0 34px 0;
	z-index: 2;
	overflow: hidden;
	border-radius: 18% 12% 16% 14% / 12% 18% 16% 14%;
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.mgm-hero__photo figure {
	width: 100%;
	height: 100%;
	margin: 0;
}

.mgm-hero__photo img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.mgm-hero__badge {
	position: absolute;
	left: -34px;
	bottom: 20px;
	width: 172px;
	z-index: 4;
	margin: 0 !important;
	filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.22));
}

.mgm-hero__badge img {
	width: 100%;
	height: auto;
	display: block;
}

.mgm-hero__buttons {
	margin-top: 30px;
	gap: 16px;
}

.mgm-hero .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 58px;
	padding: 15px 28px;
	border-radius: 999px;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.mgm-hero .hero-btn--hours .wp-block-button__link {
	background: #f2c75c;
	border: 2px solid #f2c75c;
	color: #10311f;
	box-shadow: 0 14px 28px rgba(242, 199, 92, 0.2);
}

.mgm-hero .hero-btn--directions .wp-block-button__link {
	background: rgba(255, 255, 255, 0.06);
	border: 2px solid rgba(255, 255, 255, 0.9);
	color: #fff;
}

.mgm-hero .hero-btn--directions .wp-block-button__link:hover,
.mgm-hero .hero-btn--directions .wp-block-button__link:focus {
	background: rgba(255, 255, 255, 0.13);
}

@media (max-width: 781px) {
	.mgm-hero {
		padding: 28px 20px 22px;
		border-radius: 28px;
	}

	.mgm-hero h1 {
		max-width: 100%;
		font-size: clamp(3rem, 13vw, 4.6rem);
	}

	.mgm-hero__buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.mgm-hero .wp-block-button,
	.mgm-hero .wp-block-button__link {
		width: 100%;
	}

	.mgm-hero__media {
		min-height: 365px;
		margin-top: 28px;
	}

	.mgm-hero__photo {
		inset: 24px 0 18px;
		border-radius: 17% 12% 16% 13% / 12% 17% 14% 16%;
	}

	.mgm-hero__media::before {
		inset: 0 -6px 0 10px;
	}

	.mgm-hero__badge {
		left: -8px;
		bottom: 8px;
		width: 118px;
	}

	.mgm-hero::before {
		width: 150px;
		height: 150px;
	}

	.mgm-hero::after {
		width: 112px;
		height: 112px;
		top: 14px;
		right: 14px;
		background-size: 15px 15px;
	}
}

/* Mobile menu extras are hidden by default
.mg-mobile-menu-extras {
	display: none;
}

@media (max-width: 781px) {
	.wp-block-navigation__responsive-container.is-menu-open {
		background: #fffaf0;
		color: #103f22;
		padding: 0;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		top: 22px;
		right: 22px;
		color: #103f22;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		min-height: 100vh;
		box-sizing: border-box;
		padding-top: 160px;
		padding-bottom: 190px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		width: 100%;
		gap: 20px;
		align-items: center;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		width: 100%;
		justify-content: center;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		font-size: 1.15rem;
		font-weight: 800;
		text-align: center;
		color: #103f22;
		text-decoration: none;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus {
		color: #2f963d;
	}

	body:has(.wp-block-navigation__responsive-container.is-menu-open) .mg-mobile-menu-extras {
		position: fixed;
		inset: 0;
		z-index: 100001;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		box-sizing: border-box;
		padding: 28px 24px 34px;
		pointer-events: none;
	}

	body:has(.wp-block-navigation__responsive-container.is-menu-open) .mg-mobile-menu-extras > * {
		pointer-events: auto;
	}

	body:has(.wp-block-navigation__responsive-container.is-menu-open) .mg-mobile-menu-logo {
		align-self: center;
		margin-top: 18px;
		max-width: 260px;
	}

	body:has(.wp-block-navigation__responsive-container.is-menu-open) .mg-mobile-menu-logo img {
		display: block;
		max-width: 100%;
		height: auto;
	}

	body:has(.wp-block-navigation__responsive-container.is-menu-open) .mg-mobile-menu-hours {
		align-self: center;
		margin-top: auto;
		margin-bottom: 14px;
		text-align: center;
		font-size: 0.95rem;
		font-weight: 700;
		color: #103f22;
	}

	body:has(.wp-block-navigation__responsive-container.is-menu-open) .mg-mobile-menu-call {
		align-self: center;
		width: min(100%, 320px);
		margin: 0;
	}

	body:has(.wp-block-navigation__responsive-container.is-menu-open) .mg-mobile-menu-call .wp-block-button__link {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		box-sizing: border-box;
		min-height: 56px;
		border-radius: 999px;
		background: #f6cd57;
		color: #103f22;
		font-weight: 800;
		text-decoration: none;
	}

	body:has(.wp-block-navigation__responsive-container.is-menu-open) .mg-mobile-menu-call .wp-block-button__link:hover,
	body:has(.wp-block-navigation__responsive-container.is-menu-open) .mg-mobile-menu-call .wp-block-button__link:focus {
		background: #f0bd2f;
		color: #103f22;
	}
}*/