/*
Theme Name: Green Horizon Landscaping
Theme URI: https://greenhorizonlandscaping.com
Author: Green Horizon Landscaping Co.
Description: Custom block theme for Green Horizon Landscaping Co.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Version: 2.7
License: GPL v2 or later
Text Domain: green-horizon
*/

/* ---------------------------------------------
   Custom shapes theme.json can't express alone
--------------------------------------------- */

/* The dark-green hero block behind "NEW HORIZONS AWAIT." */
.gh-dome {
	background-color: var(--wp--preset--color--dark-green);
	padding-bottom: 5rem;
}

@media (min-width: 700px) {
	.gh-dome {
		padding-bottom: 8rem;
	}
}

/* The light-green shape that arcs UP into the dome from below */
.gh-dome-cover {
	position: relative;
	z-index: 1;
	margin-top: -60px;
	border-top-left-radius: 50% 40px;
	border-top-right-radius: 50% 40px;
}

@media (min-width: 700px) {
	.gh-dome-cover {
		margin-top: -110px;
		border-top-left-radius: 50% 80px;
		border-top-right-radius: 50% 80px;
	}
}

/* The mid-green "hill" that peeks out behind the card on inner pages */
.gh-hill {
	position: relative;
	overflow: visible;
	border-radius: 50% 50% 0 0 / 60px 60px 0 0;
}

@media (min-width: 700px) {
	.gh-hill {
		border-radius: 50% 50% 0 0 / 100px 100px 0 0;
	}
}

/* The big off-white rounded card used on About/Gallery/Services/Contact */
.gh-card {
	position: relative;
	z-index: 1;
	background-color: var(--wp--preset--color--off-white);
	border-radius: 32px;
	box-shadow: 0 6px 0 rgba(0, 0, 0, 0.05);
	padding: 2.5rem 1.5rem;
}

/* Pill buttons (theme.json also sets this globally, this is a fallback) */
.wp-block-button__link {
	border-radius: 999px !important;
}

/* Underlined page title, matching the Figma. Only the H1 gets this -
   subheadings like "Our Story" stay plain unless you underline them yourself. */
.gh-card h1 {
	text-align: center;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.gh-card p,
.gh-card ul,
.gh-card ol {
	text-align: center;
	text-decoration: none;
}

.gh-card p a,
.gh-card span a {
	text-decoration: none;
}

/* Force card text to the correct color, overriding any leftover white saved in page content */
.gh-card,
.gh-card p,
.gh-card h1,
.gh-card h2,
.gh-card h3,
.gh-card li,
.gh-card span {
	color: var(--wp--preset--color--near-black) !important;
}

.gh-card .wp-block-button__link {
	color: #ffffff !important;
}

/* The dark-green hill on the HOME PAGE ONLY, rising up from behind the footer */
.gh-home-footer-hill {
	position: relative;
	padding-top: 1.5rem;
	padding-bottom: 1rem;
	margin-top: -40px;
	border-top-left-radius: 50% 40px;
	border-top-right-radius: 50% 40px;
}

@media (min-width: 700px) {
	.gh-home-footer-hill {
		padding-top: 3rem;
		padding-bottom: 2rem;
		margin-top: -80px;
		border-top-left-radius: 50% 80px;
		border-top-right-radius: 50% 80px;
	}
}
/* Nav overlay styled to match the mockup: centered logo/title, big underlined links */
.gh-main-nav .wp-block-navigation__responsive-container.is-menu-open {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start;
	width: 100%;
	padding-top: 3rem;
	text-align: center;
}

.gh-main-nav .wp-block-navigation__responsive-container-content {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	gap: 1.75rem;
}

.gh-main-nav .wp-block-navigation__responsive-container-content .wp-block-site-logo,
.gh-main-nav .wp-block-navigation__responsive-container-content .wp-block-site-title {
	margin: 0;
}

.gh-main-nav .wp-block-navigation-item .wp-block-navigation-item__content {
	font-size: 1.75rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 6px;
}

.gh-main-nav .wp-block-navigation-item {
	width: 100%;
	justify-content: center;
	text-align: center;
}

.gh-main-nav .wp-block-navigation__container {
	align-items: center;
	width: 100%;
}

.gh-social-icons .wp-block-social-links {
	background: transparent;
}

/* Keep the header row from hugging the very edges on ultra-wide screens */
.gh-nav-row {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}
