/*
Theme Name: Ad Grants Pilot
Theme URI: https://adgrantspilot.com/
Author: Ad Grants Pilot
Description: Site theme with shared functions, admin settings, and Customizer options. Page layouts can be built with Elementor; add global CSS via functions.php enqueue.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: adgrantspilot
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Ad Grants Pilot theme — migrated logic from the legacy AdGrant theme.
*/

/* Base reset: add your design system CSS via wp_enqueue_style in functions.php. */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap');
html {
	box-sizing: border-box;
}
*,
*::before,
*::after {
	box-sizing: inherit;
}
body {
	margin: 0;
	font-family: "Sora", sans-serif !important;
	background: var(--agp-white);
	color: var(--agp-navy);
	line-height: 1.5;
}

/* Visually hidden, available to screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Ad Grants Pilot header/footer (converted from homepage HTML) */
:root {
	--agp-teal: #1aa18c;
	--agp-teal-dark: #148a77;
	--agp-teal-light: #e6f7f5;
	--agp-navy: #0d1b2a;
	--agp-gray: #6b7280;
	--agp-light: #f9fafb;
	--agp-white: #ffffff;
	--agp-border: #e5e7eb;
}

/* Header */
#masthead nav {
	z-index: 100;
	background: var(--agp-white);
	border-bottom: 1px solid var(--agp-border);
	justify-content: space-between;
	align-items: center;
	height: 64px;
	padding: 0 40px;
	display: flex;
	position: sticky;
	top: 0;
}

#masthead .nav-logo {
	color: var(--agp-navy);
	font-size: 17px;
	font-weight: 800;
	text-decoration: none;
}

#masthead .nav-logo span {
	color: var(--agp-teal);
}

#masthead .nav-links {
	align-items: center;
	gap: 28px;
	list-style: none;
	display: flex;
	padding: 0;
	margin: 0;
}

#masthead .nav-links a {
	color: var(--agp-gray);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}

#masthead .nav-links a:hover {
	color: var(--agp-navy);
}

#masthead .nav-cta {
	background: var(--agp-teal);
	border-radius: 100px;
	padding: 9px 20px;
	color: #fff !important;
	font-weight: 600 !important;
}

#masthead .nav-cta:hover {
	background: var(--agp-teal-dark) !important;
}

/* Footer */
#colophon {
	background: var(--agp-navy);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 56px 40px 32px;
}

#colophon .footer-inner {
	grid-template-columns: 2fr 1fr 1fr;
	gap: 48px;
	max-width: 1100px;
	margin: 0 auto 40px;
	display: grid;
}

#colophon .footer-logo {
	color: #fff;
	margin-bottom: 10px;
	font-size: 17px;
	font-weight: 800;
}

#colophon .footer-logo span {
	color: var(--agp-teal);
}

#colophon .footer-tagline {
	color: rgba(255, 255, 255, 0.45);
	max-width: 260px;
	margin-bottom: 28px;
	font-size: 13px;
	line-height: 1.7;
}

#colophon .footer-col h4 {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 16px;
	font-size: 11px;
	font-weight: 700;
}

#colophon .footer-col ul {
	flex-direction: column;
	gap: 10px;
	list-style: none;
	display: flex;
	padding: 0;
	margin: 0;
}

#colophon .footer-col a {
	color: rgba(255, 255, 255, 0.5);
	font-size: 13px;
	text-decoration: none;
}

#colophon .footer-col a:hover {
	color: #fff;
}

#colophon .social-links {
	gap: 10px;
	margin-bottom: 24px;
	display: flex;
}

#colophon .social-link {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	justify-content: center;
	align-items: center;
	width: 34px;
	height: 34px;
	text-decoration: none;
	transition: background 0.2s;
	display: flex;
}

#colophon .social-link:hover {
	background: var(--agp-teal);
}

#colophon .subscribe-label {
	color: #fff9;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 600;
}

#colophon .subscribe-row {
	gap: 8px;
	display: flex;
}

#colophon .subscribe-input {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 100px;
	outline: none;
	flex: 1;
	padding: 10px 16px;
	font-family: "Sora", sans-serif;
	font-size: 13px;
}

#colophon .subscribe-input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

#colophon .subscribe-btn {
	background: var(--agp-teal);
	color: #fff;
	cursor: pointer;
	border: none;
	border-radius: 100px;
	padding: 10px 18px;
	font-family: "Sora", sans-serif;
	font-size: 13px;
	font-weight: 600;
}

#colophon .footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	justify-content: space-between;
	align-items: center;
	max-width: 1100px;
	margin: 0 auto;
	padding-top: 24px;
	display: flex;
}

#colophon .footer-copy {
	color: rgba(255, 255, 255, 0.3);
	font-size: 12px;
}

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

#colophon .footer-legal a {
	color: rgba(255, 255, 255, 0.3);
	font-size: 12px;
	text-decoration: none;
}

#colophon .footer-legal a:hover {
	color: #fff;
}

@media (max-width: 900px) {
	#masthead nav {
		padding: 0 20px;
	}

	#masthead .nav-links {
		display: none;
	}

	#colophon {
		padding-left: 20px;
		padding-right: 20px;
	}

	#colophon .footer-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	#colophon .footer-bottom {
		flex-direction: column;
		gap: 12px;
	}
}
