/*!
Theme Name: GrowHall Theme
Theme URI: https://growhall.com
Author: GrowHall
Author URI: https://growhall.com
Description: Custom classic theme for GrowHall. Header and footer implemented from the Growhall x Toddle Figma design.
Version: 1.0.0
Tested up to: 6.9
Requires at least: 6.9
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: growhall-theme
*/
@font-face {
  font-family: 'avenir_next_worldextrabold';
  src: url('assets/fonts/avenir-next-world-extrabold/AvenirNextWorld-ExtraBold.woff2') format('woff2'),
       url('assets/fonts/avenir-next-world-extrabold/AvenirNextWorld-ExtraBold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'avenir_next_worldbold';
  src: url('assets/fonts/avenir-next-world-bold/avenirnextworld-bold-webfont.woff2') format('woff2'),
       url('assets/fonts/avenir-next-world-bold/avenirnextworld-bold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

@font-face {
  font-family: 'avenir_next_worlddemi';
  src: url('assets/fonts/avenir-next-world-demibold/avenirnextworld-demi-webfont.woff2') format('woff2'),
       url('assets/fonts/avenir-next-world-demibold/avenirnextworld-demi-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}
@font-face {
  font-family: 'avenir_next_worldmedium';
  src: url('assets/fonts/avenir-next-world-medium/avenirnextworld-medium-webfont.woff2') format('woff2'),
       url('assets/fonts/avenir-next-world-medium/avenirnextworld-medium-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'avenir_next_worldregular';
  src: url('assets/fonts/avenir-next-world-regular/avenirnextworld-regular-webfont.woff2') format('woff2'),
       url('assets/fonts/avenir-next-world-regular/avenirnextworld-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}
@font-face {
  font-family: 'schibsted_grotesk_demi';
  src: url('assets/fonts/schibsted-grotesk-demi/SchibstedGrotesk-Demi.woff2') format('woff2'),
       url('assets/fonts/schibsted-grotesk-demi/SchibstedGrotesk-Demi.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'schibsted_grotesk_medium';
  src: url('assets/fonts/schibsted-grotesk-medium/SchibstedGrotesk-Medium.woff2') format('woff2'),
       url('assets/fonts/schibsted-grotesk-medium/SchibstedGrotesk-Medium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'schibsted_grotesk_regular';
  src: url('assets/fonts/schibsted-grotesk-regular/SchibstedGrotesk-Regular.woff2') format('woff2'),
       url('assets/fonts/schibsted-grotesk-regular/SchibstedGrotesk-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'schibsted_grotesk_bold';
  src: url('assets/fonts/schibsted-grotesk-bold/SchibstedGrotesk-Bold.woff2') format('woff2'),
       url('assets/fonts/schibsted-grotesk-bold/SchibstedGrotesk-Bold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
/* ---------- Design tokens (from Figma) ---------- */
:root {
	--gh-accent: #faf2eb;          /* header background */
	--gh-text-primary: #333333;
	--gh-text-secondary: #707070;
	--gh-green: #00644d;           /* primary button / success-hover */
	--gh-green-dark: #00412f;      /* footer background (teal/100) */
	--gh-white: #ffffff;
	--gh-radius: 6px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'avenir_next_worldregular', 'Verdana';
	font-size: 16px;
	line-height: 1.6;
	color: var(--gh-text-primary);
	/* Match Figma's text rendering — without this, macOS browsers render
	   every weight one notch heavier (subpixel antialiasing) than the design. */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* Clip the horizontal bleed of the full-width (100vw) sections without
	   creating a scroll container, so the sticky header doesn't shift. */
	overflow-x: clip;
}

img,
svg {
	max-width: 100%;
}

a {
	color: var(--gh-green);
	text-decoration: none;
}

.site-content {
	/* 1120px of content + a 24px gutter each side (box-sizing: border-box is
	   global), so content stays 1120 on wide screens but never touches the
	   viewport edge on narrower-than-1120 widths. */
	max-width: 1168px;
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ---------- Header ---------- */
.gh-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--gh-accent);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
}

/* Pages that use the white "Page bordered" header variant (subject detail
   pages + the Pricing template) get the `gh-light-header` body class from the
   growhall_body_classes() filter. One class, one rule. */
body.gh-light-header .gh-header {
	background: var(--gh-white);
}

.gh-header__logo {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.gh-header__logo .gh-logomark {
	width: 24px;
	height: 24px;
	display: block;
}

.gh-header__logo .gh-logotext {
	width: 78px;
	height: auto;
	aspect-ratio: 78 / 13.5652;
	display: block;
}

.gh-nav-wrap {
	flex-shrink: 0;
}

.gh-nav {
	display: flex;
	align-items: center;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gh-nav > li {
	position: relative;
}

.gh-nav a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 0 12px;
	font-family: 'avenir_next_worlddemi', 'Verdana';
	font-weight: normal;
	font-size: 14px;
	line-height: 20px;
	color: var(--gh-text-secondary);
	white-space: nowrap;
}

.gh-nav a:hover,
.gh-nav .current-menu-item > a,
.gh-nav .current-menu-ancestor > a {
	color: var(--gh-text-primary);
}

/* Dropdown chevron on menu items that have children. */
.gh-nav .menu-item-has-children > a::after {
	content: "";
	width: 12px;
	height: 12px;
	background: url("assets/images/chevron.svg") no-repeat center / contain;
	transition: transform 0.15s ease;
}

.gh-nav > li:hover > a::after,
.gh-nav > li:focus-within > a::after {
	transform: rotate(180deg);
}

/* Submenu (dropdown) */
.gh-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100;
	min-width: 200px;
	margin: 0;
	padding: 8px;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: var(--gh-white);
	border-radius: var(--gh-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.gh-nav > li:hover > .sub-menu,
.gh-nav > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.gh-nav .sub-menu a {
	padding: 6px 8px;
	border-radius: 4px;
	white-space: nowrap;
}

.gh-nav .sub-menu a:hover {
	background: #faf1fe;
	color: var(--gh-text-primary);
}

.gh-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.gh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: var(--gh-radius);
	font-family: 'avenir_next_worlddemi', 'Verdana';
	font-weight: normal;
	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
}
.gh-btn.header-demo-btn{
	font-size: 16px;
    line-height: 24px;
}
.gh-btn--text {
	color: var(--gh-text-secondary);
}

.gh-btn--text:hover {
	color: var(--gh-text-primary);
}

.gh-btn--primary {
	background: var(--gh-green);
	color: var(--gh-white);
}

.gh-btn--primary:hover {
	background: var(--gh-green-dark);
	color: var(--gh-white);
}

/* ---------- Footer ---------- */
.gh-footer {
	background: var(--gh-green-dark);
	color: var(--gh-white);
	padding: 280px 160px 120px;
}

.gh-footer__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	max-width: 1120px;
	margin: 0 auto;
	width: 100%;
}

.gh-footer__columns {
	display: flex;
	gap: 32px;
}

.gh-footer__col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 256px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gh-footer__col a {
	color: var(--gh-white);
	font-family: 'avenir_next_worlddemi', 'Verdana';
	font-weight: normal;
	font-size: 14px;
	line-height: 20px;
}

.gh-footer__col a:hover {
	text-decoration: underline;
}

.gh-footer__social {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.gh-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
}

.gh-footer__social img {
	height: 20px;
	width: auto;
	display: block;
}

/* ---------- Responsive ---------- */
/* Laptop / small desktop (1024–1439px): tighter 80px sides + reduced vertical. */
@media (min-width: 1024px) and (max-width: 1439px) {
	.gh-footer {
		padding: 160px 40px 96px;
	}
	.site-content{
		padding: 0 40px;
	}
}

@media (max-width: 1023px) {
	.gh-footer {
		padding: 96px 24px 64px;
	}

	.gh-footer__inner {
		flex-direction: column;
		gap: 48px;
	}
	.site-content{
		padding: 0px 40px;
	}
}

/* Primary nav collapses to the hamburger menu at ≤991px (see mobile-menu.css). */
@media (max-width: 991px) {
	.gh-nav-wrap {
		display: none;
	}
	.site-content{
		padding: 0px 40px;
	}
}

@media (max-width: 768px) {

	/* Footer mobile — Figma node 3247:13087: one uniform link list (8px between
	   every link), 24px to the social row, 120px/16px/48px padding. */
	.gh-footer {
		padding: 120px 16px 48px;
	}

	.gh-footer__inner {
		gap: 24px;
	}

	.gh-footer__columns {
		flex-direction: column;
		gap: 8px;
	}

	.gh-footer__col {
		width: 100%;
	}
}
@media (max-width: 767px) {
	.site-content {
		padding: 0px 16px;
	}
}
