/*
Theme Name: ResearchFund
Theme URI: https://researchfund.in
Author: Yuvraj Group of Industries
Author URI: https://yuvrajgroup.in
Description: A premium single-page consultancy theme for ResearchFund — DSIR R&D recognition, government funding, and innovation support. Built on the Yuvraj Group of Industries brand.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
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: researchfund
Tags: business, consulting, single-page, one-page, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   ResearchFund Theme — Base Styles
   Corporate blue / white. Public Sans + IBM Plex Sans.
   HSL design tokens.
   ========================================================= */

:root {
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  --card: 210 40% 98%;
  --muted: 215 16% 47%;
  --muted-foreground: 215 16% 47%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --primary: 217 91% 45%;
  --primary-foreground: 0 0% 100%;
  --secondary: 217 91% 95%;
  --accent: 217 91% 45%;
  --navy: 222 47% 11%;
  --research-blue-dark: 222 60% 25%;
  --radius: 12px;

  --shadow-soft: 0 1px 3px hsl(222 47% 11% / 0.06), 0 1px 2px hsl(222 47% 11% / 0.04);
  --shadow-elevated: 0 10px 30px -10px hsl(222 47% 11% / 0.18);
  --shadow-hover: 0 8px 20px -6px hsl(217 91% 45% / 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  margin: 0 0 .5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; color: hsl(var(--muted-foreground)); }
a { color: hsl(var(--primary)); text-decoration: none; transition: color .2s ease; }
a:hover { color: hsl(var(--research-blue-dark)); }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: hsl(var(--primary));
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: hsl(var(--muted-foreground));
  max-width: 640px;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  font-family: 'Public Sans', sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); color: hsl(var(--primary-foreground)); }
.btn-outline {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline:hover { box-shadow: var(--shadow-hover); color: hsl(var(--foreground)); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid hsl(var(--border));
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-text { line-height: 1.05; }
.brand-name { font-family: 'Public Sans', sans-serif; font-weight: 700; font-size: 1rem; color: hsl(var(--foreground)); }
.brand-name span { color: hsl(var(--primary)); }
.brand-sub { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }

.primary-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.primary-nav a {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  font-size: .9rem;
}
.primary-nav a:hover, .primary-nav .current-menu-item a { color: hsl(var(--primary)); }

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: .5rem;
  color: hsl(var(--foreground));
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}
@media (max-width: 1023px) {
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: 4rem; left: 0; right: 0;
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem 1.25rem;
  }
  .primary-nav.is-open ul { flex-direction: column; gap: .25rem; }
  .primary-nav.is-open a {
    display: block; padding: .65rem .75rem; border-radius: 8px;
  }
}

main { padding-top: 4rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: hsl(var(--background));
  padding: 4rem 0 5rem;
}
.hero-blob {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .25;
  filter: blur(2px);
}
.hero-blob.b1 { top: -180px; right: -160px; background: radial-gradient(circle, hsl(var(--primary)/0.55), transparent 70%); }
.hero-blob.b2 { bottom: -180px; left: -160px; background: radial-gradient(circle, hsl(var(--research-blue-dark)/0.45), transparent 70%); }

.hero-grid {
  display: grid; gap: 3rem;
  align-items: center;
  position: relative;
}
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}

.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: .75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 1rem;
}
.hero-lead {
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 1.75rem;
}
.hero-lead strong { color: hsl(var(--foreground)); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; max-width: 520px;
}
.hero-stats .stat-num {
  font-family: 'IBM Plex Sans', monospace;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: hsl(var(--foreground));
}
.hero-stats .stat-label {
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
  margin-top: .25rem;
}
.hero-stats > div + div { padding-left: 1rem; border-left: 1px solid hsl(var(--border)); }

.hero-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid hsl(var(--border));
}
.hero-image img { width: 100%; height: 480px; object-fit: cover; }

/* Generic card grid */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card p { font-size: .92rem; margin: 0; }

.icon-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 1rem;
}

/* About */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about ul { padding-left: 1.1rem; }
.about ul li { margin-bottom: .5rem; color: hsl(var(--muted-foreground)); }

/* Process steps */
.steps { counter-reset: step; }
.step .icon-circle::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'IBM Plex Sans', monospace;
}

/* Testimonials */
.testimonial {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 1.75rem;
}
.testimonial p { font-size: .98rem; color: hsl(var(--foreground)); }
.testimonial-author {
  display: flex; align-items: center; gap: .75rem;
  margin-top: 1.25rem;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.testimonial-author .name { font-weight: 600; color: hsl(var(--foreground)); font-size: .9rem; }
.testimonial-author .role { font-size: .8rem; color: hsl(var(--muted-foreground)); }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info-item {
  display: flex; gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: hsl(var(--background));
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
}
.contact-info-item h4 { font-size: 1rem; margin-bottom: .25rem; }
.contact-info-item p { margin: 0; font-size: .9rem; }

.contact-form {
  background: hsl(var(--background));
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.contact-form label {
  display: block; font-weight: 500; font-size: .9rem;
  color: hsl(var(--foreground));
  margin-bottom: .35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid hsl(var(--input));
  border-radius: 10px;
  font: inherit;
  font-size: .92rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / .15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; }

/* CTA */
.cta {
  background: hsl(var(--navy));
  color: hsl(var(--primary-foreground));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -160px; right: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--primary)/0.55), transparent 70%);
  opacity: .35;
  pointer-events: none;
}
.cta h2 { color: hsl(var(--primary-foreground)); font-size: clamp(1.75rem, 4vw, 3rem); }
.cta p { color: hsl(var(--primary-foreground) / 0.75); font-size: 1.05rem; max-width: 560px; margin: 0 auto 2rem; }

/* Footer */
.site-footer {
  background: hsl(var(--navy));
  color: hsl(var(--primary-foreground) / 0.65);
  padding: 3.5rem 0 1.5rem;
}
.site-footer h4 {
  color: hsl(var(--primary-foreground));
  font-size: .9rem;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p { color: hsl(var(--primary-foreground) / 0.6); font-size: .9rem; max-width: 420px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .5rem; font-size: .9rem; }
.footer-grid ul a { color: hsl(var(--primary-foreground) / 0.6); }
.footer-grid ul a:hover { color: hsl(var(--primary-foreground)); }

.footer-bottom {
  border-top: 1px solid hsl(var(--primary-foreground) / 0.1);
  padding-top: 1.25rem; margin-top: 2rem;
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: space-between; align-items: center;
  font-size: .78rem;
  color: hsl(var(--primary-foreground) / 0.5);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  background: #25D366;
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .55);
  z-index: 60;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Utility */
.bg-card { background: hsl(var(--card)); }
.alt-bg { background: hsl(var(--card)); }
