/*
Theme Name:   Switch On Digital Child
Theme URI:    https://www.switchondital.com.np
Description:  Child theme for Switch On Digital — White & Blue color scheme
Author:       Switch On Digital
Template:     hello-elementor
Version:      1.0.0
Text Domain:  switchondital
*/

/* ============================================================
   SWITCH ON DIGITAL — WHITE & BLUE THEME OVERRIDES
   Brand Blue: #0057B8   Accent Blue: #0096D6   Dark: #0A1628
   ============================================================ */

:root {
  --sod-blue:        #0057B8;
  --sod-blue-dark:   #003d82;
  --sod-blue-light:  #0096D6;
  --sod-accent:      #00C4F0;
  --sod-sky:         #0EA5E9;
  --sod-dark:        #0A1628;
  --sod-text:        #1a2a3a;
  --sod-muted:       #5a6a7a;
  --sod-white:       #ffffff;
  --sod-offwhite:    #f4f8fd;
  --sod-border:      #dce8f5;
}

/* ---- Base ---- */
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--sod-text);
  background: var(--sod-white);
}

/* ---- Top bar ---- */
.elementor-location-header {
  background: var(--sod-white);
  border-bottom: 1px solid var(--sod-border);
  box-shadow: 0 2px 12px rgba(0,87,184,0.07);
}

/* ---- Logo ---- */
.site-logo img { max-height: 52px; }

/* ---- Navigation ---- */
.elementor-nav-menu a {
  color: var(--sod-dark) !important;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}
.elementor-nav-menu a:hover,
.elementor-nav-menu .current-menu-item > a {
  color: var(--sod-sky) !important;
}
.elementor-nav-menu .sub-menu {
  background: var(--sod-white);
  border-top: 3px solid var(--sod-blue);
  box-shadow: 0 8px 24px rgba(0,87,184,0.12);
}

/* ---- Hero / Banner ---- */
.sod-hero {
  background: linear-gradient(135deg, var(--sod-dark) 0%, var(--sod-blue) 60%, var(--sod-blue-light) 100%);
  color: var(--sod-white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.sod-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--sod-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.sod-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.2; }
.sod-hero p  { font-size: 1.1rem; opacity: 0.88; max-width: 560px; }

/* ---- Section headings ---- */
.elementor-heading-title { color: var(--sod-dark); font-weight: 700; }
.sod-section-label {
  display: inline-block;
  background: rgba(0,87,184,0.08);
  color: var(--sod-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ---- Product category cards ---- */
.sod-cat-card {
  background: var(--sod-white);
  border: 1px solid var(--sod-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.sod-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,87,184,0.14);
  border-color: var(--sod-blue-light);
}
.sod-cat-card .card-icon {
  background: linear-gradient(135deg, var(--sod-blue) 0%, var(--sod-blue-light) 100%);
  padding: 28px;
  text-align: center;
}
.sod-cat-card .card-icon img { width: 64px; height: 64px; object-fit: contain; filter: brightness(10); }
.sod-cat-card .card-body { padding: 20px; }
.sod-cat-card h3 { font-size: 1rem; font-weight: 700; color: var(--sod-dark); margin: 0 0 8px; }
.sod-cat-card p  { font-size: 0.85rem; color: var(--sod-muted); margin: 0 0 14px; }
.sod-cat-card .card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sod-blue);
  text-decoration: none;
}
.sod-cat-card .card-link:hover { color: var(--sod-blue-dark); }

/* ---- Product item cards ---- */
.sod-product-card {
  background: var(--sod-white);
  border: 1px solid var(--sod-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sod-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,87,184,0.12);
}
.sod-product-card .product-img {
  background: var(--sod-offwhite);
  padding: 20px;
  text-align: center;
  height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.sod-product-card .product-img img { max-height: 160px; object-fit: contain; }
.sod-product-card .product-body { padding: 16px; }
.sod-product-card .product-badge {
  background: var(--sod-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sod-product-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--sod-dark); margin: 8px 0 4px; }
.sod-product-card p  { font-size: 0.8rem; color: var(--sod-muted); margin: 0; }

/* ---- Buttons ---- */
.elementor-button,
.sod-btn {
  border-radius: 6px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  transition: all 0.2s !important;
}
.sod-btn-primary,
.elementor-button-primary {
  background: var(--sod-blue) !important;
  border-color: var(--sod-blue) !important;
  color: #fff !important;
}
.sod-btn-primary:hover,
.elementor-button-primary:hover {
  background: var(--sod-blue-dark) !important;
  border-color: var(--sod-blue-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,87,184,0.28);
}
.sod-btn-outline {
  background: transparent !important;
  border: 2px solid var(--sod-blue) !important;
  color: var(--sod-blue) !important;
}
.sod-btn-outline:hover {
  background: var(--sod-blue) !important;
  color: #fff !important;
}

/* ---- Section backgrounds ---- */
.sod-section-white   { background: var(--sod-white); }
.sod-section-offwhite { background: var(--sod-offwhite); }
.sod-section-blue {
  background: linear-gradient(135deg, var(--sod-dark) 0%, var(--sod-blue) 100%);
  color: var(--sod-white);
}
.sod-section-blue h1,
.sod-section-blue h2,
.sod-section-blue h3,
.sod-section-blue p { color: var(--sod-white) !important; }

/* ---- Stats bar ---- */
.sod-stats { background: var(--sod-blue); padding: 40px 0; }
.sod-stat-item { text-align: center; color: #fff; }
.sod-stat-item .stat-number { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.sod-stat-item .stat-label  { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; }

/* ---- Why choose us / features ---- */
.sod-feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--sod-blue) 0%, var(--sod-blue-light) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

/* ---- Brand logos row ---- */
.sod-brand-row { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.sod-brand-row img { max-height: 48px; filter: grayscale(1); opacity: 0.6; transition: all 0.2s; }
.sod-brand-row img:hover { filter: grayscale(0); opacity: 1; }

/* ---- Page hero (inner pages) ---- */
.sod-page-hero {
  background: linear-gradient(135deg, var(--sod-dark) 0%, var(--sod-blue) 100%);
  padding: 60px 0;
  color: #fff;
}
.sod-page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
.sod-breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.sod-breadcrumb a { color: rgba(255,255,255,0.85); }

/* ---- Contact / CTA section ---- */
.sod-cta {
  background: linear-gradient(135deg, var(--sod-dark) 0%, var(--sod-blue) 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.sod-cta h2 { color: #fff; font-size: 2rem; font-weight: 800; }
.sod-cta p  { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

/* ---- Contact form ---- */
.elementor-form input,
.elementor-form textarea,
.elementor-form select {
  border: 1px solid var(--sod-border) !important;
  border-radius: 6px !important;
  background: var(--sod-offwhite) !important;
}
.elementor-form input:focus,
.elementor-form textarea:focus {
  border-color: var(--sod-blue) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0,87,184,0.1) !important;
}

/* ---- Footer ---- */
.elementor-location-footer {
  background: var(--sod-dark);
  color: rgba(255,255,255,0.75);
}
.elementor-location-footer h3,
.elementor-location-footer .widget-title { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.elementor-location-footer a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.elementor-location-footer a:hover { color: var(--sod-accent); }
.sod-footer-bottom {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  font-size: 0.8rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sod-hero { padding: 60px 0 50px; }
  .sod-hero h1 { font-size: 1.7rem; }
  .sod-stat-item .stat-number { font-size: 1.8rem; }
}


/* ============================================================
   HEADER & NAVIGATION COLOR OVERRIDES
   Fix Hello Elementor default pink → Switch On Digital Blue
   ============================================================ */

/* Site title — override broad header rule with higher specificity */
header.site-header .site-title a,
.site-header .site-title a,
.site-branding .site-title a {
    color: var(--sod-sky) !important;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Override Hello Elementor global color variable */
:root {
    --e-global-color-primary: #0057B8;
    --e-global-color-secondary: #0A1628;
    --e-global-color-accent: #0096D6;
}

/* Navigation links */
.site-header .main-navigation a,
.site-header nav a,
.main-navigation li a,
header.site-header a {
    color: var(--sod-dark) !important;
}
.site-header .main-navigation a:hover,
.site-header nav a:hover,
header.site-header a:hover {
    color: var(--sod-sky) !important;
}

/* Header background */
.site-header {
    background-color: var(--sod-white);
    border-bottom: 3px solid var(--sod-sky);
    box-shadow: 0 2px 8px rgba(14,165,233,0.10);
}

/* ============================================================
   SKY BLUE BRAND NAME — high specificity, placed last
   ID selector beats any class-only rule regardless of order
   ============================================================ */
#site-header .site-title a,
#site-header .site-title a:hover,
#site-header .site-title a:focus {
    color: #0EA5E9 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* Sky blue border under header for brand cohesion */
#site-header {
    border-bottom: 3px solid #0EA5E9 !important;
    box-shadow: 0 2px 10px rgba(14,165,233,0.12) !important;
}
