/*
Theme Name: Perovskite Research Menu Ready
Theme URI: https://example.com/perovskite-research-menu-ready
Author: Avinash Krishna / ChatGPT
Author URI: https://example.com
Description: A clean PERSEUS-inspired WordPress theme shell for research and renewable-energy project websites. No demo page content is added by the theme. Header navigation is always visible and automatically lists your published pages until you assign a custom menu.
Version: 1.2.0
Tested up to: 6.8
Requires at least: 6.1
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: perovskite-research-menu-ready
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, editor-style, translation-ready, blog, education, portfolio
*/

:root {
  --pr-navy: #04326f;
  --pr-navy-dark: #031f45;
  --pr-blue: #0a4b9a;
  --pr-accent: #ffc233;
  --pr-accent-soft: #fff2c1;
  --pr-text: #222733;
  --pr-muted: #677080;
  --pr-bg: #ffffff;
  --pr-soft: #f6f8fb;
  --pr-card: #ffffff;
  --pr-border: rgba(4, 50, 111, 0.10);
  --pr-shadow: 0 18px 55px rgba(4, 50, 111, 0.10);
  --pr-radius-xl: 28px;
  --pr-radius-lg: 20px;
  --pr-radius-md: 14px;
  --pr-container: 1320px;
  --pr-font: "Poppins", "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pr-font);
  color: var(--pr-text);
  background: var(--pr-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--pr-navy); text-decoration: none; transition: color .18s ease, opacity .18s ease, transform .18s ease; }
a:hover { color: var(--pr-blue); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.pr-container {
  width: min(var(--pr-container), calc(100% - 48px));
  margin-inline: auto;
}

.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;
  width: 1px;
  word-wrap: normal !important;
}

.pr-btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 15px 34px;
  border-radius: 999px;
  border: 0;
  background: var(--pr-navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 12px 35px rgba(4, 50, 111, 0.18);
  cursor: pointer;
}
.pr-btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  color: #fff;
  background: var(--pr-blue);
  transform: translateY(-1px);
}
.pr-btn--light { background: #fff; color: var(--pr-navy); box-shadow: none; }
.pr-btn--light:hover { background: var(--pr-accent); color: var(--pr-navy); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pr-border);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-branding { display: flex; align-items: center; min-width: 230px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 54px; width: auto; }
.pr-logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--pr-navy);
}
.pr-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  border: 2px solid var(--pr-navy);
  overflow: hidden;
}
.pr-logo-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid var(--pr-navy);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(20deg);
}
.pr-logo-mark::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: repeating-linear-gradient(90deg, var(--pr-accent), var(--pr-accent) 3px, transparent 3px, transparent 6px);
  border-radius: 50% 50% 0 0;
}

.nav-wrap { display: flex; align-items: center; gap: 26px; }
.main-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 4px; }
.main-navigation li { position: relative; }
.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  color: var(--pr-navy-dark);
  font-weight: 500;
  letter-spacing: .02em;
}
.main-navigation > div > ul > li.current-menu-item > a,
.main-navigation > div > ul > li.current_page_item > a,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current_page_item > a { text-decoration: underline; text-underline-offset: 8px; }
.main-navigation .menu-item-has-children > a::after,
.main-navigation .page_item_has_children > a::after {
  content: "▾";
  font-size: 12px;
  margin-left: 8px;
}
.main-navigation ul ul {
  position: absolute;
  left: 0;
  top: 100%;
  display: block;
  min-width: 230px;
  padding: 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--pr-shadow);
  border: 1px solid var(--pr-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation ul ul a { display: flex; width: 100%; border-radius: 12px; padding: 10px 12px; min-height: 38px; }
.main-navigation ul ul a:hover { background: var(--pr-soft); }
.header-actions { display: inline-flex; align-items: center; gap: 12px; }
.social-circle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pr-navy);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.social-circle:hover { color: #fff; background: var(--pr-blue); transform: translateY(-1px); }
.newsletter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 28px;
  border-radius: 999px;
  background: var(--pr-navy);
  color: #fff;
  font-weight: 700;
}
.newsletter-pill:hover { color: #fff; background: var(--pr-blue); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--pr-border);
  background: #fff;
  border-radius: 50%;
  color: var(--pr-navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: clamp(70px, 8vw, 128px) 0 86px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 194, 51, .18), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fff 72%, var(--pr-soft) 72%, var(--pr-soft) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .78fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--pr-accent-soft);
  color: var(--pr-navy);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pr-accent);
}
.hero h1 {
  margin: 0 0 50px;
  color: var(--pr-navy);
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.22;
  letter-spacing: .105em;
  font-weight: 600;
  max-width: 940px;
}
.hero p {
  margin: 0 0 54px;
  max-width: 840px;
  color: #2b2f3a;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.75;
}
.hero p strong { color: var(--pr-navy); }
.hero-visual {
  background:
    linear-gradient(135deg, rgba(4, 50, 111, .88), rgba(3, 31, 69, .96)),
    repeating-linear-gradient(24deg, rgba(255,255,255,.18) 0 1px, transparent 1px 34px);
  border-radius: 28px;
  min-height: 270px;
  padding: clamp(26px, 5vw, 48px);
  box-shadow: var(--pr-shadow);
  position: relative;
  overflow: hidden;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero-visual::before {
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: .23;
  transform: skewY(-10deg);
}
.hero-visual::after {
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  right: -80px;
  top: -70px;
}
.video-card {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 0;
  background:
    linear-gradient(100deg, rgba(4, 50, 111, .08), rgba(255,255,255,1) 44%),
    #fff;
  text-align: center;
  padding: 28px 24px;
  color: var(--pr-navy);
}
.video-card-logo { display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: clamp(22px, 2.5vw, 34px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.video-play {
  width: 45px;
  height: 35px;
  margin: 10px auto 12px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 7px 18px rgba(4,50,111,.16));
}
.video-play::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 21px solid #fff;
  filter: drop-shadow(0 0 0 rgba(0,0,0,.2));
}
.video-title { font-size: clamp(18px, 2vw, 28px); font-weight: 800; letter-spacing: .04em; }
.video-card[href] { transition: transform .18s ease; }
.video-card[href]:hover { transform: scale(1.01); color: var(--pr-navy); }

/* Sections */
.section { padding: clamp(70px, 7vw, 112px) 0; }
.section-soft { background: var(--pr-soft); }
.section-header { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; margin-bottom: 38px; }
.section-kicker { margin: 0 0 10px; color: var(--pr-accent); font-weight: 900; letter-spacing: .11em; text-transform: uppercase; font-size: 12px; }
.section-title { margin: 0; color: var(--pr-navy); font-size: clamp(30px, 3.2vw, 48px); line-height: 1.16; letter-spacing: .02em; }
.section-copy { margin: 14px 0 0; max-width: 720px; color: var(--pr-muted); font-size: 17px; }

.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.4vw, 36px); }
.feature-card {
  background: var(--pr-card);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius-lg);
  padding: clamp(26px, 3vw, 42px);
  min-height: 330px;
  box-shadow: 0 16px 40px rgba(4, 50, 111, 0.05);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--pr-shadow); }
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(4, 50, 111, .08);
  color: var(--pr-navy);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.feature-icon svg { width: 36px; height: 36px; }
.feature-card h3 { margin: 0 0 16px; color: var(--pr-navy); font-size: 22px; line-height: 1.28; letter-spacing: .01em; }
.feature-card p { margin: 0 0 18px; color: var(--pr-muted); flex: 1; }
.card-link { margin-top: auto; font-weight: 800; color: var(--pr-navy); }
.card-link:hover { color: var(--pr-blue); }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 82px);
  align-items: center;
}
.logo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.logo-tile {
  min-height: 86px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--pr-border);
  box-shadow: 0 12px 30px rgba(4, 50, 111, .05);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  color: var(--pr-navy);
  font-weight: 900;
  letter-spacing: .05em;
}
.logo-tile:nth-child(3n) { color: var(--pr-blue); }
.logo-tile small { display: block; color: var(--pr-muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.story-panel {
  padding: clamp(30px, 5vw, 64px);
  background: #fff;
  border-radius: var(--pr-radius-xl);
  border: 1px solid var(--pr-border);
  box-shadow: var(--pr-shadow);
}
.story-panel p { color: var(--pr-muted); margin: 0 0 16px; }
.story-panel ul { margin: 20px 0 0; padding: 0; list-style: none; }
.story-panel li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--pr-text); }
.story-panel li::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-top: 10px; border-radius: 50%; background: var(--pr-accent); box-shadow: 0 0 0 5px rgba(255, 194, 51, .18); }

.funding-card {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  border-radius: var(--pr-radius-xl);
  background: var(--pr-navy);
  color: #fff;
  padding: clamp(30px, 5vw, 68px);
  overflow: hidden;
  position: relative;
}
.funding-card::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255,194,51,.28), transparent 62%);
  left: -90px;
  top: -130px;
}
.funding-icon {
  min-height: 230px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  position: relative;
  z-index: 1;
}
.funding-icon svg { width: 160px; height: 160px; }
.funding-card h2 { color: #fff; margin: 0 0 18px; font-size: clamp(30px, 3vw, 48px); }
.funding-card p { color: rgba(255,255,255,.82); margin: 0; font-size: 18px; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 2vw, 30px); }
.news-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--pr-border);
  box-shadow: 0 15px 40px rgba(4, 50, 111, .06);
  display: flex;
  flex-direction: column;
}
.news-thumb {
  height: 190px;
  background:
    linear-gradient(135deg, rgba(4,50,111,.88), rgba(10,75,154,.8)),
    radial-gradient(circle at 25% 20%, rgba(255,194,51,.55), transparent 30%);
  position: relative;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-content { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.news-meta { color: var(--pr-muted); font-size: 13px; margin-bottom: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { margin: 0 0 12px; color: var(--pr-navy); font-size: 22px; line-height: 1.28; }
.news-card p { color: var(--pr-muted); margin: 0 0 18px; }
.news-card .card-link { margin-top: auto; }

/* Content pages */
.page-hero { padding: 70px 0 50px; background: linear-gradient(180deg, #fff, var(--pr-soft)); }
.page-hero h1 { margin: 0; color: var(--pr-navy); font-size: clamp(36px, 5vw, 64px); line-height: 1.12; letter-spacing: .05em; }
.content-area { padding: 62px 0 88px; }
.entry-content { max-width: 900px; }
.entry-content h2, .entry-content h3 { color: var(--pr-navy); line-height: 1.25; }
.entry-content p, .entry-content li { color: #384151; }
.entry-content a { font-weight: 700; }
.entry-content img { border-radius: 18px; }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.post-list article { padding: 28px; border: 1px solid var(--pr-border); border-radius: 22px; background: #fff; box-shadow: 0 12px 35px rgba(4,50,111,.05); }
.post-list h2 { margin: 0 0 10px; }
.post-list h2 a { color: var(--pr-navy); }
.pagination { margin-top: 40px; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], textarea, select {
  width: 100%;
  border: 1px solid var(--pr-border);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--pr-text);
}
label { font-weight: 700; color: var(--pr-navy); display: block; margin-bottom: 8px; }

/* Footer */
.site-footer {
  background: var(--pr-navy-dark);
  color: rgba(255,255,255,.80);
  padding: 58px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 36px; margin-bottom: 38px; }
.footer-brand { color: #fff; font-weight: 900; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.site-footer h3 { color: #fff; margin: 0 0 14px; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { margin: 0; max-width: 570px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 9px 0; }
.site-footer a { color: rgba(255,255,255,.84); }
.site-footer a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }

@media (max-width: 1180px) {
  .header-inner { min-height: 82px; }
  .nav-wrap { position: fixed; left: 24px; right: 24px; top: 88px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--pr-border); box-shadow: var(--pr-shadow); display: none; flex-direction: column; align-items: stretch; gap: 18px; }
  .nav-wrap.is-open { display: flex; }
  .main-navigation ul { display: block; }
  .main-navigation a { display: flex; width: 100%; justify-content: space-between; border-radius: 12px; }
  .main-navigation a:hover { background: var(--pr-soft); }
  .main-navigation ul ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; display: block; }
  .header-actions { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 660px; }
  .cards-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-section, .funding-card { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 760px) {
  .pr-container { width: min(100% - 32px, var(--pr-container)); }
  .site-branding { min-width: auto; }
  .pr-logo-fallback { font-size: 20px; letter-spacing: .06em; }
  .pr-logo-mark { width: 38px; height: 38px; }
  .hero { padding: 56px 0 66px; }
  .hero h1 { letter-spacing: .055em; margin-bottom: 28px; }
  .hero p { margin-bottom: 34px; }
  .cards-grid, .news-grid, .post-list, .footer-grid { grid-template-columns: 1fr; }
  .logo-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-header { display: block; }
  .feature-card { min-height: auto; }
  .footer-bottom { display: block; }
}

/* Clean theme additions: no demo menus/content are rendered unless you create them. */
.footer-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}
.footer-nav ul,
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-social a,
.footer-nav a { color: rgba(255,255,255,.78); }
.footer-social a:hover,
.footer-nav a:hover { color: #fff; }
.builder-page { width: 100%; }
.builder-entry { margin: 0; }
.builder-entry > *:first-child { margin-top: 0; }
@media (max-width: 760px) {
  .footer-clean { align-items: flex-start; flex-direction: column; }
}
