/*
Theme Name: PagarNote
Theme URI: https://example.com/
Author: Dharmik Patel
Author URI: https://example.com/
Description: PagarNote is a modern, clean, and user-friendly WordPress theme designed for payroll, HR management, and SaaS-based business solutions. With a professional layout and intuitive design, it helps startups and enterprises showcase their payroll services and HR tools effectively.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pagar-note-theme
*/

/* Primary */
:root {
	--color-primary: #4338CA;
	--color-secondary: #121212;
	--color-text: #121212;
	--color-white: #FFFFFF;
	--color-black: #000000;
	--color-gray: #888888;
	--color-bg: #f9f9f9;
	--color-accent: #F1F3F9;
	--color-hover: #4338CA;
}

:root {
	--animate-duration: 1s;
	--animate-delay: 1s;
	--animate-repeat: 1;
}

html {
	overflow-x: hidden;
	background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.15),
			/* blue glow */
			transparent 17%), #ffffff;
	border-radius: 20px;
	box-shadow: 0px 20px 60px rgba(79, 70, 229, 0.15);
	margin-top: 0px !important;
}

body {
	overflow-x: hidden;
	font-family: 'Inter', sans-serif;
	/* 	  padding-top: 32px !important; */
	margin: 0;
	padding: 0;
}

h1 {
	font-family: 'Inter', sans-serif;
}

/* Base container */
.container {
	/*   max-width: 1200px; */
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

/* Logo */
.site-logo a {
	text-decoration: unset;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* .site-logo img { max-height: 50px; } */
.logo-text {
	font-size: 24px;
	font-weight: 600;
	padding-top:20px;
}

.logo-text .highlight {
	color: var(--color-primary);
	font-family: "Libre Baskerville", serif;
	font-weight: 700;
	font-style: normal;
}

.site-logo img {
	width: 35%;
	height: auto;
}

.site-logo {
	width: 15%;
}

/* Top Header */
.pay-top-header {
	padding: 6px 20px;
	margin: 0 50px;
}

.top-header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	width: 100%;
	max-width: 1250px;
	margin: 0 auto;
}

.pay-top-header .col {}

.pay-top-right,
.pay-top-left {
	z-index: 9;
	position: relative;
}

.pay-top-right a,
.pay-top-left a {
	text-decoration: none;
	color: var(--color-secondary);
	font-weight: 500;
	font-size: 14px;
}

.pay-top-right a:hover,
.pay-top-left a:hover {
	color: var(--color-primary);
}

.pay-top-left .social-media {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
	.pay-top-header {
		grid-template-columns: 1fr;
		margin: 0 0px;
	}
}

/* Header */
.site-header {
	background-color: var(--color-white);
	padding: 20px 20px;
	position: relative;
	/* normal */
	top: 0;
	/* sticks at top */
	z-index: 1000;
	/* above all content */
	z-index: 10;
	margin: 10px 50px 0 50px;
	border-radius: 12px;
	transition: box-shadow 0.7s ease, padding 0.3s ease;
}

/* Optional: Add shadow after scroll */
.site-header.sticky {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	padding: 12px 20px;
	/* shrink effect on scroll */
	position: fixed;
	top: 10px;
	left: 0;
	right: 0;
	z-index: 1000;
	margin: 0px 50px 0 50px;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	width: 100%;
	max-width: 1250px;
	margin: 0 auto;
}

/* Desktop Navigation */
.site-nav .main-menu {
	list-style: none;
	display: flex;
	gap: 35px;
	margin: 0;
}

.site-nav .main-menu li {
	position: relative;
}

.site-nav .main-menu li a {
	text-decoration: none;
	color: var(--color-secondary);
	font-weight: 500;
	font-size: 18px;
}

.site-nav li.current-menu-item a {
	color: var(--color-primary);
}

/* Desktop Submenu */
.main-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--color-white);
	list-style: none;
	padding: 10px 0;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	min-width: 200px;
	z-index: 99;
}

/* Add caret to parent items */
.main-menu .menu-item-has-children>a::after,
.mobile-menu-list .menu-item-has-children>a::after {
	content: " ▼";
	font-size: 12px;
	margin-left: 6px;
	color: inherit;
	transition: transform 0.2s ease;
}

/* Rotate arrow when submenu is open (mobile only) */
.mobile-menu .menu-item-has-children>a.active::after {
	transform: rotate(180deg);
}

.main-menu li:hover>.sub-menu {
	display: block;
}

.main-menu .sub-menu li {
	padding: 8px 20px;
}

.main-menu .sub-menu li a {
	font-size: 16px;
	display: block;
}

/* Buttons */
.header-buttons,
.mobile-buttons {
	display: flex;
	gap: 10px;
}

.btn {
	padding: 8px 16px;
	font-size: 14px;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.btn-black {
	background-color: var(--color-secondary);
	color: var(--color-white);
}

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

.btn:hover {
	opacity: 0.9;
}

/* Mobile Menu */
.mobile-menu {
	position: fixed;
	inset: 0;
	/* top:0; right:0; bottom:0; left:0 */
	display: none;
	/* hidden by default */
	background: rgba(0, 0, 0, 0.45);
	/* overlay dim */
	z-index: 9999;
	justify-content: flex-end;
	/* panel slides in from right */
	align-items: stretch;
	-webkit-tap-highlight-color: transparent;
}

.site-nav .main-menu li:hover>a {
	color: var(--color-primary);
}

/* Hide hamburger on desktop */
.mobile-toggle {
	display: none;
}

/* When open, show overlay */
.mobile-menu.open {
	display: flex;
}

/* sliding panel */
.mobile-menu-panel {
	width: 320px;
	/* adjust width */
	max-width: 100%;
	height: 100vh;
	background: var(--color-white);
	padding: 20px;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	/* off-screen */
	transition: transform 320ms ease-in-out;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* slide in when parent open */
.mobile-menu.open .mobile-menu-panel {
	transform: translateX(0);
}

/* Close button */
.mobile-close {
	background: transparent;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: var(--color-secondary);
	position: absolute;
	top: 60px;
	right: 35px;
}

/* menu list in panel */
.mobile-menu-list {
	list-style: none;
	padding: 70px 0 20px;
	/* leave space for close */
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mobile-menu-list li {
	display: block;
	position: relative;
	border-bottom: 0.1px solid var(--color-bg);
}

/* top-level links */
.mobile-menu-list>li>a {
	display: block;
	padding: 12px 6px;
	text-decoration: none;
	color: var(--color-secondary);
	font-size: 18px;
}

/* caret for parents */
.main-menu .menu-item-has-children>a::after,
.mobile-menu-list .menu-item-has-children>a::after {
	content: "";
	display: inline-block;
	width: 25px;
	height: 25px;
	margin-left: 6px;
	vertical-align: middle;
	transition: transform 0.2s ease;

	/* SVG chevron as background */
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M7 10L12 15L17 10' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

/* Rotate on mobile open */
.mobile-menu .menu-item-has-children>a.active::after {
	transform: rotate(180deg);
}

/* active parent when expanded */
.mobile-menu-list .menu-item-has-children>a.active::after {
	transform: rotate(180deg);
}

/* submenus in mobile panel - accordion style (pushes other items inside panel) */
.mobile-menu .sub-menu {
	display: none;
	list-style: none;
	padding-left: 16px;
	margin: 6px 0 14px;
	gap: 8px;
	flex-direction: column;
}

.mobile-menu .sub-menu.open {
	display: flex;
}

/* submenu link style */
.mobile-menu .sub-menu li a {
	padding: 8px 6px;
	font-size: 15px;
	color: var(--color-secondary);
}

/* lock body scroll when menu open */
body.mobile-menu-open {
	overflow: hidden;
}

/* Tablet Responsive (iPad, small laptops) */
@media (min-width: 769px) and (max-width: 1151px) {
	.site-header {
		margin: 0 30px;
		/* smaller margin than desktop */
		padding: 15px 15px;
		border-radius: 8px;
	}

	.site-logo {
		width: 20%;
		/* logo area wider */
	}

	.site-logo img {
		width: 40%;
		height: auto;
	}

	.logo-text .highlight {
		font-size: 18px;
	}

	.site-nav .main-menu {
		padding-inline-start: 0px;
		gap: 10px;
	}

	.site-nav .main-menu li a {
		font-size: 14px;
		/* smaller font */
	}

	.header-buttons .btn {
		padding: 6px 10px;
		font-size: 13px;
	}
}

/* small responsive fallback: make panel full width on very small screens */
@media (max-width: 400px) {
	.mobile-menu-panel {
		width: 100%;
	}
}

/* --- Desktop Submenu --- */
@media (min-width: 769px) {
	.main-menu .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		background: var(--color-white);
		list-style: none;
		padding: 10px 0;
		border-radius: 8px;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
		min-width: 200px;
		z-index: 99;
	}

	.main-menu li:hover>.sub-menu {
		display: block;
	}
}

@media (max-width: 768px) {
	.site-header {
		padding: 10px 10px !important;
		margin: 0 20px;
	}

	.site-logo img {
		width: 60px;
		height: 100%;
	}

	.logo-text {
		font-size: 18px;
		font-weight: 600;
	}

	.site-nav,
	.header-buttons {
		display: none;
	}

	.mobile-toggle {
		display: block;
		font-size: 28px;
		cursor: pointer;
		background: none;
		border: none;
		color: var(--color-secondary);
	}

	.mobile-menu .sub-menu {
		display: none;
		position: static;
		/* ✅ no absolute positioning */
		padding-left: 15px;
		margin-top: 8px;
		flex-direction: column;
		background: none;
		box-shadow: none;
	}

	.mobile-menu .sub-menu.open {
		display: flex;
		/* ✅ pushes content downward */
	}

	.mobile-menu .sub-menu li a {
		display: block;
		padding: 12px 6px;
		text-decoration: none;
		color: var(--color-secondary);
		font-size: 18px;
	}
}
@media (max-width: 768px) {
    .site-header {
        padding: 10px 10px !important;
        margin: 0 20px;
        top: 15px;
    }
}
@media (max-width: 768px) {
    .site-header {
        padding: 10px 10px !important;
        margin: 0 20px !important;
        top: 15px !important;
    }
}
@media (max-width: 768px) {
    .site-header {
        padding: 10px 10px !important;
        margin: 0 20px !important;
        top: 15px !important;
    }
}