/*
Theme Name:        FormVault Suite Theme
Theme URI:         https://example.com/securesign-theme
Author:            FormVault Suite
Author URI:        https://example.com
Description:       Companion theme for the FormVault Suite plugin. Dark-navy / gold / teal palette, fully responsive, optimized for landing pages, dashboards, and signing pages. Contains no business logic — all functionality lives in the SecureSign Portal plugin.
Version:           1.0.0
Requires at least: 5.8
Requires PHP:      7.4
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       securesign-theme
Tags:              business, custom-colors, custom-logo, custom-menu, full-width-template, responsive-layout
*/

/* -----------------------------------------------------------------------------
 * Design tokens — dark navy + gold + teal
 * --------------------------------------------------------------------------- */
:root {
	--st-navy:        #0b1e3f;
	--st-navy-deep:   #06132a;
	--st-navy-soft:   #16315e;
	--st-gold:        #c9a24a;
	--st-gold-soft:   #e7c878;
	--st-teal:        #2cb1a3;
	--st-teal-soft:   #5fcdc1;
	--st-white:       #ffffff;
	--st-text:        #1a2236;
	--st-text-soft:   #4b5570;
	--st-bg:          #f4f6fb;
	--st-border:      #e3e6ee;
	--st-radius:      18px;
	--st-radius-sm:   4px;
	--st-shadow:      0 18px 50px rgba(11, 30, 63, 0.10);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--st-text);
	background: var(--st-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--st-teal); text-decoration: none; }
a:hover { color: var(--st-gold); text-decoration: underline; }

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

h1, h2, h3, h4, h5, h6 {
	color: var(--st-navy);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 12px;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; }

/* -----------------------------------------------------------------------------
 * Layout containers
 * --------------------------------------------------------------------------- */
.st-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}
.st-narrow { max-width: 760px; }

.st-section { padding: 64px 0; }
.st-section.st-section-tight { padding: 32px 0; }

/* -----------------------------------------------------------------------------
 * Site header & nav
 * --------------------------------------------------------------------------- */
.st-site-header {
	background: var(--st-navy);
	color: var(--st-white);
	border-bottom: 3px solid var(--st-gold);
}
.st-site-header .st-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	padding-bottom: 16px;
	gap: 16px;
}
.st-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--st-white);
	font-weight: 700;
	font-size: 18px;
}
.st-brand:hover { color: var(--st-gold-soft); text-decoration: none; }
.st-brand-mark {
	display: inline-block;
	width: 32px;
	height: 32px;
	background: var(--st-gold);
	color: var(--st-navy);
	border-radius: 50%;
	text-align: center;
	line-height: 32px;
	font-weight: 800;
}
.st-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.st-nav a { color: var(--st-white); font-size: 14px; padding: 6px 4px; }
.st-nav a:hover { color: var(--st-gold-soft); text-decoration: none; }
.st-nav .current-menu-item > a { color: var(--st-gold); }

/* -----------------------------------------------------------------------------
 * Hero (landing)
 * --------------------------------------------------------------------------- */
.st-hero {
	background: linear-gradient(135deg, var(--st-navy) 0%, var(--st-navy-deep) 100%);
	color: var(--st-white);
	padding: 96px 0;
	text-align: center;
}
.st-hero h1 {
	color: var(--st-white);
	font-size: 2.75rem;
	margin-bottom: 20px;
}
.st-hero h1 .st-accent { color: var(--st-gold); }
.st-hero .st-lede {
	color: rgba(255,255,255,0.85);
	font-size: 1.15rem;
	max-width: 700px;
	margin: 0 auto 32px;
}

/* -----------------------------------------------------------------------------
 * Buttons
 * --------------------------------------------------------------------------- */
.st-btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: var(--st-radius-sm);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
	border: none;
	text-align: center;
}
.st-btn:hover { text-decoration: none; }
.st-btn-primary {
	background: var(--st-gold);
	color: var(--st-navy);
}
.st-btn-primary:hover {
	background: var(--st-gold-soft);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(201,162,74,.4);
	color: var(--st-navy);
}
.st-btn-ghost {
	background: transparent;
	color: var(--st-white);
	border: 2px solid var(--st-white);
}
.st-btn-ghost:hover {
	background: var(--st-white);
	color: var(--st-navy);
}
.st-btn-teal {
	background: var(--st-teal);
	color: var(--st-white);
}
.st-btn-teal:hover {
	background: var(--st-teal-soft);
	color: var(--st-navy);
}

/* -----------------------------------------------------------------------------
 * Cards & feature grids
 * --------------------------------------------------------------------------- */
.st-grid {
	display: grid;
	gap: 24px;
}
.st-grid-3 { grid-template-columns: repeat(3, 1fr); }
.st-grid-2 { grid-template-columns: repeat(2, 1fr); }

.st-card {
	background: var(--st-white);
	border-radius: var(--st-radius);
	padding: 28px;
	box-shadow: var(--st-shadow);
	border-top: 4px solid var(--st-gold);
}
.st-card h3 { margin-top: 0; }
.st-card .st-icon {
	width: 48px; height: 48px;
	background: var(--st-teal);
	color: var(--st-white);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	margin-bottom: 16px;
}

/* -----------------------------------------------------------------------------
 * Dashboard layout
 * --------------------------------------------------------------------------- */
.st-dashboard-shell {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 32px;
	margin-top: 24px;
}
.st-dashboard-side {
	background: var(--st-white);
	border-radius: var(--st-radius);
	padding: 18px;
	box-shadow: var(--st-shadow);
	height: fit-content;
}
.st-dashboard-side h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--st-text-soft); }
.st-dashboard-side ul { list-style: none; padding: 0; margin: 0; }
.st-dashboard-side li { margin: 4px 0; }
.st-dashboard-side a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--st-radius-sm);
	color: var(--st-text);
}
.st-dashboard-side a:hover { background: var(--st-bg); color: var(--st-navy); text-decoration: none; }

.st-dashboard-main {
	background: var(--st-white);
	border-radius: var(--st-radius);
	padding: 28px;
	box-shadow: var(--st-shadow);
}

/* -----------------------------------------------------------------------------
 * Forms (when not using plugin's signing page)
 * --------------------------------------------------------------------------- */
.st-form input[type="text"],
.st-form input[type="email"],
.st-form input[type="tel"],
.st-form input[type="number"],
.st-form input[type="date"],
.st-form input[type="password"],
.st-form select,
.st-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius-sm);
	font-size: 14px;
	font-family: inherit;
	background: var(--st-white);
}
.st-form label { font-weight: 600; display: block; margin-bottom: 6px; }
.st-form .st-field { margin-bottom: 18px; }

/* -----------------------------------------------------------------------------
 * Footer
 * --------------------------------------------------------------------------- */
.st-site-footer {
	background: var(--st-navy-deep);
	color: rgba(255,255,255,0.75);
	padding: 48px 0 24px;
}
.st-site-footer h4 {
	color: var(--st-white);
	margin-top: 0;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.st-site-footer a { color: rgba(255,255,255,0.85); }
.st-site-footer a:hover { color: var(--st-gold); }
.st-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 32px;
	margin-bottom: 24px;
}
.st-footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding-top: 18px;
	text-align: center;
	font-size: 12px;
}

/* -----------------------------------------------------------------------------
 * Posts / pages
 * --------------------------------------------------------------------------- */
.st-entry {
	background: var(--st-white);
	border-radius: var(--st-radius);
	padding: 32px;
	box-shadow: var(--st-shadow);
}
.st-entry-meta { color: var(--st-text-soft); font-size: 13px; margin-bottom: 16px; }

/* -----------------------------------------------------------------------------
 * Responsive
 * --------------------------------------------------------------------------- */
@media (max-width: 880px) {
	.st-grid-3 { grid-template-columns: 1fr; }
	.st-grid-2 { grid-template-columns: 1fr; }
	.st-footer-grid { grid-template-columns: 1fr 1fr; }
	.st-dashboard-shell { grid-template-columns: 1fr; }
	.st-hero { padding: 64px 0; }
	.st-hero h1 { font-size: 2rem; }
	.st-site-header .st-container { flex-direction: column; align-items: flex-start; }
	.st-nav ul { gap: 12px; }
}
@media (max-width: 540px) {
	.st-footer-grid { grid-template-columns: 1fr; }
}

/* Accessibility */
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; word-wrap: normal !important;
}
:focus-visible { outline: 3px solid var(--st-gold); outline-offset: 2px; }


/* FormVault Suite production polish */
.st-site-header { background: rgba(6,19,42,.96); backdrop-filter: blur(18px); }
.st-brand-mark { border-radius: 12px; box-shadow:0 0 28px rgba(201,162,74,.32); }
.st-hero { text-align:left; position:relative; overflow:hidden; background: radial-gradient(circle at top left, rgba(201,162,74,.20), transparent 34%), linear-gradient(135deg,#06132a 0%,#0b1e3f 58%,#06132a 100%); }
.st-hero:after { content:''; position:absolute; right:-120px; top:60px; width:360px; height:360px; border-radius:50%; background:rgba(44,177,163,.11); filter:blur(10px); }
.st-hero .st-container { position:relative; z-index:1; }
.st-hero h1 { max-width:780px; font-size:clamp(2.8rem,6vw,5rem); line-height:.94; letter-spacing:-.04em; }
.st-hero .st-lede { margin-left:0; max-width:720px; }
.st-btn { border-radius:999px; }
.st-card { border-radius:20px; border:1px solid var(--st-border); border-top:0; position:relative; overflow:hidden; }
.st-card:before { content:''; position:absolute; inset:0 0 auto 0; height:4px; background:linear-gradient(90deg,var(--st-gold),var(--st-teal)); }
.st-dashboard-side, .st-dashboard-main { border-radius:20px; }
.st-dashboard-main { border:1px solid var(--st-border); }
.st-entry-meta { color: var(--st-text-soft); }
@media (max-width:700px){ .st-hero { text-align:center; } .st-hero .st-lede { margin-left:auto; } }
