/*
Theme Name: SolarTech Energy
Theme URI: https://solartech-energy.in
Author: SolarTech Energy Web Team
Author URI: https://solartech-energy.in
Description: Premium, high-converting, SEO-optimized WordPress theme for SolarTech Energy - Solar EPC and Rooftop Solar Specialists in Andhra Pradesh, India. Fully compatible with PM Surya Ghar Muft Bijli Yojana, residential, commercial, and industrial solar projects.
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: solartech-energy
Tags: solar-energy, clean-energy, high-conversion, lead-generation, mobile-first, seo-optimized, responsive-layout, custom-post-types
*/

/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand Colors */
  --color-primary: #22C55E;         /* Vibrant Solar Green */
  --color-primary-dark: #16A34A;    /* Forest Green (Hover) */
  --color-primary-darker: #15803D;  /* Deep Emerald */
  --color-primary-light: #86EFAC;   /* Soft Green */
  --color-primary-subtle: #DCFCE7;  /* Ultra-light green tint */
  --color-primary-glow: rgba(34, 197, 94, 0.25);

  --color-dark: #0F172A;           /* Deep Corporate Slate */
  --color-dark-surface: #1E293B;   /* Slate Navy Surface */
  --color-dark-muted: #334155;     /* Dark Slate Border */
  --color-dark-card: #182234;      /* High-contrast dark card */

  --color-accent: #FACC15;         /* Sun Energy Gold/Yellow */
  --color-accent-dark: #EAB308;    /* Amber Gold */
  --color-accent-subtle: #FEF08A;  /* Soft Warm Yellow */

  --color-bg: #F8FAFC;             /* Clean Light Background */
  --color-bg-alt: #F1F5F9;         /* Section Alternate Light */
  --color-surface: #FFFFFF;        /* Pure White Surface */
  --color-border: #E2E8F0;         /* Subtle Gray Border */
  --color-border-hover: #CBD5E1;   /* Hover Border */

  --color-text-main: #0F172A;      /* High-contrast Main Text */
  --color-text-muted: #64748B;     /* Subtitle / Secondary Text */
  --color-text-light: #94A3B8;     /* Inactive / Placeholder Text */
  --color-text-white: #FFFFFF;

  --color-whatsapp: #25D366;       /* WhatsApp Brand Green */
  --color-whatsapp-dark: #128C7E;
  --color-danger: #EF4444;
  --color-success: #22C55E;
  --color-info: #3B82F6;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px var(--color-primary-glow);
  --shadow-gold-glow: 0 0 25px rgba(250, 204, 21, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(12px);
  --glass-dark-bg: rgba(15, 23, 42, 0.88);
  --glass-dark-border: rgba(255, 255, 255, 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 860px;
  --container-wide: 1380px;
  --header-height: 80px;
  --topbar-height: 40px;
}

/* ==========================================================================
   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%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
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: 1rem;
  color: var(--color-text-muted);
}
p:last-child {
  margin-bottom: 0;
}

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

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

ul, ol {
  list-style-position: inside;
}

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

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

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

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

/* Section Spacing */
.ste-section {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
}

.ste-section--alt {
  background-color: var(--color-bg-alt);
}

.ste-section--dark {
  background-color: var(--color-dark);
  color: var(--color-text-white);
}

.ste-section--dark h1,
.ste-section--dark h2,
.ste-section--dark h3,
.ste-section--dark h4 {
  color: var(--color-text-white);
}

.ste-section--dark p {
  color: var(--color-text-light);
}

/* Section Headers */
.ste-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.ste-section-header--left {
  text-align: left;
  margin-left: 0;
}

.ste-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background-color: var(--color-primary-subtle);
  color: var(--color-primary-darker);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.ste-badge--accent {
  background-color: #FEF3C7;
  color: #92400E;
  border-color: rgba(250, 204, 21, 0.3);
}

.ste-badge--dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-primary-light);
  border-color: rgba(255, 255, 255, 0.15);
}

.ste-section-title {
  margin-bottom: 1rem;
}

.ste-section-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Text Gradient Highlights */
.ste-highlight-green {
  color: var(--color-primary-dark);
  background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ste-highlight-gold {
  color: var(--color-accent-dark);
  background: linear-gradient(135deg, #F59E0B 0%, #FACC15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
