/*
Theme Name: DAG Real Estate
Theme URI: https://dagrealestate.com
Author: DAG Real Estate Development Team
Author URI: https://dagrealestate.com
Description: An ultra-lightweight, blazing fast, modern custom WordPress theme designed specifically for real estate agencies, brokers, and property listings. Features zero-framework bloat, native property custom post types, dynamic instant filtering, Schema.org SEO structured data, and interactive mortgage calculator.
Version: 1.0.0
Requires at least: 6.0
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: dag-real-estate
Tags: real-estate, custom-post-types, custom-colors, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
  /* Color Palette - Premium Real Estate Theme */
  --dag-primary: #0f172a;        /* Deep Slate / Navy */
  --dag-primary-hover: #1e293b;
  --dag-secondary: #c59b27;      /* Warm Gold Accent */
  --dag-secondary-hover: #b0881d;
  --dag-secondary-light: #fef9ee;
  --dag-accent: #2563eb;         /* Modern Royal Blue */
  --dag-accent-hover: #1d4ed8;
  --dag-success: #10b981;        /* Emerald Green for 'For Sale' */
  --dag-success-light: #ecfdf5;
  --dag-danger: #ef4444;
  --dag-warning: #f59e0b;
  
  /* Neutral Colors */
  --dag-bg: #f8fafc;             /* Ultra light canvas */
  --dag-surface: #ffffff;        /* Pure white cards */
  --dag-surface-alt: #f1f5f9;    /* Light slate fill */
  --dag-border: #e2e8f0;         /* Subtle borders */
  --dag-border-focus: #cbd5e1;
  --dag-text-primary: #0f172a;   /* High contrast dark slate */
  --dag-text-secondary: #475569; /* Muted copy */
  --dag-text-muted: #94a3b8;     /* Inactive/meta */
  --dag-text-inverse: #ffffff;
  
  /* Typography */
  --dag-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --dag-font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Radii & Shadows */
  --dag-radius-sm: 6px;
  --dag-radius-md: 10px;
  --dag-radius-lg: 16px;
  --dag-radius-full: 9999px;
  
  --dag-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --dag-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --dag-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --dag-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --dag-shadow-glow: 0 0 25px rgba(197, 155, 39, 0.2);
  
  /* Transitions */
  --dag-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --dag-transition-fast: all 0.15s ease;
  
  /* Layout */
  --dag-container: 1240px;
  --dag-container-wide: 1400px;
  --dag-header-height: 80px;
}

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

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

body {
  font-family: var(--dag-font-sans);
  background-color: var(--dag-bg);
  color: var(--dag-text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--dag-font-heading);
  color: var(--dag-text-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--dag-text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--dag-accent);
  text-decoration: none;
  transition: var(--dag-transition-fast);
}

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

img, svg, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

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

button, [type="button"], [type="submit"] {
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   Core Layout Container
   ========================================================================== */
.dag-container {
  width: 100%;
  max-width: var(--dag-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

/* Screen reader only utility */
.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;
}

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