/*
Theme Name: GovForms Portal
Theme URI: https://example.com/govforms-portal
Author: GovForms Studio
Author URI: https://example.com
Description: A premium, modern WordPress theme built for Indian government form &amp; document download portals. Bilingual (Hindi/English) form directory, category browsing, download &amp; view counters, and a distinctive "official document" visual identity — deep forest green, warm orange, and cream paper tones. Fully compatible with the fp_form custom post type.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: govforms
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments, responsive-layout, accessibility-ready
*/

/* =========================================================
   DESIGN TOKENS
   Palette: Deep Forest Green + Warm Orange + Off-white/Cream
   Type: Fraunces (display) / Inter (body & UI) / Hind (Devanagari)
   ========================================================= */

:root{
	/* Core palette */
	--gf-forest:        #1B4332;
	--gf-forest-deep:   #0E2A20;
	--gf-forest-light:  #2D6A4F;
	--gf-forest-tint:   #E7EFE9;

	--gf-accent:        #E07A3F;
	--gf-accent-deep:   #C4611F;
	--gf-accent-tint:   #FBE7D8;

	--gf-gold:          #B8862E;

	--gf-bg:            #FBF8F2;
	--gf-cream:         #F3ECDC;
	--gf-cream-deep:    #EAE0C8;
	--gf-white:         #FFFFFF;

	--gf-navy:          #1C2B33;
	--gf-navy-soft:     #4B5A61;
	--gf-navy-faint:    #7C8A90;

	--gf-border:        #E1D9C4;
	--gf-border-strong: #CDBF9C;

	--gf-success:       #2F7D52;
	--gf-danger:        #B23A3A;

	/* Elevation */
	--gf-shadow-sm: 0 1px 2px rgba(27,67,50,0.06), 0 1px 1px rgba(27,67,50,0.04);
	--gf-shadow-md: 0 6px 16px rgba(27,67,50,0.08), 0 2px 6px rgba(27,67,50,0.06);
	--gf-shadow-lg: 0 20px 40px rgba(14,42,32,0.14), 0 6px 16px rgba(14,42,32,0.08);
	--gf-shadow-accent: 0 10px 24px rgba(224,122,63,0.28);

	/* Radius */
	--gf-radius-sm: 8px;
	--gf-radius-md: 14px;
	--gf-radius-lg: 22px;
	--gf-radius-pill: 999px;

	/* Type */
	--gf-font-display: "Fraunces", "Georgia", serif;
	--gf-font-body: "Inter", "Segoe UI", sans-serif;
	--gf-font-hindi: "Hind", "Noto Sans Devanagari", sans-serif;

	/* Layout */
	--gf-container: 1240px;
	--gf-header-h: 76px;

	/* Motion */
	--gf-ease: cubic-bezier(.22,.61,.36,1);
	--gf-speed: .28s;
}

/* Customizer-overridable variables get re-declared inline in wp_head — see inc/customizer.php */

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce){
	html{ scroll-behavior: auto; }
	*, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
	margin: 0;
	background: var(--gf-bg);
	color: var(--gf-navy);
	font-family: var(--gf-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; height: auto; display: block; }

a{ color: inherit; text-decoration: none; }

ul, ol{ margin: 0; padding: 0; list-style: none; }

button{ font-family: inherit; cursor: pointer; }

:focus-visible{
	outline: 3px solid var(--gf-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text{
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}
.skip-link{
	position: absolute;
	left: 8px; top: -60px;
	background: var(--gf-forest);
	color: #fff;
	padding: 10px 18px;
	border-radius: var(--gf-radius-sm);
	z-index: 9999;
	transition: top .2s var(--gf-ease);
}
.skip-link:focus{ top: 8px; }

[lang="hi"], .lang-hi{ font-family: var(--gf-font-hindi); }
