/*
Theme Name: Dharmesh Prime
Theme URI: https://example.com/dharmesh-prime
Author: OpenAI
Author URI: https://openai.com
Description: A modern, responsive WordPress theme with a custom theme options panel and mobile-friendly homepage layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dharmesh-prime
Tags: custom-logo, custom-menu, featured-images, theme-options, blog, one-column, two-columns, responsive-layout
*/

:root {
  --dp-primary: #4f46e5;
  --dp-secondary: #111827;
  --dp-accent: #f59e0b;
  --dp-bg: #ffffff;
  --dp-surface: #f9fafb;
  --dp-text: #1f2937;
  --dp-muted: #6b7280;
  --dp-border: #e5e7eb;
  --dp-radius: 18px;
  --dp-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  --dp-max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--dp-text);
  background: var(--dp-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--dp-primary);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--dp-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-branding img {
  border-radius: 12px;
}

.site-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.site-description {
  margin: 0;
  color: var(--dp-muted);
  font-size: 0.92rem;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: var(--dp-secondary);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--dp-surface);
  padding: 10px 14px;
  cursor: pointer;
}

.hero {
  padding: 96px 0 64px;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--dp-primary);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.1;
  color: var(--dp-secondary);
}

.hero p {
  font-size: 1.08rem;
  color: var(--dp-muted);
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--dp-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.22);
}

.btn-secondary {
  background: #fff;
  color: var(--dp-secondary);
  border: 1px solid var(--dp-border);
}

.hero-card {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 28px;
  box-shadow: var(--dp-shadow);
  padding: 28px;
}

.stat-grid,
.feature-grid,
.post-grid,
.footer-grid {
  display: grid;
  gap: 20px;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.stat-card,
.feature-card,
.post-card,
.footer-card,
.content-card {
  background: #fff;
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow);
}

.stat-card {
  padding: 18px;
}

.stat-card strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--dp-secondary);
}

.section {
  padding: 68px 0;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--dp-secondary);
}

.section-text {
  margin: 0 auto 28px;
  max-width: 720px;
  color: var(--dp-muted);
}

.text-center {
  text-align: center;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.post-card,
.content-card {
  padding: 24px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(79, 70, 229, 0.12);
  color: var(--dp-primary);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card h3,
.feature-card h3,
.content-card h1,
.content-card h2,
.content-card h3 {
  margin-top: 0;
  color: var(--dp-secondary);
}

.content-wrap {
  padding: 56px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.widget-area {
  display: grid;
  gap: 20px;
}

.widget {
  background: #fff;
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow);
  padding: 20px;
}

.entry-meta,
.entry-footer,
.post-meta {
  color: var(--dp-muted);
  font-size: 0.95rem;
}

.site-footer {
  background: var(--dp-secondary);
  color: rgba(255, 255, 255, 0.9);
  padding: 56px 0 28px;
  margin-top: 32px;
}

.footer-grid {
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  align-items: start;
}

.footer-title {
  margin: 0 0 12px;
  color: #fff;
}

.footer-menu,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 24px;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

.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;
}

.alignwide {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

@media (max-width: 991px) {
  .hero-grid,
  .content-grid,
  .footer-grid,
  .feature-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 10px;
  }

  .main-navigation.is-open {
    display: flex;
  }

  .main-navigation ul {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-card,
  .feature-card,
  .post-card,
  .content-card,
  .widget,
  .stat-card {
    padding: 20px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
