
/*
Theme Name:     AppStory Gridlove Child
Theme URI:      http://mekshq.com
Description:    Child theme for Gridlove theme — AppStory customisations
Author:         meks
Author URI:     http://mekshq.com
Template:       gridlove
Version:        0.1.0
*/
.gridlove-cover-area, .gridlove-cover {
	height: 600px;
}

.gridlove-logo {
	max-height: 60px;
}

.gridlove-header-sticky .gridlove-logo {
	max-height: 50px;
}

.page-template-fullwidth .gridlove-header-shadow.gridlove-site-header {
	margin-bottom: 0;
}

.single #content .gridlove-author p > a {
	color: #27e6cd;
}

.widget_text .footer-btn {
	border: 2px solid #fff;
	padding: 8px 30px;
	border-radius: 5px;
	display: inline-block;
	color: #fff;
	margin: 5px 0 5px;
	font-weight: 600;
}

.widget_text .footer-btn:hover {
	color: #111;
	background-color: #fff;
}

.widget_text h5 {
	color: #fff;
}

.footer-grid-wrap.fotinner2 img {
	margin-right: 10px;
}

.footer-grid-wrap.fotinner2 li {
	padding: 5px 0;
}

.company_cover p i {
	margin-right: 10px;
	font-size: 22px;
}

.company_cover p > a {
	text-decoration: none !important;
	border: unset;
}

.company_cover p {
	display: inline-block;
	margin-right: 20px;
	margin-bottom: 10px;
}

.company_cover p img {
	max-width: 30px;
}

.company_cover h3 {
	float: left;
}

.company_cover .entry-category {
	float: right;
}

.company_cover a.gridlove-cat {
	padding: 10px 16px;
	line-height: 20px;
	font-size: 15px;
}

.listing_comp_main {
	margin-top: 40px;
}

.listing_comp_main .box-inner-p-bigger.box-single {
	padding: 0;
}

.company_main {
	padding: 15px;
	margin-top: 20px;
	margin-bottom: 20px;
	border: 1px solid #7ddbfd;
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0px 5px 8px rgba(125, 219, 253, .4);
}

.key_services_cover.d-flex {
	display: flex;
	border: 1px solid #7ddbfd;
}

.service_provide {
	padding: 15px;
	border-left: 1px solid #7ddbfd;
}

.key_client {
	padding: 15px;
}

.details_main .details_col {
	display: inline-block;
	padding: 10px;
	text-align: center;
}

.details_main {
	border: 1px solid #7ddbfd;
	border-top: none;
}

.details_main .details_col h4 {
	margin-bottom: 15px;
}

.details_col.col-md-3 {
	border-left: 1px solid #7ddbfd;
	border-right: 1px solid #7ddbfd;
}

.key_services_cover h6 {
	margin-bottom: 10px;
}

.border_tp {
	border-top: 1px solid #7ddbfd;
	margin-top: 10px;
	padding-top: 20px;
}

.comp_logo {
	float: left;
	margin-right: 20px;
	max-width: 80px;
}

.top-picks-list ul {
	overflow: hidden;
	padding: 0;
	height: 100%;
}

.top-picks-list li {
	float: left;
	width: 25%;
	position: relative;
	padding: 0 15px 0 15px;
	margin: 0 0 30px;
	min-height: 123px;
	display: flex;
	justify-content: center;
	flex-direction: column;
	list-style-type: none;
}

.nominate-section {
	padding: 40px 30px 20px;
	width: 267px;
	background: #fff;
	margin-top: -60px;
	text-align: center;
	position: relative;
	margin-bottom: 40px;
	border-radius: 6px;
	box-shadow: 0 0 60px rgba(0, 0, 0, .09);
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	-ms-border-radius: 6px;
	-o-border-radius: 6px;
}

.nomin-badge-figure img {
	width: 100%;
}

.report-detail-cta {
	background: #548bb7;
	border-radius: 5px;
	box-shadow: 0 0 60px rgba(0, 0, 0, .09);
}

.cta-mail {
	width: 267px;
	background: #326598;
	padding: 20px 25px;
}

.cta-heading {
	width: 267px;
	background: #548bb7;
	padding: 30px 25px 15px;
}

.cta-heading, .cta-mail {
	/* border-radius: 5px; */
	color: #fff;
}

/*--- 2 Column Form Styles Start ---*/
.cwf-left {
	width: 47%;
	float: left;
	margin-right: 6%;
}

.cwf-right {
	width: 47%;
	float: left;
}

.clearfix:after {
	content: " ";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
	overflow: hidden;
	margin-bottom: 10px;
}

.clearfix {
	display: block;
}

/*--- 2 Column Form Styles End ---*/
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus {
	background: #fff;
}

.wpcf7-submit {
	float: right;
	background: #ca0002;
	color: #fff;
	text-transform: uppercase;
	border: none;
	padding: 8px 20px;
	cursor: pointer;
}

.wpcf7-submit:hover {
	background: #f00;
}

span.wpcf7-not-valid-tip {
	text-shadow: none;
	font-size: 12px;
	color: #fff;
	background: #f00;
	padding: 5px;
}

div.wpcf7-validation-errors {
	text-shadow: none;
	border: transparent;
	background: #f9cd00;
	padding: 5px;
	color: #9c6533;
	text-align: center;
	margin: 0;
	font-size: 12px;
}

div.wpcf7-mail-sent-ok {
	text-align: center;
	text-shadow: none;
	padding: 5px;
	font-size: 12px;
	background: #59a80f;
	border-color: #59a80f;
	color: #fff;
	margin: 0;
}

.gridlove-single-layout-4 .my_custom_layout .padding-left-right {
	padding-left: 60px;
	padding-right: 60px;
}

.gridlove-single-layout-4 .company_cover p {
	margin-right: 10px;
	margin-bottom: 10px;
	font-size: 17px;
}

.gridlove-single-layout-4 .company_cover p i {
	font-size: 15px;
}

.gridlove-single-layout-4 .company_cover p img {
	max-width: 20px;
}

.file-414 input.wpcf7-file {
	margin-top: 15px;
	font-size: 18px;
}

#wpcf7-f10010-p8570-o1 form .col-md-12 {
	margin-top: 15px;
}

#wpcf7-f10010-p8570-o1 form .col-md-12 label {
	line-height: 20px;
	display: inline;
	font-size: 14px;
}

body #wpcf7-f10010-p8570-o1 form .col-md-12 label textarea {
	height: 90px;
	min-height: 90px;
}

.ccdetail {
	text-align: center;
	background: #e52f48;
	color: #fff;
	display: block;
	height: auto;
	padding: 7px 11px 6px;
}

.ceo_q_air {
	font-size: 15px;
	color: #fff;
	background-color: #009cff;
	border-radius: 20%;
	display: block;
	float: left;
	line-height: 1em;
	margin: 5px 10px 0 0;
	padding: 10px 10px;
	text-align: center;
}

.signin-prompt {
	padding: 12px 10px 15px 20px;
	background-color: #ecf7ff;
	font-size: 14px;
	margin: 15px 0 30px 0;
	max-width: 100%;
}

.signin-prompt p {
	margin-bottom: 0;
}

.signin-prompt a {
	color: #fff;
	background-color: #fff;
	padding: 5px 10px;
	border-radius: 2px;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.full_width.gridlove-content.gridlove-single-layout-4 {
	max-width: 100%;
}

.full_width.gridlove-content.gridlove-single-layout-4 .entry-image > img {
	height: auto;
	width: 100%;
}

@media (min-width: 1200px) {
	.container {
		max-width: 1500px;
	}
}

/*========================================================================================
   MODERN ELITE DESIGN SYSTEM (SaaS Aesthetic & High Polish)
========================================================================================*/
:root {
	/* Colors - Dark Mode SaaS Palette */
	--elite-bg-dark: #0b0f19;
	--elite-bg-card: rgba(17, 24, 39, .75);
	--elite-bg-card-hover: rgba(30, 41, 59, .85);
	--elite-text-primary: #f8fafc;
	--elite-text-secondary: #94a3b8;
	--elite-accent-primary: #3b82f6;
	--elite-accent-secondary: #8b5cf6;
	--elite-accent-glow: rgba(59, 130, 246, .35);
	--elite-accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
	--elite-success: #10b981;
	--elite-gold: #f59e0b;
	/* Glassmorphism */
	--elite-glass-border: 1px solid rgba(255, 255, 255, .12);
	--elite-glass-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
	--elite-glass-blur: blur(16px);
	/* Typography */
	--elite-font-main: "Inter", system-ui, -apple-system, sans-serif;
}

/* Base Overrides for SaaS Mode (Adaptive Day / Night Contrast) */
body.saas-mode, body.gridlove-child-active {
	background-color: var(--bg, #fff) !important;
	color: var(--ink, #0f172a) !important;
	font-family: var(--elite-font-main) !important;
	line-height: 1.6;
}

html.dark body.saas-mode, body.dark.saas-mode, .dark body.saas-mode {
	background-color: var(--bg, #090a0f) !important;
	color: var(--ink, #f8fafc) !important;
}

/* Header Navbar Enhancements */
.gridlove-site-header {
	background: var(--bg, rgba(255, 255, 255, .92)) !important;
	backdrop-filter: blur(12px) !important;
	border-bottom: 1px solid var(--line, #e2e8f0) !important;
}

html.dark .gridlove-site-header, .dark .gridlove-site-header {
	background: rgba(11, 15, 25, .9) !important;
	border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
}

/* Glassmorphic Cards & Elevate Flow */
.saas-card, .aeo-review-wrapper, .company_main {
	background: var(--elite-bg-card) !important;
	backdrop-filter: var(--elite-glass-blur) !important;
	-webkit-backdrop-filter: var(--elite-glass-blur) !important;
	border: var(--elite-glass-border) !important;
	box-shadow: var(--elite-glass-shadow) !important;
	border-radius: 16px !important;
	padding: 28px !important;
	transition: all .3s cubic-bezier(.4, 0, .2, 1) !important;
}

.saas-card:hover, .company_main:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 20px 40px -15px var(--elite-accent-glow) !important;
	border-color: rgba(59, 130, 246, .3) !important;
}

/* Glowing Premium Buttons */
.saas-btn-premium, .aeo-btn-primary, .gridlove-cat {
	background: var(--elite-accent-gradient) !important;
	color: #fff !important;
	border: none !important;
	padding: 12px 26px !important;
	border-radius: 10px !important;
	font-weight: 600 !important;
	font-family: var(--elite-font-main) !important;
	cursor: pointer !important;
	transition: all .3s ease !important;
	box-shadow: 0 4px 14px var(--elite-accent-glow) !important;
	text-transform: none !important;
	letter-spacing: .3px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	text-decoration: none !important;
}

.saas-btn-premium:hover, .aeo-btn-primary:hover, .gridlove-cat:hover {
	box-shadow: 0 8px 25px var(--elite-accent-glow) !important;
	transform: translateY(-2px) scale(1.01) !important;
	color: #fff !important;
}

/* Clean & Modern Page Headers */
.saas-page-header {
	text-align: center;
	margin-bottom: 50px;
	padding-top: 30px;
}

.saas-page-header h1 {
	font-size: 2.75rem;
	font-weight: 800;
	color: var(--elite-text-primary);
	margin-bottom: 12px;
	letter-spacing: -.02em;
}

.saas-page-header p {
	font-size: 1.15rem;
	color: var(--elite-text-secondary);
	max-width: 640px;
	margin: 0 auto;
}

/* Badges & Pills */
.aeo-meta-tag, .entry-category a {
	background: rgba(59, 130, 246, .12) !important;
	color: #60a5fa !important;
	border: 1px solid rgba(59, 130, 246, .25) !important;
	border-radius: 9999px !important;
	padding: 6px 14px !important;
	font-size: .85rem !important;
	font-weight: 600 !important;
}

/* ==========================================================================
   Reusable Appstory Component Design System (Modal, Cards, Badges, Forms)
   ========================================================================== */

/* Voting Modal Overlay & Dialog */
.appstory-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 99999;
	overflow-y: auto;
	padding: 20px 10px;
}

.appstory-modal-content {
	background: #fff;
	max-width: 960px;
	margin: 30px auto;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .4);
	overflow: hidden;
	font-family: var(--elite-font-main, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	position: relative;
	border: 1px solid rgba(255, 255, 255, .2);
}

.appstory-modal-close-btn {
	position: absolute;
	top: 0;
	right: 0;
	background: var(--elite-accent, #2563eb);
	color: #fff;
	border: none;
	width: 50px;
	height: 50px;
	font-size: 22px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	border-bottom-left-radius: 12px;
	transition: opacity .2s ease;
}

.appstory-modal-close-btn:hover {
	opacity: .9;
}

/* Reusable Vote Package Cards */
.appstory-vote-card {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 25px 20px;
	text-align: left;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
	position: relative;
	transition: transform .2s ease, box-shadow .2s ease;
}

.appstory-vote-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.appstory-vote-card-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #eff6ff;
	color: var(--elite-accent, #2563eb);
	font-size: 11px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 12px;
	border: 1px solid rgba(37, 99, 235, .2);
}

/* In-Page Rating & Trigger Bar */
.appstory-vote-bar {
	background: rgba(15, 23, 42, .8);
	border: 1px solid rgba(59, 130, 246, .3);
	border-radius: 14px;
	padding: 20px 25px;
	margin: 30px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	scroll-margin-top: 100px;
}

/* Reusable Status Pills */
.appstory-status-pill {
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 700;
	display: inline-block;
}

.appstory-status-live {
	background: rgba(16, 185, 129, .15);
	color: #10b981;
	border: 1px solid rgba(16, 185, 129, .3);
}

.appstory-status-pending {
	background: rgba(245, 158, 11, .15);
	color: #f59e0b;
	border: 1px solid rgba(245, 158, 11, .3);
}

.appstory-status-rejected {
	background: rgba(239, 68, 68, .15);
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, .3);
}

/* Reusable Stepper Cards */
.appstory-stepper-card {
	background: rgba(15, 23, 42, .8);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 14px;
	padding: 25px;
}

/* Reusable Form Inputs */
.appstory-form-field {
	width: 100%;
	padding: 12px 16px;
	margin-bottom: 20px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 10px;
	background: rgba(15, 23, 42, .6);
	color: var(--elite-text-primary, #f8fafc);
	font-size: 15px;
	transition: border-color .2s ease;
}

.appstory-form-field:focus {
	outline: none;
	border-color: var(--elite-accent, #3b82f6);
}

/* Hide Public RankMath SEO Score Badge */
body:not(.logged-in) .rank-math-seo-score, body:not(.admin-bar) .rank-math-seo-score {
	display: none !important;
	visibility: hidden !important;
}

/* ==========================================================================
   AppStory Custom Header Navigation & Slide-Out Drawer (Child Theme Overrides)
   ========================================================================== */

/* Main Header Navigation List */
.gridlove-site-header .as-appstory-main-menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gridlove-site-header .as-appstory-main-menu > li {
	position: relative;
	display: inline-block;
}

.gridlove-site-header .as-appstory-main-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0 14px;
	height: 48px;
	line-height: 48px;
	font-size: 13.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--ink, #1e293b);
	transition: color .2s ease;
	text-decoration: none;
}

.gridlove-site-header .as-appstory-main-menu > li:hover > a, .gridlove-site-header .as-appstory-main-menu > li.active > a, .gridlove-site-header .as-appstory-main-menu > li.current-menu-item > a, .gridlove-site-header .as-appstory-main-menu > li.current-menu-ancestor > a {
	color: var(--brand, #ff4500) !important;
}

.gridlove-site-header .as-appstory-main-menu > li > a i.fa-angle-down {
	font-size: 12px;
	transition: transform .2s ease;
}

.gridlove-site-header .as-appstory-main-menu > li:hover > a i.fa-angle-down {
	transform: rotate(180deg);
}

/* Header Dropdown Menu */
.gridlove-site-header .as-appstory-main-menu .as-dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	width: 280px;
	background: var(--bg-panel, #fff);
	border: 1px solid var(--line, #e2e8f0);
	border-radius: 12px;
	box-shadow: 0 16px 36px rgba(0, 0, 0, .12);
	padding: 8px;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 99999;
}

.gridlove-site-header .as-appstory-main-menu > li:hover > .as-dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.gridlove-site-header .as-appstory-main-menu .as-dropdown-menu li {
	display: block;
	margin: 0 0 2px 0;
}

.gridlove-site-header .as-appstory-main-menu .as-dropdown-menu li > a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	height: auto;
	line-height: 1.3;
	border-radius: 8px;
	text-decoration: none;
	transition: background .15s ease;
}

.gridlove-site-header .as-appstory-main-menu .as-dropdown-menu li > a:hover {
	background: var(--bg-soft, #f8fafc);
}

.as-appstory-main-menu .as-sub-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--bg-soft, #f1f5f9);
	font-size: 15px;
	flex-shrink: 0;
}

.as-appstory-main-menu .as-sub-text {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.as-appstory-main-menu .as-sub-text strong {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink, #0f172a);
	text-transform: none;
	letter-spacing: 0;
}

.as-appstory-main-menu .as-sub-text small {
	font-size: 11px;
	color: var(--ink-soft, #64748b);
	text-transform: none;
	font-weight: 400;
	margin-top: 1px;
	letter-spacing: 0;
}

/* Submit App CTA in Header */
.gridlove-site-header .as-nav-cta-item {
	margin-left: 8px;
}

.gridlove-site-header .as-nav-cta-button {
	display: inline-flex !important;
	align-items: center;
	height: 38px !important;
	line-height: 38px !important;
	padding: 0 18px !important;
	background: linear-gradient(135deg, #ff4500 0%, #ff5722 100%) !important;
	color: #fff !important;
	font-size: 12.5px !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: .5px !important;
	border-radius: 100px !important;
	box-shadow: 0 4px 14px rgba(255, 69, 0, .3) !important;
	transition: transform .2s ease, box-shadow .2s ease !important;
}

.gridlove-site-header .as-nav-cta-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(255, 69, 0, .45) !important;
	color: #fff !important;
}

/* Slide-Out Drawer Styling */
.as-appstory-drawer-wrapper {
	background: var(--bg-panel, #fff) !important;
	color: var(--ink, #0f172a);
	box-shadow: -10px 0 40px rgba(0, 0, 0, .25);
	padding: 70px 24px 30px !important;
	border-left: 1px solid var(--line, #e2e8f0);
}

.as-appstory-drawer-wrapper .as-drawer-close {
	background: var(--bg-soft, #f8fafc) !important;
	color: var(--ink, #0f172a) !important;
	border-bottom: 1px solid var(--line, #e2e8f0);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: background .2s ease;
}

.as-appstory-drawer-wrapper .as-drawer-close:hover {
	background: var(--brand, #ff4500) !important;
	color: #fff !important;
}

.as-mobile-menu-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line, #e2e8f0);
}

.as-mobile-menu-brand {
	font-size: 22px;
	font-weight: 900;
	color: var(--ink, #0f172a);
	text-decoration: none;
	letter-spacing: -.5px;
	font-family: var(--font-display, "Syne", sans-serif);
}

.as-mobile-menu-brand span {
	color: var(--brand, #ff4500);
}

.as-mobile-menu-tagline {
	font-size: 12px;
	color: var(--ink-soft, #64748b);
	margin: 4px 0 0;
}

/* Drawer Menu List */
.as-appstory-mobile-nav {
	list-style: none;
	padding: 0;
	margin: 0 0 24px 0;
}

.as-appstory-mobile-nav > li {
	margin-bottom: 6px;
}

.as-appstory-mobile-nav > li > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink, #0f172a);
	text-decoration: none;
	background: transparent;
	transition: background .15s ease, color .15s ease;
}

.as-appstory-mobile-nav > li > a:hover, .as-appstory-mobile-nav > li.current-menu-item > a {
	background: var(--bg-soft, #f8fafc);
	color: var(--brand, #ff4500);
}

.as-appstory-mobile-nav .as-m-icon {
	font-size: 16px;
	width: 24px;
	text-align: center;
}

.as-appstory-mobile-nav .sub-menu {
	list-style: none;
	padding: 4px 0 6px 34px;
	margin: 0;
}

.as-appstory-mobile-nav .sub-menu li a {
	display: block;
	padding: 6px 10px;
	font-size: 13px;
	color: var(--ink-soft, #475569);
	text-decoration: none;
	border-radius: 6px;
	transition: color .15s ease;
}

.as-appstory-mobile-nav .sub-menu li a:hover {
	color: var(--brand, #ff4500);
	background: var(--bg-soft, #f8fafc);
}

.as-mobile-drawer-cta {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--line, #e2e8f0);
}

.as-drawer-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 18px;
	background: linear-gradient(135deg, #ff4500 0%, #ff5722 100%);
	color: #fff !important;
	font-size: 13.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .5px;
	border-radius: 100px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(255, 69, 0, .35);
}

/* Dark mode adjustments for drawer and menu */
.dark .gridlove-site-header .as-appstory-main-menu .as-dropdown-menu {
	background: var(--bg-panel, #12151e);
	border-color: var(--line, #2d3748);
	box-shadow: 0 16px 36px rgba(0, 0, 0, .5);
}

.dark .as-appstory-drawer-wrapper {
	background: var(--bg-panel, #12151e) !important;
	border-left-color: var(--line, #2d3748);
}

.dark .as-appstory-drawer-wrapper .as-drawer-close {
	background: var(--bg-soft, #1a1f2c) !important;
	border-bottom-color: var(--line, #2d3748);
	color: #fff !important;
}

.dark .as-mobile-menu-header, .dark .as-mobile-drawer-cta {
	border-color: var(--line, #2d3748);
}

/* ==========================================================================
   Header Mega Menu — Accessibility, Polish & Mobile Fixes (2026-10-11)
   ========================================================================== */

/* ── 1. Keyboard access ──────────────────────────────────────────────────
   The dropdown was revealed on :hover only, so keyboard and touch users
   could never open it (WCAG 2.1 SC 2.1.1 — content reachable by hover only).
   :focus-within opens it as soon as a link inside receives focus. */
.gridlove-site-header .as-appstory-main-menu > li:focus-within > .as-dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Rotate the chevron on keyboard focus too, not just hover. */
.gridlove-site-header .as-appstory-main-menu > li:focus-within > a i.fa-angle-down {
	transform: rotate(180deg);
}

/* Visible focus ring on every menu target. */
.gridlove-site-header .as-appstory-main-menu > li > a:focus-visible, .gridlove-site-header .as-appstory-main-menu .as-dropdown-menu li > a:focus-visible, .as-appstory-mobile-nav a:focus-visible, .as-appstory-mobile-nav .gridlove-nav-widget-acordion:focus-visible {
	outline: 2px solid var(--brand, #ff4500);
	outline-offset: 2px;
	border-radius: 8px;
}

/* ── 2. Dropdown polish ──────────────────────────────────────────────── */

/* Caret, so the panel reads as attached to the item that opened it. */
.gridlove-site-header .as-appstory-main-menu .as-dropdown-menu::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 24px;
	width: 12px;
	height: 12px;
	background: var(--bg-panel, #fff);
	border-left: 1px solid var(--line, #e2e8f0);
	border-top: 1px solid var(--line, #e2e8f0);
	transform: rotate(45deg);
	pointer-events: none;
}

.dark .gridlove-site-header .as-appstory-main-menu .as-dropdown-menu::before {
	background: var(--bg-panel, #12151e);
	border-color: var(--line, #2d3748);
}

/* Icon tile lifts on hover, matching the header CTA's language. */
.as-appstory-main-menu .as-sub-icon {
	transition: background .15s ease, transform .15s ease;
}

.gridlove-site-header .as-appstory-main-menu .as-dropdown-menu li > a:hover .as-sub-icon, .gridlove-site-header .as-appstory-main-menu .as-dropdown-menu li > a:focus-visible .as-sub-icon {
	background: var(--brand-bg-soft, #fff3ee);
	transform: scale(1.06);
}

/* ── 3. Mobile drawer ────────────────────────────────────────────────── */

/* gridlove injects .gridlove-nav-widget-acordion as position:absolute.
   Our <li> had no position, so every toggle in the drawer resolved against
   the same ancestor and stacked on one another. */
.as-appstory-mobile-nav > li {
	position: relative;
}

/* Give the accordion toggle a real 44px tap target. */
.as-appstory-mobile-nav .gridlove-nav-widget-acordion {
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	border-radius: 8px;
	color: var(--ink-soft, #475569);
	transition: background .15s ease, color .15s ease;
}

.as-appstory-mobile-nav .gridlove-nav-widget-acordion:hover {
	background: var(--bg-soft, #f8fafc);
	color: var(--brand, #ff4500);
}

/* Keep the parent label clear of its toggle. */
.as-appstory-mobile-nav > li.menu-item-has-children > a {
	padding-right: 54px;
}

/* ≥40px tap targets on sub-menu rows. */
.as-appstory-mobile-nav .sub-menu li a {
	min-height: 40px;
	display: flex;
	align-items: center;
}

/* The drawer must scroll when the menu is taller than the viewport. */
.as-appstory-drawer-wrapper .gridlove-sidebar-action-inside {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	max-height: calc(100vh - 70px);
	padding-bottom: 24px;
}

/* Honour reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
	.gridlove-site-header .as-appstory-main-menu .as-dropdown-menu, .as-appstory-main-menu .as-sub-icon, .gridlove-site-header .as-appstory-main-menu > li > a i.fa-angle-down {
		transition: none !important;
	}
}

/* ==========================================================================
   Bridge CSS — WP-driven mega panel (AppStory_Mega_Menu_Walker → .as-megamenu-*)
   The panel design itself lives in apstyle.css. These rules cover the cases it
   does not: keyboard access, panels without a promo card, overflow, and dark mode.
   ========================================================================== */

/* ── Keyboard access ─────────────────────────────────────────────────────
   apstyle.css reveals the panel on :hover only. :focus-within makes it
   reachable by Tab (WCAG 2.1 SC 2.1.1). */
.as-megamenu-nav > li:focus-within .as-megamenu-panel {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.as-megamenu-nav > li:focus-within .as-arrow {
	transform: rotate(180deg);
}

.as-megamenu-nav .nav-item-link:focus-visible, .as-megamenu-nav .as-megamenu-item:focus-visible, .as-megamenu-nav .as-megamenu-cta-btn:focus-visible {
	outline: 2px solid var(--brand, #ff4500);
	outline-offset: 3px;
	border-radius: 10px;
}

/* ── Panels with no promo card ───────────────────────────────────────────
   .as-megamenu-inner is a 340px / 1fr grid. With no .as-megamenu-col-right
   the second track would sit empty, leaving a dead gap on the right. */
.as-megamenu-inner:not(:has(.as-megamenu-col-right)) {
	grid-template-columns: 1fr;
}

/* ── Overflow guard ──────────────────────────────────────────────────────
   The panel is centred on its trigger, so the last items in the bar push it
   past the right edge. Anchor the final two to the right instead. */
.as-megamenu-nav > li:nth-last-child(-n+2) .as-megamenu-panel {
	left: auto;
	right: 0;
	transform: translateY(10px);
}

.as-megamenu-nav > li:nth-last-child(-n+2):hover .as-megamenu-panel, .as-megamenu-nav > li:nth-last-child(-n+2):focus-within .as-megamenu-panel {
	transform: translateY(0);
}

/* Never wider than the viewport. */
.as-megamenu-panel {
	max-width: calc(100vw - 32px);
}

/* ── CTA item ────────────────────────────────────────────────────────────
   The hardcoded fallback styled "Submit App" via .as-nav-cta-item +
   .as-nav-cta-button. A WP menu only carries the class you give the item,
   so add `as-nav-cta-item` to its CSS Classes field in Appearance → Menus
   and the anchor picks up the pill styling here. */
.as-megamenu-nav > li.as-nav-cta-item > .nav-item-link, .as-megamenu-nav > li.as-nav-cta-item > a {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 20px;
	margin-left: 8px;
	background: linear-gradient(135deg, #ff4500 0%, #ff5722 100%);
	color: #fff !important;
	font-size: 12.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .5px;
	border-radius: 100px;
	box-shadow: 0 4px 14px rgba(255, 69, 0, .3);
	transition: transform .2s ease, box-shadow .2s ease;
}

/* The base rule draws a hover underline at bottom:18px — wrong for a pill. */
.as-megamenu-nav > li.as-nav-cta-item > .nav-item-link::after, .as-megamenu-nav > li.as-nav-cta-item > .nav-item-link:hover::after {
	display: none;
}

.as-megamenu-nav > li.as-nav-cta-item > .nav-item-link:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(255, 69, 0, .45);
	color: #fff !important;
}

/* ── Dark mode ───────────────────────────────────────────────────────────
   The panel ships hardcoded light values (#fdfbf7 panel, #ffffff promo card,
   #0f172a headings) so it would stay a bright box on a dark page. */
.dark .as-megamenu-panel {
	background: #12151e;
	border-color: rgba(255, 255, 255, .1);
}

.dark .as-megamenu-col-right {
	background: #181d2a;
	border-color: rgba(255, 255, 255, .1);
}

.dark .as-menu-heading {
	color: #f8fafc;
}

.dark .as-menu-sub {
	color: #94a3b8;
}

.dark .as-megamenu-item:hover, .dark .as-megamenu-item.active {
	background: rgba(255, 255, 255, .06);
}

/* ── Below the desktop breakpoint ────────────────────────────────────────
   The 860px panel cannot fit, so stack it to one column and pin it left.
   (The mobile drawer in mobile-menu.php is the primary nav at this size.) */
@media (max-width: 1023px) {
	.as-megamenu-nav > li .as-megamenu-panel {
		left: 0;
		right: auto;
		width: min(92vw, 860px);
		transform: translateY(10px);
	}
	
	.as-megamenu-nav > li:hover .as-megamenu-panel, .as-megamenu-nav > li:focus-within .as-megamenu-panel {
		transform: translateY(0);
	}
	
	.as-megamenu-inner {
		grid-template-columns: 1fr;
	}
}
