/*
Theme Name: The On Demand App
Theme URI: https://theondemandapp.com
Author: The On Demand App Team
Author URI: https://theondemandapp.com
Description: Production-ready, SEO-dominant, high-conversion WordPress theme for The On Demand App — a billion-dollar SaaS-level on demand app development company. Built with modern design principles inspired by Stripe, Vercel, and Linear.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://theondemandapp.com/license
Text Domain: theondemandapp
Tags: business, saas, technology, responsive, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties — Design System
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-primary:        #6C4DF6;
  --color-primary-dark:   #5539e0;
  --color-primary-light:  #7c5cf8;
  --color-secondary:      #8B5CF6;
  --color-accent:         #A855F7;
  --color-accent-glow:    rgba(168, 85, 247, 0.35);
  --color-primary-glow:   rgba(108, 77, 246, 0.35);

  /* Background Colors */
  --bg-base:              #0F172A;
  --bg-surface:           #1E293B;
  --bg-surface-2:         #263349;
  --bg-card:              #1a2540;
  --bg-card-hover:        #1f2e4d;
  --bg-elevated:          #243351;
  --bg-overlay:           rgba(15, 23, 42, 0.85);

  /* Text Colors */
  --text-primary:         #F8FAFC;
  --text-secondary:       #CBD5E1;
  --text-muted:           #94A3B8;
  --text-subtle:          #64748B;
  --text-link:            #818CF8;
  --text-link-hover:      #A5B4FC;

  /* Border Colors */
  --border-default:       rgba(148, 163, 184, 0.12);
  --border-strong:        rgba(148, 163, 184, 0.25);
  --border-focus:         #6C4DF6;

  /* Gradient */
  --gradient-primary:     linear-gradient(135deg, #6C4DF6 0%, #A855F7 100%);
  --gradient-hero:        linear-gradient(135deg, #0F172A 0%, #1a1040 50%, #0F172A 100%);
  --gradient-card:        linear-gradient(145deg, #1a2540 0%, #1e2d4a 100%);
  --gradient-glow:        radial-gradient(ellipse at center, rgba(108, 77, 246, 0.15) 0%, transparent 70%);
  --gradient-text:        linear-gradient(135deg, #818CF8 0%, #A855F7 50%, #EC4899 100%);

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Typography */
  --font-heading:  'Inter', 'Sora', system-ui, -apple-system, sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Border Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg:    0 10px 25px rgba(0,0,0,0.5), 0 4px 10px rgba(0,0,0,0.3);
  --shadow-xl:    0 20px 50px rgba(0,0,0,0.6);
  --shadow-glow:  0 0 40px rgba(108, 77, 246, 0.3);
  --shadow-card:  0 4px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1280px;
  --container-2xl: 1440px;
  --container-max: 1600px;

  /* Header */
  --header-height:    72px;
  --topbar-height:    40px;
  --total-header:     112px;
  --z-topbar:         100;
  --z-header:         200;
  --z-mega-menu:      300;
  --z-mobile-menu:    400;
  --z-modal:          500;
  --z-toast:          600;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 1280px) {
  .container { padding-inline: var(--space-8); }
}

@media (min-width: 1600px) {
  .container { max-width: var(--container-2xl); }
}

.section {
  padding-block: var(--space-12);   /* mobile  — 48px */
}

@media (min-width: 768px) {
  .section { padding-block: var(--space-16); }  /* tablet  — 64px */
}

@media (min-width: 1024px) {
  .section { padding-block: var(--space-24); }  /* desktop — 96px */
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(108, 77, 246, 0.12);
  border: 1px solid rgba(108, 77, 246, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .section-subtitle {
  margin-inline: auto;
}

/* ==========================================================================
   Button System
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.6875rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}

.btn:hover::before {
  background: rgba(255,255,255,0.07);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(108, 77, 246, 0);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow), 0 4px 20px rgba(108, 77, 246, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(108, 77, 246, 0.5);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

/* ==========================================================================
   Card System
   ========================================================================== */

.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(108, 77, 246, 0.35);
  box-shadow: var(--shadow-card), 0 0 30px rgba(108, 77, 246, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   Badge / Tag System
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge-primary {
  background: rgba(108, 77, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(108, 77, 246, 0.25);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   Grid Utilities
   ========================================================================== */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ==========================================================================
   WordPress Core
   ========================================================================== */

.wp-block-image img { border-radius: var(--radius-lg); }

.alignleft { float: left; margin-right: var(--space-6); }
.alignright { float: right; margin-left: var(--space-6); }
.aligncenter { text-align: center; margin-inline: auto; }

.wp-caption { background: var(--bg-surface); border-radius: var(--radius-md); padding: var(--space-2); }
.wp-caption-text { font-size: var(--text-sm); color: var(--text-muted); text-align: center; }

/* ==========================================================================
   Scrollbar
   ========================================================================== */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(108, 77, 246, 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(108, 77, 246, 0.7); }

/* ==========================================================================
   Selection
   ========================================================================== */

::selection {
  background: rgba(108, 77, 246, 0.35);
  color: var(--text-primary);
}
*/
