/*
Theme Name: Dr. Saroj Ortho Pro - Medical & Surgeon Theme
Theme URI: https://sarose.com.np
Author: Dr. Saroj Kumar Suwal & Engineering Team
Author URI: https://sarose.com.np
Description: High-performance, lightweight, SEO-optimized medical & orthopedic surgeon WordPress theme for Dr. Saroj Kumar Suwal (NMC 11224). Features built-in Magazine Grid, Classic Post Grid, Featured Tabs, Treatment Guides, Appointment Booking, and Header/Footer builder. Fully compatible with Elementor, Gutenberg, Beaver Builder, and Divi.
Version: 1.0.2
Requires at least: 5.8
Tested up to: 6.8
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: saroj-ortho
Tags: medical, health, doctor, surgeon, orthopedic, appointment-booking, responsive-layout, custom-header, custom-menu, featured-images, flexible-header, footer-widgets, translation-ready, rtl-language-support
*/

:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;
  --surface-color: #ffffff;
  --surface-alt: #f8fafc;
  --background-color: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;
  --font-sans: 'Plus Jakarta Sans', 'Inter', 'Mukta', system-ui, -apple-system, sans-serif;
  --font-heading: 'Cabinet Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
}

body.dark-mode {
  --surface-color: #0f172a;
  --surface-alt: #1e293b;
  --background-color: #020617;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-color: #1e293b;
  --border-dark: #334155;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--background-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Layout Utilities */
.saroj-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.saroj-grid {
  display: grid;
  gap: 1.5rem;
}

/* Dynamic Grid Classes */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\\:col-span-7 { grid-column: span 7 / span 12; }
  .lg\\:col-span-5 { grid-column: span 5 / span 12; }
  .lg\\:col-span-8 { grid-column: span 8 / span 12; }
  .lg\\:col-span-4 { grid-column: span 4 / span 12; }
}

/* Flex Utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Display & Spacing */
.hidden { display: none; }
@media (min-width: 640px) { .sm\\:block { display: block; } .sm\\:inline-block { display: inline-block; } }
@media (min-width: 1024px) { .lg\\:flex { display: flex; } .lg\\:hidden { display: none; } }

/* Cards & Surfaces */
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-950 { background-color: #020617; }
.bg-sky-50 { background-color: #f0f9ff; }
.bg-sky-600 { background-color: #0284c7; }
.bg-sky-700 { background-color: #0369a1; }
.text-white { color: #ffffff; }
.text-slate-900 { color: #0f172a; }
.text-slate-700 { color: #334155; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }
.text-sky-600 { color: #0284c7; }
.text-sky-400 { color: #38bdf8; }
.text-emerald-400 { color: #34d399; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; border-style: solid; border-color: var(--border-color); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: var(--border-color); }
.border-t { border-top-width: 1px; border-top-style: solid; border-color: var(--border-color); }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-700 { border-color: #334155; }
.border-slate-800 { border-color: #1e293b; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Transitions & Interactions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\\:bg-sky-700:hover { background-color: #0369a1; }
.hover\\:bg-sky-500:hover { background-color: #0ea5e9; }
.hover\\:text-sky-600:hover { color: #0284c7; }
.hover\\:text-white:hover { color: #ffffff; }

/* Off-canvas mobile menu */
#sarojOffcanvas {
  transition: transform 0.3s ease-in-out;
}
.translate-x-full {
  transform: translateX(100%);
}

/* WordPress Standard Content Compatibility */
.entry-content {
  line-height: 1.8;
}
.entry-content p {
  margin-bottom: 1.25rem;
}
.entry-content h2, .entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
