/*
Theme Name: Ehtisham Saeed Pro
Theme URI: https://ehtishamsaeed.com
Author: Ehtisham Saeed
Author URI: https://ehtishamsaeed.com
Description: Elementor-compatible WordPress theme for RTO Marketing Specialist. Edit everything visually with Elementor Pro. Fast, clean, professional.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ehtisham-theme
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready, elementor

Ehtisham Saeed Pro Theme - Elementor Compatible
*/

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F5F5F5;
    --gray-100: #E5E5E5;
    --gray-200: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-800: #262626;
    --gray-900: #171717;
    --black: #0A0A0A;
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --success: #10B981;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

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

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow 0.3s;
}

.site-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.02em;
}

.site-logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
}

.nav-menu a:hover {
    color: var(--black);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--primary);
    color: white !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    padding: 40px 0;
    background: var(--black);
    color: white;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-brand span {
    color: var(--primary-light);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* ==========================================================================
   ELEMENTOR COMPATIBILITY
   ========================================================================== */

/* Remove default margins on Elementor pages */
.elementor-page .site-main {
    padding: 0;
    margin: 0;
}

/* Ensure full width */
.elementor-section.elementor-section-stretched {
    width: 100% !important;
    left: 0 !important;
}

/* Fix for header spacing */
body:not(.elementor-editor-active) .elementor-location-single,
body:not(.elementor-editor-active) .elementor-location-archive,
body:not(.elementor-editor-active) .site-main {
    padding-top: 72px;
}

/* Elementor button overrides */
.elementor-button {
    font-family: var(--font) !important;
}

/* ==========================================================================
   CUSTOM ANIMATIONS (Use in Elementor via CSS Classes)
   ========================================================================== */

/* Pulse animation for status dots */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}
.pulse-dot {
    animation: pulse 2s infinite;
}

/* Float animation for badges */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.floating-badge {
    animation: float 3s ease-in-out infinite;
}
.floating-badge-delay {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Logo grayscale effect */
.logo-grayscale {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s;
}
.logo-grayscale:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Invert logo for dark backgrounds */
.logo-invert {
    filter: brightness(0) invert(1);
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   WORDPRESS SPECIFIC
   ========================================================================== */

.wp-block-image img {
    height: auto;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

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