/*
Theme Name: Shahganj Theme
Theme URI: https://shahganj.com/theme
Author: Shahganj.com Developer Team
Author URI: https://shahganj.com
Description: Premium WordPress theme for Shahganj.com with a luxury, responsive, SEO-friendly experience for invitations, services, booking, shopping, vendors, AI tools, and more.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shahganj-theme
Tags: luxury, one-column, custom-colors, custom-logo, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready, e-commerce
*/

:root {
  --shahganj-primary: #d4af37;
  --shahganj-secondary: #800000;
  --shahganj-bg: #fffdf6;
  --shahganj-surface: #ffffff;
  --shahganj-surface-alt: #f6efe1;
  --shahganj-text: #171717;
  --shahganj-muted: #5d5d5d;
  --shahganj-border: rgba(0, 0, 0, 0.08);
  --shahganj-radius: 18px;
  --shahganj-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  --shahganj-font-heading: "Playfair Display", Georgia, serif;
  --shahganj-font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --shahganj-bg: #070707;
  --shahganj-surface: #121212;
  --shahganj-surface-alt: #1c1c1c;
  --shahganj-text: #f5f5f5;
  --shahganj-muted: #b2b2b2;
  --shahganj-border: rgba(255, 255, 255, 0.08);
  --shahganj-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--shahganj-font-body);
  background: var(--shahganj-bg);
  color: var(--shahganj-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--shahganj-font-heading);
  line-height: 1.2;
  margin-top: 0;
  color: var(--shahganj-text);
}
p { margin-top: 0; }

.container {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  word-wrap: normal;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--shahganj-border);
}
:root[data-theme="dark"] .site-header {
  background: rgba(7, 7, 7, 0.86);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-title {
  font-size: 1.1rem;
  margin: 0;
  color: var(--shahganj-secondary);
}
.site-tagline {
  font-size: 0.8rem;
  color: var(--shahganj-muted);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.search-form {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  background: var(--shahganj-surface);
  border: 1px solid var(--shahganj-border);
  border-radius: 999px;
  min-width: min(18rem, 45vw);
}
.search-form input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: var(--shahganj-text);
}
.nav-toggle, .theme-toggle {
  border: 1px solid var(--shahganj-border);
  background: var(--shahganj-surface);
  color: var(--shahganj-text);
  border-radius: 999px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
}

.site-nav {
  border-top: 1px solid var(--shahganj-border);
  background: rgba(255, 255, 255, 0.6);
}
:root[data-theme="dark"] .site-nav {
  background: rgba(18, 18, 18, 0.6);
}
.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.8rem 0;
  margin: 0;
  justify-content: center;
}
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  background: var(--shahganj-surface);
  border: 1px solid var(--shahganj-border);
  border-radius: 14px;
  box-shadow: var(--shahganj-shadow);
  padding: 0.7rem;
  min-width: 180px;
}
.nav-menu li {
  position: relative;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  display: block;
}
.nav-menu a {
  font-size: 0.95rem;
  color: var(--shahganj-muted);
  padding: 0.25rem 0.4rem;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--shahganj-secondary);
}

.site-main {
  flex: 1;
  padding: 2rem 0 3.5rem;
}

.hero {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(128, 0, 0, 0.18)), url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1400&q=80') center/cover;
  color: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shahganj-shadow);
  margin-bottom: 2rem;
}
.hero-content {
  padding: 4rem 1.25rem;
  display: grid;
  gap: 1.25rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28));
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: #fff;
  margin-bottom: 0.25rem;
}
.hero-copy {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.25rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255,255,255,0.09);
  font-size: 0.83rem;
}

.section-block {
  margin-bottom: 2rem;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--shahganj-border);
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
}
.section-tag {
  color: var(--shahganj-secondary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.glass-panel, .premium-card {
  background: var(--shahganj-surface);
  border: 1px solid var(--shahganj-border);
  border-radius: var(--shahganj-radius);
  box-shadow: var(--shahganj-shadow);
}
.premium-card {
  padding: 1.15rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.premium-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.12);
}

.service-card, .feature-card, .dashboard-card, .info-card {
  padding: 1.15rem;
  background: var(--shahganj-surface);
  border: 1px solid var(--shahganj-border);
  border-radius: var(--shahganj-radius);
  box-shadow: var(--shahganj-shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--shahganj-primary), #ebb84b);
  color: #111;
}
.btn-secondary {
  background: var(--shahganj-secondary);
  color: #fff;
}
.btn-outline {
  border-color: var(--shahganj-border);
  color: var(--shahganj-text);
  background: transparent;
}

.elevated-panel {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(255, 255, 255, 0.9));
  border: 1px solid var(--shahganj-border);
  border-radius: 24px;
  padding: 1.25rem;
}
:root[data-theme="dark"] .elevated-panel {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(18, 18, 18, 0.96));
}

.widget-area {
  display: grid;
  gap: 1rem;
}
.widget {
  background: var(--shahganj-surface);
  border: 1px solid var(--shahganj-border);
  border-radius: var(--shahganj-radius);
  padding: 1rem;
  box-shadow: var(--shahganj-shadow);
}

.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.entry-card, .post-card {
  background: var(--shahganj-surface);
  border: 1px solid var(--shahganj-border);
  border-radius: var(--shahganj-radius);
  padding: 1.2rem;
  box-shadow: var(--shahganj-shadow);
  margin-bottom: 1rem;
}
.post-meta, .entry-meta {
  color: var(--shahganj-muted);
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.site-footer {
  padding: 2.6rem 0 1.4rem;
  background: #0f0f0f;
  color: #cfcfcf;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 1.2rem;
}
.site-footer h3, .site-footer h4 {
  color: #fff;
}
.site-footer a { color: #e8d7a2; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #9e9e9e;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-footer .container,
  .content-layout {
    grid-template-columns: 1fr;
  }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-bar {
    flex-wrap: wrap;
  }
  .search-form {
    order: 3;
    width: 100%;
    min-width: 0;
  }
  .site-nav {
    display: none;
  }
  .site-nav.is-open {
    display: block;
  }
  .nav-menu {
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem 0 1rem;
  }
  .nav-menu .sub-menu {
    position: static;
    display: none;
    margin-top: 0.35rem;
  }
  .grid-2, .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 2.2rem 1rem;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (min-width: 721px) {
  .nav-toggle {
    display: none;
  }
}
