/*
Theme Name: MJ Homes Luxury Real Estate
Theme URI: https://mjhomes.co.in/
Author: MJ Homes & Development Team
Author URI: https://mjhomes.co.in/
Description: A premium, ultra-fast, modern WordPress real estate theme custom-crafted for MJ Homes (mjhomes.co.in). Fully integrated with the Essential Real Estate (ERE) plugin, featuring WhatsApp lead capture, Kerala cent/sq.ft metrics, NH-66 frontage highlights, responsive mobile drawer, and high-conversion property inquiry tools.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
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: mjtheme
Tags: real-estate, e-commerce, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, grid-layout, one-column, two-columns
*/

/* ==========================================================================
   CSS Custom Properties & Design Tokens
   ========================================================================== */
:root {
  /* Brand Colors */
  --mj-primary: #0b1e36;
  --mj-primary-dark: #071322;
  --mj-primary-light: #16365c;
  --mj-primary-subtle: #ebf3fb;
  
  --mj-accent: #c59b27;
  --mj-accent-hover: #aa821c;
  --mj-accent-light: #fef7e7;
  
  --mj-secondary: #059669;
  --mj-secondary-light: #ecfdf5;
  
  --mj-whatsapp: #25d366;
  --mj-whatsapp-dark: #128c7e;
  
  --mj-danger: #ef4444;
  --mj-danger-light: #fee2e2;
  
  /* Neutral Grayscale */
  --mj-dark: #0f172a;
  --mj-text: #334155;
  --mj-text-light: #64748b;
  --mj-text-muted: #94a3b8;
  
  --mj-bg: #f8fafc;
  --mj-card-bg: #ffffff;
  --mj-border: #e2e8f0;
  --mj-border-light: #f1f5f9;
  
  /* Typography */
  --mj-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mj-font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  
  /* Spacing */
  --mj-container: 1240px;
  --mj-container-wide: 1380px;
  --mj-container-narrow: 900px;
  
  /* Shadows */
  --mj-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --mj-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --mj-shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --mj-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --mj-shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  
  /* Border Radius */
  --mj-radius-sm: 6px;
  --mj-radius: 10px;
  --mj-radius-lg: 16px;
  --mj-radius-xl: 24px;
  --mj-radius-full: 9999px;
  
  /* Transitions */
  --mj-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--mj-font-sans);
  color: var(--mj-text);
  background-color: var(--mj-bg);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea,
a {
  touch-action: manipulation;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mj-font-heading);
  color: var(--mj-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--mj-primary-light);
  text-decoration: none;
  transition: var(--mj-transition);
}

a:hover {
  color: var(--mj-accent);
}

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

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

/* Base Container */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

.mj-container {
  width: 100%;
  max-width: var(--mj-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.mj-container-wide {
  max-width: var(--mj-container-wide);
}

.mj-container-narrow {
  max-width: var(--mj-container-narrow);
}

/* Nav & Component List Resets */
ul.mj-nav-menu,
ul.mj-nav-menu ul,
ul.sub-menu,
ul.children,
ul.mj-drawer-menu,
ul.mj-footer-links,
ul.mj-sidebar-list,
.mj-breadcrumbs-list,
.mj-search-tabs {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Accessibility */
.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;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

