/*
Theme Name: Vivaan Global
Theme URI: https://www.vivaanglobal.in/
Description: Lightweight custom theme for Vivaan Global. Works with the Vivaan Core plugin, which stores packages, FAQs, team, results and enquiries.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Author: Vivaan Global
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vivaan-global
*/

/* Fonts, served from this website. SIL Open Font License (see assets/fonts). */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/hanken-grotesk-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

/* Base */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: #FFFFFF; color: #111418; font-family: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: #0B63CE; }
a:hover { color: #084C9E; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid #0B63CE; outline-offset: 3px; border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #0B63CE; outline-offset: 1px; }
.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 !important; width: 1px; word-wrap: normal !important; }
.vg-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #0A1630; color: #FFFFFF; padding: 10px 16px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; }
.vg-skip:focus { top: 12px; color: #FFFFFF; }
main:focus { outline: none; }
/* Small inline links (footer, banner) get a larger tap area without moving the layout. */
.vg-tap { padding: 5px 2px; margin: -5px -2px; }
/* Tap targets of at least 24px (WCAG 2.2 AA) for menu links and stand-alone links. Links inside sentences are exempt. */
.vg-navlinks { align-items: center; }
.vg-navlinks a { padding: 5px 0; }
#main a:not(.vg-btn) { min-height: 24px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.vg-balance, h1, h2 { text-wrap: balance; }

/* Mobile menu: shown below 860px, where the full navigation is hidden. */
.vg-mobile-menu { display: none; position: relative; }
.vg-mobile-menu > summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; }
.vg-mobile-panel {
  position: absolute; right: 0; top: 50px; min-width: 220px; z-index: 40;
  background: #FFFFFF; border: 1px solid #E3E6EB; border-radius: 16px; padding: 8px;
  box-shadow: 0 12px 32px rgba(11, 18, 32, 0.14); display: flex; flex-direction: column;
}
.vg-mobile-panel a { color: #111418; text-decoration: none; font-size: 16px; padding: 12px 14px; border-radius: 10px; }
.vg-mobile-panel a[aria-current='page'] { font-weight: 700; background: #F4F5F7; }
@media (max-width: 860px) {
  .vg-navlinks, .vg-side { display: none !important; }
  .vg-mobile-menu { display: block; }
}

/* Results filters */
.vg-filters button { font: inherit; background: #F4F5F7; color: #111418; border: none; border-radius: 99px; padding: 10px 18px; min-height: 44px; cursor: pointer; }
.vg-filters button[aria-pressed='true'] { background: #111418; color: #FFFFFF; }

/* Contact form */
.vg-form [aria-invalid='true'] { border-color: #B42318 !important; box-shadow: 0 0 0 1px #B42318; }
.vg-submit[disabled] { opacity: 0.7; cursor: wait !important; }

/* Standard pages and policies: readable text written in the WordPress editor. */
.vg-prose { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.65; color: #30343B; }
.vg-prose > * { margin: 0 0 16px; }
.vg-prose h2 { margin: 36px 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: #111418; }
.vg-prose h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 600; color: #111418; }
.vg-prose ul, .vg-prose ol { padding-left: 22px; }
.vg-prose li { margin: 0 0 8px; }
.vg-prose strong { color: #111418; font-weight: 600; }
.vg-prose img { height: auto; border-radius: 16px; }
.vg-prose figure { margin: 24px 0; }
.vg-prose .wp-block-table { overflow-x: auto; }
.vg-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vg-prose th, .vg-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #D9DCE1; vertical-align: top; }
.vg-prose th { font-weight: 600; color: #111418; background: #F4F5F7; }
.vg-prose .wp-block-button__link { background: #0B63CE; color: #FFFFFF; border-radius: 980px; padding: 11px 22px; text-decoration: none; }
.vg-meta { color: #5F636B; font-size: 14px; }
.vg-list { list-style: none; padding: 0; }
.vg-list li { padding: 18px 0; border-bottom: 1px solid #D9DCE1; }
.vg-list a { font-size: 20px; font-weight: 600; text-decoration: none; }

/* Motion. Kept subtle, and switched off for people who ask their device for less motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  :root { interpolate-size: allow-keywords; }
  .vg-btn, .vg-submit { transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease; }
  .vg-btn:hover, .vg-submit:hover { transform: translateY(-1px); filter: brightness(1.06); }
  .vg-btn:active, .vg-submit:active { transform: translateY(0); filter: brightness(0.96); }
  .vg-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .vg-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11, 18, 32, 0.08); }
  .vg-header { transition: box-shadow 0.25s ease; }
  .vg-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 18, 32, 0.06); }
  details:not(.vg-mobile-menu)::details-content { block-size: 0; overflow: clip; transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete; }
  details:not(.vg-mobile-menu)[open]::details-content { block-size: auto; }
  .vg-mobile-panel { animation: vg-drop 0.18s ease-out; transform-origin: top right; }
  /* Sections fade up as they scroll into view (added by site.js, so nothing is hidden without JavaScript). */
  .vg-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .vg-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@keyframes vg-drop { from { opacity: 0; transform: scale(0.96) translateY(-4px); } to { opacity: 1; transform: none; } }

@media print {
  .vg-header, .vg-footer, .vg-announcement, .vg-skip, .vg-form { display: none !important; }
  .vg-reveal { opacity: 1 !important; transform: none !important; }
}
