/*
Theme Name: Volks GEO
Theme URI: https://volkssystems.com/
Author: Volks Systems
Author URI: https://volkssystems.com/
Description: Lightweight, server-rendered WordPress theme for Volks Systems (Thiruvankulam, Ernakulam). Built for Local SEO and Generative Engine Optimization: clean semantic HTML readable by GPTBot, ClaudeBot and PerplexityBot, one-source NAP from the Customizer, auto-generated Organization / LocalBusiness / Service / FAQPage / BreadcrumbList JSON-LD, answer-block and case-snapshot components, AI-crawler robots.txt rules and llms.txt.
Version: 1.2.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: volks-geo
Tags: business, one-column, custom-logo, custom-menu, block-patterns, accessibility-ready
*/

:root {
	--vg-navy: #073f73;
	--vg-blue: #0b5fa5;
	--vg-sky: #2a8fd6;
	--vg-violet: #6b5bd2;
	--vg-ink: #14213d;
	--vg-text: #2b3548;
	--vg-muted: #5b6678;
	--vg-line: #dde3ee;
	--vg-bg: #ffffff;
	--vg-soft: #f3f6fb;
	--vg-grad: linear-gradient(100deg, #073f73 0%, #1e7fc0 50%, #6b5bd2 100%);
	--vg-radius: 10px;
	--vg-max: 1160px;
	--vg-read: 760px;
	--vg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--vg-font); font-size: 17px; line-height: 1.65; color: var(--vg-text); background: var(--vg-bg); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--vg-blue); text-underline-offset: 3px; }
a:hover { color: var(--vg-violet); }
h1, h2, h3, h4 { color: var(--vg-ink); line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 0; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, table { margin: 0 0 1.1em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { border: 1px solid var(--vg-line); padding: .55em .7em; text-align: left; vertical-align: top; }
th { background: var(--vg-soft); color: var(--vg-ink); }
address { font-style: normal; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; border-radius: 6px; }
.vg-wrap { width: 100%; max-width: var(--vg-max); margin: 0 auto; padding: 0 16px; }
.vg-read { max-width: var(--vg-read); }

/* ---------- Top bar & header ---------- */
.vg-topbar { background: var(--vg-navy); color: #dbe7f5; font-size: .88rem; }
.vg-topbar .vg-wrap { display: flex; flex-wrap: wrap; gap: .4em 1.4em; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.vg-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.vg-header { background: #fff; border-bottom: 1px solid var(--vg-line); position: sticky; top: 0; z-index: 50; }
.vg-header .vg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.vg-brand { flex-shrink: 0; }
.vg-brand img { display: block; width: auto; height: 58px; }
.vg-brand .custom-logo { height: 58px; width: auto; }
.vg-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.vg-nav li { position: relative; }
.vg-nav a { display: block; white-space: nowrap; padding: 10px 10px; color: var(--vg-ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 8px; }
.vg-nav a:hover, .vg-nav .current-menu-item > a, .vg-nav .current-menu-ancestor > a { background: var(--vg-soft); color: var(--vg-blue); }
.vg-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--vg-line); border-radius: var(--vg-radius); padding: 6px; box-shadow: 0 10px 30px rgba(7,63,115,.12); flex-direction: column; }
.vg-nav li:hover > .sub-menu, .vg-nav li:focus-within > .sub-menu { display: flex; }
.vg-nav .sub-menu a { font-weight: 500; }
.vg-menu-toggle { display: none; background: none; border: 1px solid var(--vg-line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--vg-ink); cursor: pointer; }
.vg-cta { display: inline-block; white-space: nowrap; background: var(--vg-grad); color: #fff !important; padding: 11px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; }
.vg-cta:hover { filter: brightness(1.08); }
.vg-cta--ghost { background: #fff; color: var(--vg-blue) !important; border: 2px solid var(--vg-blue); }

@media (max-width: 1180px) {
	.vg-menu-toggle { display: inline-block; }
	.vg-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--vg-line); padding: 8px 16px 16px; }
	.vg-nav.is-open { display: block; }
	.vg-nav ul { flex-direction: column; }
	.vg-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
	.vg-header .vg-cta { display: none; }
	.vg-brand img, .vg-brand .custom-logo { height: 44px; }
}

/* ---------- Hero ---------- */
.vg-hero { background: linear-gradient(180deg, #eef3fb 0%, #fff 100%); border-bottom: 1px solid var(--vg-line); padding: 44px 0 36px; }
.vg-hero .vg-eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--vg-violet); margin-bottom: .6em; }
.vg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Breadcrumbs ---------- */
.vg-breadcrumbs { font-size: .88rem; color: var(--vg-muted); padding: 14px 0 0; }
.vg-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.vg-breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: #9aa4b5; }
.vg-breadcrumbs a { color: var(--vg-muted); }

/* ---------- Main layout ---------- */
.vg-main { padding: 32px 0 56px; }
.vg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .vg-grid { grid-template-columns: 1fr; } }
.vg-sidebar { position: sticky; top: 96px; display: grid; gap: 20px; }
@media (max-width: 960px) { .vg-sidebar { position: static; } }
.vg-card { background: #fff; border: 1px solid var(--vg-line); border-radius: var(--vg-radius); padding: 20px; }
.vg-card h2, .vg-card h3 { margin-top: 0; }
.vg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.vg-cards li { background: #fff; border: 1px solid var(--vg-line); border-radius: var(--vg-radius); padding: 20px; border-top: 4px solid var(--vg-sky); }
.vg-cards li:nth-child(2) { border-top-color: var(--vg-blue); }
.vg-cards li:nth-child(3) { border-top-color: var(--vg-violet); }
.vg-cards li:nth-child(4) { border-top-color: var(--vg-navy); }
.vg-cards h3 { margin: 0 0 .4em; font-size: 1.1rem; }
.vg-cards h3 a { color: var(--vg-ink); text-decoration: none; }
.vg-cards p { margin: 0 0 .6em; font-size: .95rem; }
.vg-section { padding: 40px 0; }
.vg-section--soft { background: var(--vg-soft); }

/* ---------- GEO components ---------- */
.vg-answer { background: #f5f8fe; border-left: 4px solid var(--vg-blue); border-radius: 0 var(--vg-radius) var(--vg-radius) 0; padding: 16px 20px; margin: 0 0 1.3em; }
.vg-answer p:last-child { margin-bottom: 0; }
.vg-answer--tldr { border-left-color: var(--vg-violet); background: #f6f4fe; }
.vg-answer .vg-answer-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vg-muted); margin-bottom: 4px; }
.vg-facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.vg-facts li { background: var(--vg-soft); border-radius: 8px; padding: 10px 14px; font-size: .95rem; }
.vg-facts strong { display: block; color: var(--vg-ink); }
.vg-faq { border-top: 1px solid var(--vg-line); }
.vg-faq details, .wp-block-details.volks-faq { border-bottom: 1px solid var(--vg-line); padding: 14px 0; }
.vg-faq summary, .wp-block-details.volks-faq summary { cursor: pointer; font-weight: 700; color: var(--vg-ink); font-size: 1.05rem; }
.vg-faq details > div, .wp-block-details.volks-faq > :not(summary) { margin-top: .6em; }
.vg-case { border: 1px solid var(--vg-line); border-radius: var(--vg-radius); overflow: hidden; margin: 0 0 1.4em; }
.vg-case header { background: var(--vg-grad); color: #fff; padding: 12px 18px; font-weight: 700; }
.vg-case dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; }
.vg-case dt, .vg-case dd { margin: 0; padding: 10px 18px; border-top: 1px solid var(--vg-line); }
.vg-case dt { font-weight: 700; color: var(--vg-ink); background: var(--vg-soft); }
@media (max-width: 560px) { .vg-case dl { grid-template-columns: 1fr; } .vg-case dd { border-top: 0; } }
.vg-nap-inline { background: var(--vg-soft); border-radius: var(--vg-radius); padding: 16px 20px; }
.vg-related h2 { font-size: 1.3rem; }
.vg-map { border: 0; width: 100%; height: 320px; border-radius: var(--vg-radius); }

/* ---------- Content from block editor ---------- */
.entry-content > * { max-width: 100%; }
.entry-content .alignwide { max-width: var(--vg-max); }
.entry-content .wp-block-button__link { background: var(--vg-grad); border-radius: 999px; font-weight: 700; }
.entry-content blockquote { border-left: 4px solid var(--vg-violet); margin: 0 0 1.2em; padding: 4px 18px; color: var(--vg-ink); }

/* ---------- Posts ---------- */
.vg-post-list { list-style: none; padding: 0; display: grid; gap: 22px; }
.vg-post-list li { border-bottom: 1px solid var(--vg-line); padding-bottom: 20px; }
.vg-meta { font-size: .88rem; color: var(--vg-muted); }
.vg-pagination { display: flex; gap: 8px; }

/* ---------- Footer ---------- */
.vg-footer { background: var(--vg-ink); color: #c9d3e3; font-size: .95rem; }
.vg-footer a { color: #fff; }
.vg-footer .vg-wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
@media (max-width: 800px) { .vg-footer .vg-wrap { grid-template-columns: 1fr; } }
.vg-footer h2 { color: #fff; font-size: 1.05rem; margin: 0 0 .7em; }
.vg-footer ul { list-style: none; padding: 0; margin: 0; }
.vg-footer li { margin-bottom: 6px; }
.vg-footer-logo { background: #fff; border-radius: 8px; padding: 8px 10px; display: inline-block; margin-bottom: 12px; }
.vg-footer-logo img { height: 32px; width: auto; display: block; }
.vg-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: .85rem; text-align: center; }

@media print { .vg-header, .vg-topbar, .vg-footer, .vg-sidebar { display: none; } }

.vg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .vg-two { grid-template-columns: 1fr; } }
@media (min-width: 1181px) and (max-width: 1600px) { .vg-header .vg-cta { display: none; } }

/* Home hero with video */
.vg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.vg-hero--home h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.vg-hero-video { margin: 0; }
.vg-hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #0b1530; box-shadow: 0 18px 40px rgba(7, 63, 115, .22); }
.vg-hero-video figcaption { font-size: .85rem; color: var(--vg-muted); margin-top: 10px; }
@media (max-width: 960px) { .vg-hero-grid { grid-template-columns: 1fr; gap: 24px; } }
.vg-footer { background: #070c1f; }
.vg-footer-logo { background: none; padding: 0; margin-bottom: 16px; display: inline-block; }
.vg-footer-logo img { height: 84px; width: auto; display: block; filter: drop-shadow(0 0 14px rgba(42, 143, 214, .35)); }

/* Service cards (whole card clickable) */
.vg-cards li:has(> .vg-card-link) { padding: 0; }
.vg-card-link { display: block; height: 100%; padding: 22px; color: inherit; text-decoration: none; border-radius: var(--vg-radius); transition: transform .15s ease, box-shadow .15s ease; }
.vg-card-link:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(7, 63, 115, .14); color: inherit; }
.vg-card-link h3 { color: var(--vg-ink); }
.vg-icon { color: var(--vg-blue); margin-bottom: 10px; }
.vg-more { font-weight: 700; color: var(--vg-blue); font-size: .92rem; }
.vg-cta-band { background: var(--vg-grad); color: #fff; border-radius: 14px; padding: 26px 28px; margin: 2em 0; }
.vg-cta-band h2 { color: #fff; margin-top: 0; }
.vg-cta-band .vg-cta { background: #fff; color: var(--vg-navy) !important; margin-right: 8px; }
.vg-cta-band .vg-cta--ghost { background: transparent; color: #fff !important; border-color: #fff; }
