/*
Theme Name:  Guruji PEB Solution
Template:    hello-elementor
Description: Custom child theme for Guruji PEB Solution — Greater Noida's PEB manufacturer
Version:     1.0.0
Author:      HaxCode Technology Solutions
Author URI:  https://haxcode.com
*/

/* ════════════════════════════════════════
   GOOGLE FONTS — Loaded via functions.php
   Barlow Condensed (headings) + DM Sans (body)
   ════════════════════════════════════════ */

/* ════════════════════════════════════════
   CSS CUSTOM PROPERTIES (Design Tokens)
   ════════════════════════════════════════ */
:root {
  --color-navy:       #1A3458;
  --color-navy-dark:  #0D1B2A;
  --color-navy-deep:  #060F1A;
  --color-orange:     #FF6600;
  --color-orange-dk:  #cc4400;
  --color-white:      #FFFFFF;
  --color-light:      #F4F6F9;
  --color-text:       #1a1a1a;
  --color-muted:      #6B7280;
  --font-head:        'Barlow Condensed', sans-serif;
  --font-body:        'DM Sans', sans-serif;
  --transition:       all 0.3s ease;
  --shadow-card:      0 4px 24px rgba(26,52,88,0.10);
  --shadow-hover:     0 8px 36px rgba(26,52,88,0.18);
  --radius:           6px;
}

/* ════════════════════════════════════════
   GLOBAL RESET & BASE
   ════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5em;
}

a { transition: var(--transition); }

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

/* ════════════════════════════════════════
   STICKY HEADER (Hello Elementor)
   ════════════════════════════════════════ */
.site-header,
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-navy) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  transition: var(--transition);
}

.site-header .site-branding .site-title a {
  color: var(--color-white) !important;
  font-family: var(--font-head) !important;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ════════════════════════════════════════
   HEADER NAVIGATION
   ════════════════════════════════════════ */
.main-navigation ul li a {
  color: rgba(255,255,255,0.88) !important;
  font-family: var(--font-head) !important;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  transition: var(--transition);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--color-orange) !important;
}

/* Header CTA button */
.header-cta-button,
.site-header .elementor-button.guruji-header-cta {
  background: var(--color-orange) !important;
  color: var(--color-white) !important;
  font-family: var(--font-head) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 24px !important;
  border-radius: 3px !important;
  border: none !important;
}

.header-cta-button:hover {
  background: var(--color-orange-dk) !important;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════ */
.guruji-hero {
  position: relative;
}

.guruji-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,27,42,0.90) 0%,
    rgba(26,52,88,0.75) 60%,
    rgba(255,102,0,0.15) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.guruji-hero .elementor-container {
  position: relative;
  z-index: 2;
}

/* ════════════════════════════════════════
   STATS / COUNTER SECTION
   ════════════════════════════════════════ */
.guruji-stats .elementor-counter-number-wrapper {
  font-family: var(--font-head) !important;
}

.guruji-stats .elementor-column {
  border-right: 1px solid rgba(255,255,255,0.2);
}

.guruji-stats .elementor-column:last-child {
  border-right: none;
}

/* ════════════════════════════════════════
   SERVICE CARDS (Icon Box)
   ════════════════════════════════════════ */
.guruji-services .elementor-icon-box-wrapper {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  height: 100%;
  border-bottom: 3px solid transparent;
}

.guruji-services .elementor-icon-box-wrapper:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-bottom-color: var(--color-orange);
}

.guruji-services .elementor-icon-box-icon .elementor-icon {
  background: var(--color-orange) !important;
  border-radius: 4px !important;
  width: 54px !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.guruji-services .elementor-icon-box-title {
  font-family: var(--font-head) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--color-navy) !important;
  margin-top: 12px !important;
}

/* ════════════════════════════════════════
   WHY CHOOSE US SPLIT
   ════════════════════════════════════════ */
.guruji-why .elementor-column:first-child {
  background: var(--color-navy);
}

/* ════════════════════════════════════════
   PRODUCT CARDS (from HTML widgets)
   ════════════════════════════════════════ */
.guruji-products .elementor-widget-html > .elementor-widget-container > div {
  transition: var(--transition);
}

.guruji-products .elementor-widget-html > .elementor-widget-container > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover) !important;
}

.guruji-products img {
  transition: transform 0.4s ease;
}

.guruji-products div:hover img {
  transform: scale(1.04);
}

/* ════════════════════════════════════════
   PROCESS STEPS
   ════════════════════════════════════════ */
.elementor-section.guruji-process .elementor-column:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,102,0,0.5);
  font-size: 24px;
  font-weight: 700;
}

/* ════════════════════════════════════════
   PROJECT GALLERY
   ════════════════════════════════════════ */
.elementor-widget-image img {
  border-radius: var(--radius);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.elementor-widget-image:hover img {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

/* ════════════════════════════════════════
   TESTIMONIAL CARDS
   ════════════════════════════════════════ */
.guruji-testimonials .elementor-widget-html > .elementor-widget-container > div {
  transition: var(--transition);
}

.guruji-testimonials .elementor-widget-html > .elementor-widget-container > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover) !important;
}

/* ════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════ */
.guruji-cta {
  position: relative;
  overflow: hidden;
}

.guruji-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.guruji-cta::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

/* ════════════════════════════════════════
   CONTACT SECTION
   ════════════════════════════════════════ */
.guruji-contact > .elementor-container > .elementor-column:last-child {
  background: var(--color-navy);
}

/* Form focus states */
.guruji-contact input:focus,
.guruji-contact select:focus,
.guruji-contact textarea:focus {
  border-color: var(--color-orange) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255,102,0,0.1) !important;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.guruji-footer a:hover {
  color: var(--color-orange) !important;
}

.site-footer,
footer.site-footer {
  display: none; /* Hide default Hello Elementor footer — we use our own */
}

/* ════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ════════════════════════════════════════ */
.guruji-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  animation: wapulse 2.5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.guruji-whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes wapulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 6px 32px rgba(37,211,102,0.85); }
}

/* ════════════════════════════════════════
   ELEMENTOR BUTTON GLOBAL OVERRIDES
   ════════════════════════════════════════ */
.elementor-button.elementor-size-xl,
.elementor-button.elementor-size-lg {
  font-family: var(--font-head) !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  border-radius: 3px !important;
}

/* Primary orange button */
.elementor-button.guruji-btn-primary,
.guruji-btn-primary {
  background: var(--color-orange) !important;
  color: var(--color-white) !important;
  border: none !important;
}

.guruji-btn-primary:hover {
  background: var(--color-orange-dk) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,102,0,0.35) !important;
}

/* Ghost button */
.guruji-btn-ghost {
  background: transparent !important;
  color: var(--color-white) !important;
  border: 2px solid rgba(255,255,255,0.55) !important;
}

.guruji-btn-ghost:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.85) !important;
  transform: translateY(-2px);
}

/* ════════════════════════════════════════
   SECTION LABELS (Orange eyebrow text)
   ════════════════════════════════════════ */
.guruji-eyebrow {
  font-family: var(--font-head) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: var(--color-orange) !important;
  display: block;
  margin-bottom: 8px;
}

/* ════════════════════════════════════════
   DIVIDER ACCENT
   ════════════════════════════════════════ */
.elementor-widget-divider .elementor-divider-separator {
  border-top-color: var(--color-orange) !important;
  border-top-width: 3px !important;
}

/* ════════════════════════════════════════
   SMOOTH SCROLL
   ════════════════════════════════════════ */
html {
  scroll-behavior: smooth;
}

/* ════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
   ════════════════════════════════════════ */
@media screen and (max-width: 1024px) {
  .guruji-stats .elementor-column {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .guruji-stats .elementor-column:last-child {
    border-bottom: none;
  }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   ════════════════════════════════════════ */
@media screen and (max-width: 768px) {
  .guruji-hero {
    min-height: 100svh;
  }

  .guruji-why .elementor-column:last-child {
    display: none; /* Hide right image on mobile */
  }

  .guruji-contact > .elementor-container {
    flex-direction: column;
  }

  .guruji-contact > .elementor-container > .elementor-column {
    width: 100% !important;
  }

  /* Reduce heading sizes on mobile */
  h1.elementor-heading-title { font-size: 38px !important; }
  h2.elementor-heading-title { font-size: 30px !important; }

  /* Full-width CTA buttons on mobile */
  .guruji-cta a,
  .guruji-hero a {
    display: block !important;
    text-align: center;
    width: 100%;
    margin-bottom: 12px;
  }
}

/* ════════════════════════════════════════
   PRINT / ACCESSIBILITY
   ════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 2px;
}
