/* =========================================================================
 * Herrig — main theme stylesheet
 *
 * All custom CSS for the theme lives here (enqueued in functions.php as
 * "herrig-main"). style.css holds only the theme header metadata.
 *
 * Uses theme.json design tokens via CSS custom properties, e.g.
 *   var(--wp--preset--color--primary)   (#007170, brand teal)
 *   var(--wp--preset--color--base)      (#ffffff)
 *   var(--wp--preset--color--contrast)  (#1a1a1a)
 *
 * Sections:
 *   1. Site header (nav bar + brand band)
 * ====================================================================== */


/* -------------------------------------------------------------------------
 * 1. Site header — nav bar (white) + brand band (teal)
 *    Rendered by parts/header.php. The nav is a WordPress menu (wp_nav_menu);
 *    nested menu items render as dropdowns.
 * ---------------------------------------------------------------------- */
body{
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.site-header__navbar {
	padding: 25px 0; /* horizontal padding comes from Bootstrap .container-fluid */
	background: var(--wp--preset--color--base, #fff);
}

.site-header__donate {
	text-decoration: none;
	white-space: nowrap;
	font-weight:200;
}

.site-header__nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Navigation menu */
.site-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
}

.site-nav__menu li {
	position: relative;
}

.site-nav__menu a {
	display: block;
	padding: 0.25rem 0;
	color: var(--wp--preset--color--contrast, #1a1a1a);
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
}

.site-nav__menu a:hover,
.site-nav__menu a:focus {
	color: var(--wp--preset--color--primary, #007170);
}

.site-nav__menu .menu-item-has-children > a::after {
	content: "\25BE"; /* down caret */
	margin-left: 0.35rem;
	font-size: 0.8em;
}

/* Dropdowns (nested menu items) */
.site-nav__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100;
	min-width: 220px;
	background: var(--wp--preset--color--base, #fff);
	border-top: 3px solid var(--wp--preset--color--primary, #007170);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	display: none;
}

.site-nav__menu li:hover > .sub-menu,
.site-nav__menu li:focus-within > .sub-menu {
	display: block;
}

.site-nav__menu .sub-menu a {
	padding: 0.4rem 1.1rem;
	white-space: nowrap;
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Teal icon buttons — search toggle, search submit, and the cart placeholder.
   (.site-header__cart is temporary; replaced by the WooCommerce mini-cart later.) */
.site-header__icon-btn,
.site-header__cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 3px;
	color: var(--wp--preset--color--base, #fff);
	background: var(--wp--preset--color--primary, #007170);
	cursor: pointer;
}

.site-header__icon-btn:hover,
.site-header__icon-btn:focus,
.site-header__cart:hover,
.site-header__cart:focus {
	background: var(--wp--preset--color--primary-dark, #005553);
}

/* Brand band */
.site-header__brand {
	padding: 2.5rem 1.25rem 3rem;
  min-height: 93vh;
  text-align: center;
  background: url(../../images/herrig-homepage-header-backer.webp);
  background-size: cover;
	background-position: center;
  background-repeat: no-repeat;
	color: var(--wp--preset--color--base, #fff);
}

.site-header__brand .custom-logo {
	width: 260px;
	height: auto;
}

.site-header__tagline-pre {
	margin: 0.5rem 0 0;
	font-size: 1.5rem;
	font-weight: 400;
}

.site-header__tagline {
	margin: 0.25rem 0 0;
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1.05;
}

/* Slim brand band — interior/content pages (header-content.php). Starting point; restyle freely. */
.site-header__brand--slim {
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.site-header__brand--slim .custom-logo {
	width: 150px;
}

.site-header__brand--slim .site-header__tagline-pre {
	font-size: 1rem;
}

.site-header__brand--slim .site-header__tagline {
	font-size: 1.5rem;
}
