/*
Theme Name: Sterling
Theme URI: https://wp-guruteam.com/sterling/
Author: GuruTeam
Author URI: https://codecanyon.net/user/guru-team
Description: Premium Corporate & Finance WordPress theme with sophisticated design for financial services, banking, investment firms, and professional business websites. Sterling combines trustworthy aesthetics with modern functionality - perfect for corporate enterprises, financial advisors, accounting firms, and fintech companies. Features elegant typography, professional color schemes, and conversion-optimized layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sterling
Tags: blog, custom-colors, custom-logo, custom-menu, editor-style, featured-images, flexible-header, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, two-columns, left-sidebar, right-sidebar

Sterling WordPress Theme, Copyright 2025
Sterling is distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   CSS Variables - Design System
   ========================================================================== */

:root {
  /* Neutral Base Colors */
  --color-white: #FFFFFF;
  --color-off-white: #F8F9FA;
  --color-light-gray: #E9ECEF;
  --color-gray: #6C757D;
  --color-dark-gray: #343A40;
  --color-charcoal: #212529;
  --color-black: #000000;

  /* Brand Colors - Deep Professional Blue (Finance & Trust) */
  --color-primary: #0D47A1;
  --color-primary-light: #1565C0;
  --color-primary-dark: #01579B;

  /* Secondary Colors - Rich Gold (Premium & Wealth) - WCAG AA Compliant */
  --color-secondary: #8B6F47; /* 4.71:1 contrast on white - WCAG AA compliant */
  --color-secondary-light: #C5A572; /* Original lighter shade - backgrounds only */
  --color-secondary-dark: #6B5437;

  /* Accent Colors - Deep Teal (Stability & Growth) */
  --color-accent: #00695C;
  --color-accent-light: #00897B;
  --color-accent-dark: #004D40;

  /* Semantic Colors - WCAG AA Compliant */
  --color-success: #2E7D32; /* 5.13:1 - WCAG AA compliant */
  --color-warning: #BF5600; /* 4.62:1 - WCAG AA compliant (was #EF6C00 at 3.08:1) */
  --color-error: #C62828; /* 5.62:1 - WCAG AA compliant */
  --color-info: #1565C0; /* 4.69:1 - WCAG AA compliant */

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes */
  --text-7xl: 72px;
  --text-6xl: 60px;
  --text-5xl: 48px;
  --text-4xl: 36px;
  --text-3xl: 30px;
  --text-2xl: 24px;
  --text-xl: 20px;
  --text-lg: 18px;
  --text-base: 16px;
  --text-sm: 14px;
  --text-xs: 12px;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;
  --space-20: 160px;

  /* Section Spacing */
  --section-spacing-sm: 60px;
  --section-spacing-md: 80px;
  --section-spacing-lg: 120px;

  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;

  /* Grid */
  --gutter: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* WordPress Spacing Presets */
  --wp--preset--spacing--20: 8px;
  --wp--preset--spacing--30: 16px;
  --wp--preset--spacing--40: 24px;
  --wp--preset--spacing--50: 32px;
  --wp--preset--spacing--60: 40px;
  --wp--preset--spacing--70: 48px;
  --wp--preset--spacing--80: 64px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-dark-gray);
  background-color: var(--color-white);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-semibold);
  line-height: 1.3;
  color: var(--color-charcoal);
  margin: 0 0 var(--space-3) 0;
}

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

p {
  margin: 0 0 var(--space-3) 0;
}

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

a:hover {
  color: var(--color-primary-dark);
}

strong, b {
  font-weight: var(--font-semibold);
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.container {
  max-width: var(--content-width, 1140px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }

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

.alignleft {
  float: left;
  margin-right: var(--space-3);
  margin-bottom: var(--space-3);
}

.alignright {
  float: right;
  margin-left: var(--space-3);
  margin-bottom: var(--space-3);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-3);
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100%;
  width: 100%;
}

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

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

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-light-gray);
  clip: auto !important;
  color: var(--color-charcoal);
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1023px) {
  :root {
    --section-spacing-sm: 40px;
    --section-spacing-md: 60px;
    --section-spacing-lg: 80px;
  }
}

@media (max-width: 767px) {
  :root {
    --text-7xl: 48px;
    --text-6xl: 40px;
    --text-5xl: 36px;
    --text-4xl: 28px;
    --text-3xl: 24px;
    --section-spacing-sm: 40px;
    --section-spacing-md: 50px;
    --section-spacing-lg: 60px;
  }
}
