/*
Theme Name: Nora Tools Theme
Theme URI: https://noratools.com/
Author: Bindu Kamat
Author URI: https://noratools.com/
Description: Lightweight, ultra-fast, premium navy/blue gradient theme optimized for tools platforms.
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: nora-tools-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
	--font-primary: 'Plus Jakarta Sans', sans-serif;
	--font-heading: 'Outfit', sans-serif;
	--color-navy: #0f172a;
	--color-blue-dark: #1e3a8a;
	--color-blue: #2563eb;
	--color-blue-light: #3b82f6;
	--color-blue-pale: #eff6ff;
	--color-gray-dark: #334155;
	--color-gray-medium: #64748b;
	--color-gray-light: #e2e8f0;
	--color-gray-bg: #f8fafc;
	--color-emerald: #10b981;
	--color-emerald-pale: #ecfdf5;
	--color-rose: #f43f5e;
	--color-rose-pale: #fff1f2;
	--border-radius-sm: 8px;
	--border-radius-md: 14px;
	--border-radius-lg: 20px;
	--transition-speed: 0.3s;
	--box-shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
	--box-shadow-hover: 0 12px 30px -4px rgba(37, 99, 235, 0.12);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-primary);
	background-color: #fbfcfe;
	color: var(--color-gray-dark);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

a {
	color: var(--color-blue);
	text-decoration: none;
	transition: all var(--transition-speed) ease;
}

a:hover {
	color: var(--color-blue-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-navy);
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Premium Top Accent Bar */
.top-accent-bar {
	height: 4px;
	background: linear-gradient(90deg, var(--color-blue-dark) 0%, var(--color-blue) 50%, var(--color-blue-light) 100%);
	width: 100%;
}

/* Header & Navigation */
.site-header {
	background: #ffffff;
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
	position: relative;
	z-index: 1000;
	transition: all var(--transition-speed);
}

.site-header.sticky-nav {
	position: sticky;
	top: 0;
	box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
	backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.95);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

.logo a {
	font-size: 24px;
	font-weight: 800;
	color: var(--color-navy);
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	letter-spacing: -0.03em;
}

.logo span {
	background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	gap: 10px;
	align-items: center;
}

/* Premium sliding underline navigation links */
.main-navigation a {
	color: var(--color-gray-dark);
	font-weight: 600;
	font-size: 15px;
	padding: 8px 0;
	margin: 0 12px;
	position: relative;
	transition: color var(--transition-speed) ease;
}

.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2.5px;
	background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
	transition: width var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
	border-radius: 4px;
}

.main-navigation a:hover {
	color: var(--color-blue);
}

.main-navigation a:hover::after, 
.main-navigation .current-menu-item a::after {
	width: 100%;
}

/* Mega Menu Structure */
.menu-item-has-mega {
	position: relative;
}

.mega-menu-wrapper {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 950px;
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: var(--border-radius-md);
	box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
	padding: 28px;
	display: none;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	z-index: 1001;
	margin-top: 12px;
	animation: noraFadeUp 0.25s ease-out;
}

@keyframes noraFadeUp {
	from { opacity: 0; transform: translate(-50%, 10px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}

.menu-item-has-mega:hover .mega-menu-wrapper {
	display: grid;
}

.mega-column h4 {
	font-size: 12px;
	text-transform: uppercase;
	color: var(--color-blue-dark);
	margin-bottom: 12px;
	border-bottom: 2px solid var(--color-blue-pale);
	padding-bottom: 6px;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.mega-column ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}

.mega-column a {
	font-size: 13px;
	font-weight: 500;
	padding: 0;
	margin: 0;
	color: var(--color-gray-medium);
}

.mega-column a::after {
	display: none; /* Disable underline for mega dropdowns */
}

.mega-column a:hover {
	background: none;
	color: var(--color-blue);
	transform: translateX(3px);
}

/* Hamburger mobile */
.hamburger {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--color-navy);
}

/* Hero Banner Layout */
.hero-section {
	background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue-dark) 100%);
	color: #ffffff;
	padding: 90px 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 60%);
	pointer-events: none;
}

.hero-section h1 {
	font-size: 48px;
	font-weight: 800;
	margin-bottom: 15px;
	letter-spacing: -0.03em;
	color: #ffffff;
}

.hero-section p {
	font-size: 18px;
	color: var(--color-blue-pale);
	margin-bottom: 40px;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
	opacity: 0.9;
}

/* Search Bar Group */
.nora-search-wrapper {
	max-width: 680px;
	margin: 0 auto;
	position: relative;
}

.nora-search-input-group {
	display: flex;
	align-items: center;
	background: #ffffff;
	padding: 8px 8px 8px 24px;
	border-radius: 50px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	transition: all var(--transition-speed);
	border: 2px solid transparent;
}

.nora-search-input-group:focus-within {
	border-color: var(--color-blue-light);
	box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
}

.search-inside-icon {
	color: var(--color-gray-medium);
	font-size: 18px;
	margin-right: 14px;
}

.nora-search-field {
	flex-grow: 1;
	border: none;
	background: transparent;
	font-size: 16px;
	font-weight: 500;
	color: var(--color-navy);
	outline: none;
	font-family: var(--font-primary);
}

.nora-search-field::placeholder {
	color: var(--color-gray-medium);
}

.nora-search-submit {
	background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
	color: #ffffff;
	border: none;
	padding: 12px 28px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
	font-family: var(--font-primary);
}

.nora-search-submit:hover {
	transform: scale(1.02);
	box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.nora-search-field {
	flex-grow: 1;
	border: none;
	background: transparent;
	font-size: 16px;
	font-weight: 500;
	color: var(--color-navy);
	outline: none;
	min-width: 0; /* Flexbox shrink fix for mobile */
	font-family: var(--font-primary);
}

.nora-search-field::placeholder {
	color: var(--color-gray-medium);
}

.nora-search-submit {
	background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
	color: #ffffff;
	border: none;
	padding: 12px 28px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
	font-family: var(--font-primary);
	white-space: nowrap;
}

.nora-search-submit:hover {
	transform: scale(1.02);
	box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

/* Tool Sections */
.section-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--color-navy);
	margin: 50px 0 25px 0;
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-heading);
	letter-spacing: -0.02em;
}

.section-title span {
	font-size: 12px;
	background: var(--color-rose-pale);
	color: var(--color-rose);
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Tool cards responsive design */
.nora-tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

.nora-tool-card {
	background: #ffffff;
	border: 1px solid var(--color-gray-light);
	border-radius: var(--border-radius-md);
	padding: 28px;
	display: flex;
	flex-direction: column;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	box-shadow: var(--box-shadow-soft);
	position: relative;
	overflow: hidden;
}

.nora-tool-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
	opacity: 0;
	transition: opacity 0.3s;
}

.nora-tool-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--box-shadow-hover);
	border-color: rgba(37, 99, 235, 0.15);
}

.nora-tool-card:hover::after {
	opacity: 1;
}

.nora-tool-card-icon {
	width: 54px;
	height: 54px;
	border-radius: var(--border-radius-sm);
	background: var(--color-blue-pale);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--color-blue);
	margin-bottom: 20px;
	transition: all 0.3s;
}

.nora-tool-card:hover .nora-tool-card-icon {
	background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
	color: #ffffff;
}

.nora-tool-card-title {
	font-size: 19px;
	font-weight: 700;
	color: var(--color-navy);
	margin-bottom: 10px;
	font-family: var(--font-heading);
}

.nora-tool-card-desc {
	font-size: 13.5px;
	color: var(--color-gray-medium);
	line-height: 1.6;
	margin-bottom: 20px;
	flex-grow: 1;
}

.nora-tool-card-btn {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--color-blue);
	display: flex;
	align-items: center;
}

.nora-tool-card-btn::after {
	content: '\f061';
	font-family: 'Font Awesome 6 Free';
	margin-left: 6px;
	transition: transform 0.25s;
}

.nora-tool-card:hover .nora-tool-card-btn::after {
	transform: translateX(4px);
}

/* AdSense spacing units */
.adsense-unit-wrapper {
	margin: 40px auto;
	text-align: center;
	min-height: 90px;
	background: var(--color-gray-bg);
	border: 1px dashed var(--color-gray-light);
	border-radius: var(--border-radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-gray-medium);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	overflow: hidden;
}

/* Category chips with modern horizontal scroll on mobile */
.category-chips-wrap {
	display: flex;
	flex-wrap: nowrap;
	gap: 12px;
	margin-top: -20px;
	margin-bottom: 45px;
	overflow-x: auto;
	padding: 10px 20px;
	margin-left: -20px;
	margin-right: -20px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.category-chips-wrap::-webkit-scrollbar {
	display: none; /* Hide scrollbar for Chrome/Safari */
}

@media (min-width: 901px) {
	.category-chips-wrap {
		flex-wrap: wrap;
		justify-content: center;
		margin-left: 0;
		margin-right: 0;
		padding: 0;
	}
}

.category-chip {
	background: #ffffff;
	color: var(--color-gray-dark);
	border: 1px solid var(--color-gray-light);
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 13.5px;
	font-weight: 600;
	transition: all var(--transition-speed);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
	white-space: nowrap; /* Keep text in one line */
}

.category-chip i {
	margin-right: 6px;
	color: var(--color-blue-light);
}

.category-chip:hover {
	background: var(--color-blue);
	color: white;
	border-color: var(--color-blue);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.category-chip:hover i {
	color: white;
}

/* Why Choose Section */
.why-choose-section {
	background: var(--color-gray-bg);
	padding: 70px 0;
	margin-top: 60px;
	border-top: 1px solid var(--color-gray-light);
}

.why-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.why-card {
	background: white;
	padding: 30px;
	border-radius: var(--border-radius-md);
	border: 1px solid var(--color-gray-light);
	box-shadow: var(--box-shadow-soft);
	transition: all 0.25s;
}

.why-card:hover {
	transform: translateY(-2px);
}

.why-card h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-navy);
	margin-bottom: 10px;
}

.why-card p {
	font-size: 14px;
	color: var(--color-gray-medium);
	line-height: 1.6;
}

/* ULTRA CLEAN & MINIMAL FOOTER (NO GAPS, NO EXTERNAL CREDITS) */
.site-footer {
	background: var(--color-navy);
	color: #94a3b8;
	padding: 24px 0;
	font-size: 13.5px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	width: 100%;
	margin-top: auto;
}

.footer-clean-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
}

.copyright-text {
	font-weight: 500;
	color: #94a3b8;
	margin: 0;
}

.footer-legal-links {
	display: flex;
	gap: 20px;
}

.footer-legal-links a {
	color: #94a3b8;
	font-weight: 600;
	transition: color var(--transition-speed);
	font-size: 13.5px;
}

.footer-legal-links a:hover {
	color: #ffffff;
}

/* Force-hide any default hosting-injected credit lines/badges at the absolute bottom */
#milesweb-branding, 
.milesweb-credit,
.powered-by-milesweb,
div[class*="milesweb"],
a[href*="milesweb"],
.site-footer ~ div,
.site-footer ~ a,
.site-footer ~ iframe,
.site-footer ~ p,
.site-footer ~ span,
.site-footer ~ img,
.site-footer ~ * {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	pointer-events: none !important;
}

/* Mobile responsive styles */
@media (max-width: 900px) {
	.main-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: #ffffff;
		border-top: 1px solid var(--color-gray-light);
		box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
	}
	
	.main-navigation.mobile-active {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		padding: 20px;
		gap: 15px;
		align-items: stretch;
	}

	.menu-item-has-mega:hover .mega-menu-wrapper {
		display: none;
	}

	.hamburger {
		display: block;
	}
	
	.hero-section {
		padding: 50px 0;
	}

	.hero-section h1 {
		font-size: 30px;
		line-height: 1.3;
		margin-bottom: 12px;
	}

	.hero-section p {
		font-size: 14.5px;
		margin-bottom: 24px;
		line-height: 1.5;
		padding: 0 5px;
	}

	.nora-search-wrapper {
		max-width: 100%;
		padding: 0;
	}

	.nora-search-input-group {
		padding: 6px 6px 6px 16px;
	}

	.search-inside-icon {
		font-size: 15px;
		margin-right: 8px;
	}

	.nora-search-field {
		font-size: 14px;
	}

	.nora-search-submit {
		padding: 10px 20px;
		font-size: 13px;
	}

	.footer-clean-row {
		flex-direction: column;
		text-align: center;
		justify-content: center;
	}
}
