/*
Theme Name:   Serepta
Theme URI:    https://serepta.org
Description:  Child theme of Hello Elementor for the Serepta Foundation website. Holds the self-hosted heading font, ACF field definitions (acf-json) and, from phase 4, the event/story/doctor display blocks and templates.
Author:       Serepta Foundation
Template:     hello-elementor
Version:      1.2.9
Requires at least: 6.5
Requires PHP: 8.0
License:      GPL-2.0-or-later
Text Domain:  serepta
*/

/* Visual styles live in Elementor (global variables, classes and default styles).
   This file only carries theme-level CSS that Elementor can't express. */

/* ---------------------------------------------------------------
   Header navigation (Header & Footer Builder "Navigation Menu" widget)
   Used in: Site Header template (Templates → Header & Footer Builder, ID 137).
   --------------------------------------------------------------- */

/* Active / hover pill: Figma radius 6 and medium weight; the widget has no radius control. */
.hfe-nav-menu .menu-item > a.hfe-menu-item { border-radius: 6px; }
/* !important: the widget's own typography rule is more specific than this file. */
.hfe-nav-menu .current-menu-item > a.hfe-menu-item { font-weight: 500 !important; }

/* Mobile/tablet dropdown: the widget's full-width script expects a V3 container and
   fails inside V4 flexboxes, so the open menu is anchored to the header bar here. */
@media (max-width: 1024px) {
	.elementor-widget-navigation-menu.hfe-nav-menu__breakpoint-tablet { position: static; }
	.hfe-nav-menu__toggle.hfe-active-menu + .hfe-nav-menu__layout-horizontal {
		left: 0 !important;
		right: 0;
		top: 100%;
		width: 100% !important;
		z-index: 9999;
		box-shadow: 0 4px 34px rgba(0, 0, 0, 0.06);
	}
	/* Responsive audit (1.2.7): the closed menu is only visibility:hidden in the widget, so its
	   links still took up width and made phone pages about 14px wider than the screen.
	   Hide it completely while closed; opening it (toggle gets .hfe-active-menu) is unchanged. */
	.hfe-nav-menu__toggle:not(.hfe-active-menu) + .hfe-nav-menu__layout-horizontal { display: none; }
}
