/*
Theme Name: WebifyTheme
Theme URI: https://webifyinfotech.com
Author: WebifyInfotech Team
Author URI: https://webifyinfotech.com
Description: Premium, modern, and conversion-focused WordPress theme for WebifyInfotech — Ideas to Impact. Built for website development and digital marketing agencies with complete Elementor and Rank Math SEO compatibility.
Version: 1.0.17
Tested up to: 6.7
Requires at least: 6.0
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: webifytheme
Tags: agency, business, portfolio, elementor, full-width-template, seo-optimized, translation-ready, custom-menu, custom-logo
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES / DESIGN SYSTEM TOKENS
   Inspired by WebifyInfotech Brand Identity:
   Deep Navy, Electric Blue, Radiant Cyan, Magenta/Purple Accents
   ========================================================================== */

:root {
  /* Brand Primary Colors */
  --webify-navy-950: #050b1a;
  --webify-navy-900: #0a1329;
  --webify-navy-800: #101c3d;
  --webify-navy-700: #192b57;
  
  /* Vibrant Tech Blues & Cyan */
  --webify-blue-primary: #1958f7;
  --webify-blue-electric: #0d6efd;
  --webify-blue-deep: #0b3fa8;
  --webify-cyan: #00d4ff;
  --webify-cyan-glow: #38bdf8;
  
  /* Dynamic Accents */
  --webify-purple: #8b5cf6;
  --webify-magenta: #c026d3;
  --webify-pink: #ec4899;
  --webify-orange: #f97316;
  --webify-emerald: #10b981;

  /* Neutrals & Surfaces */
  --webify-white: #ffffff;
  --webify-slate-50: #f8fafc;
  --webify-slate-100: #f1f5f9;
  --webify-slate-200: #e2e8f0;
  --webify-slate-300: #cbd5e1;
  --webify-slate-400: #94a3b8;
  --webify-slate-500: #64748b;
  --webify-slate-600: #475569;
  --webify-slate-700: #334155;
  --webify-slate-800: #1e293b;
  --webify-slate-900: #0f172a;

  /* Semantic UI Tokens */
  --color-bg-body: var(--webify-white);
  --color-bg-surface: var(--webify-white);
  --color-bg-subtle: var(--webify-slate-50);
  --color-bg-dark: var(--webify-navy-950);
  --color-bg-card-dark: var(--webify-navy-900);
  
  --color-text-primary: var(--webify-slate-900);
  --color-text-secondary: var(--webify-slate-600);
  --color-text-muted: var(--webify-slate-400);
  --color-text-light: #f8fafc;
  --color-text-light-muted: #94a3b8;
  
  --color-border-subtle: var(--webify-slate-200);
  --color-border-dark: rgba(255, 255, 255, 0.12);
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #1958f7 0%, #00d4ff 100%);
  --grad-primary-hover: linear-gradient(135deg, #1042c4 0%, #00b8dc 100%);
  --grad-accent: linear-gradient(135deg, #8b5cf6 0%, #c026d3 100%);
  --grad-brand-glow: linear-gradient(135deg, #00d4ff 0%, #1958f7 50%, #c026d3 100%);
  --grad-dark-surface: linear-gradient(180deg, rgba(10, 19, 41, 0.95) 0%, rgba(5, 11, 26, 0.98) 100%);
  --grad-subtle-glow: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.12) 0%, rgba(25, 88, 247, 0.05) 50%, transparent 80%);

  /* Typography */
  --font-family-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Fluid Typography Scale */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: clamp(2.5rem, 4vw, 3.5rem); /* 40-56px */
  --font-size-6xl: clamp(2.85rem, 5vw, 4.25rem); /* 45-68px */

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Layout & Spacing */
  --container-max-width: 1280px;
  --container-padding: clamp(1rem, 3vw, 2rem);
  --section-spacing-y: clamp(4rem, 8vw, 7.5rem);
  --section-spacing-sm: clamp(2.5rem, 5vw, 4rem);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 8px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 40px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow-blue: 0 10px 30px -5px rgba(25, 88, 247, 0.3);
  --shadow-glow-cyan: 0 10px 30px -5px rgba(0, 212, 255, 0.35);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   MODERN CSS 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%;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

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

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

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

a {
  color: var(--webify-blue-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--webify-blue-deep);
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

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

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

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--webify-blue-primary);
  outline-offset: 3px;
}

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