/*
Theme Name: Verity Health
Theme URI: https://example.com/verity-health
Author: Zohaib
Author URI: https://example.com
Description: Pharmacy Care landing page theme built from open.html using Tailwind CSS. Sections: About, Core Pillars, Pharmacy Care Services, Contact.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verity-health
Tags: one-column, custom-menu, featured-images, threaded-comments
*/

/* === Custom Theme Styles (compiled Tailwind utilities are loaded locally) === */

html {
    scroll-behavior: smooth;
}

.verity-custom-logo {
    display: block;
    max-height: 3rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.verity-custom-logo.footer {
    max-height: 2.75rem;
    filter: brightness(0) invert(1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hover-lift {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 58, 112, 0.12), 0 10px 10px -5px rgba(72, 162, 50, 0.08);
}

.btn-glow {
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Scroll reveal states */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Custom mobile drawer transition */
#mobile-menu {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Core WordPress alignment helpers */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* Navigation underline (pure CSS, variant of the Tailwind after: utilities) */
.nav-underline {
	position: relative;
	padding-bottom: 0.25rem;
}

.nav-underline::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--verity-green, #48A232);
	border-radius: 2px;
	transition: width 0.3s ease;
}

.nav-underline:hover::after {
	width: 100%;
}

/* === WordPress menu (matches the static section links) === */
.verity-menu,
.verity-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.verity-menu li {
	list-style: none;
	position: relative;
}

/* -- Desktop: top-level links styled exactly like static links -- */
.verity-menu.desktop > li > a {
	position: relative;
	padding-bottom: 0.25rem;
	color: #475569;
	transition: color 0.2s ease;
}

/* Animated underline (same as .nav-underline) */
.verity-menu.desktop > li > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--verity-green, #48A232);
	border-radius: 2px;
	transition: width 0.3s ease;
}

.verity-menu.desktop > li > a:hover {
	color: var(--verity-blue, #003A70);
}

.verity-menu.desktop > li > a:hover::after {
	width: 100%;
}

/* Dropdown indicator for items with children */
.verity-menu.desktop > .menu-item-has-children > a::before {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	margin-right: 0.15rem;
	margin-left: 0.4rem;
	vertical-align: middle;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #64748b;
}

/* Desktop sub-menu dropdown */
.verity-menu.desktop .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	padding: 0.5rem 0;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 0.75rem;
	box-shadow: 0 10px 25px -5px rgba(0, 58, 112, 0.15);
	z-index: 40;
}

.verity-menu.desktop .menu-item-has-children:hover > .sub-menu,
.verity-menu.desktop .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.verity-menu.desktop .sub-menu .menu-item-has-children > .sub-menu {
	top: 0;
	left: 100%;
	border-left: 1px solid #e2e8f0;
}

.verity-menu.desktop .sub-menu a {
	display: block;
	padding: 0.55rem 1.1rem;
	font-size: 0.875rem;
	color: #475569;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.verity-menu.desktop .sub-menu a:hover {
	color: var(--verity-blue, #003A70);
	background-color: #f8fafc;
}

/* -- Mobile drawer: links styled like the static mobile links -- */
.verity-menu.mobile > li > a {
	display: block;
	font-size: 1.125rem;
	font-weight: 500;
	color: #334155;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f1f5f9;
	transition: color 0.2s ease;
}

.verity-menu.mobile > li > a:hover {
	color: var(--verity-blue, #003A70);
}

.verity-menu.mobile .sub-menu {
	display: block;
	position: static;
	margin-left: 1rem;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.verity-menu.mobile .sub-menu a {
	display: block;
	font-size: 1rem;
	padding: 0.5rem 0;
	color: #334155;
	border-bottom: 1px solid #f1f5f9;
	transition: color 0.2s ease;
}

.verity-menu.mobile .sub-menu a:hover {
	color: var(--verity-blue, #003A70);
}
