/*
Theme Name: SME Theme
Theme URI: https://socialmarketingexperts.ca
Description: Custom child theme for SocialMarketingExperts.ca — built for Elementor free. Blue design system, sticky header, custom footer, all pages pre-styled.
Author: Social Marketing Experts
Author URI: https://socialmarketingexperts.ca
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sme-theme
*/

/* =============================================
   IMPORT FONTS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@400;500;700;800&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --blue: #185FA5;
  --blue-mid: #378ADD;
  --blue-light: #E6F1FB;
  --blue-pale: #F0F7FF;
  --dark: #0a0f1e;
  --gray: #f4f6fb;
  --border: #e0eaf5;
  --text: #0a0f1e;
  --text2: #555;
  --text3: #888;
  --white: #ffffff;
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
}

/* =============================================
   GLOBAL RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body) !important;
  color: var(--text) !important;
  background: var(--white) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* =============================================
   HIDE DEFAULT HELLO ELEMENTOR ELEMENTS
   ============================================= */
.site-header.hello-elementor-header,
.hello-elementor-header-menu-area,
.site-footer.hello-elementor-footer,
.hello-elementor-footer-bar {
  display: none !important;
}

/* Hide page title */
.entry-title,
.page-title,
h1.entry-title,
.entry-header,
.page-header {
  display: none !important;
}

/* Remove default content padding */
.entry-content,
.page-content,
#content,
#primary,
.site-main,
main.site-main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.elementor-page .entry-content {
  padding: 0 !important;
}

/* =============================================
   CUSTOM HEADER
   ============================================= */
#sme-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 99999;
  width: 100%;
}

#sme-topbar {
  background: var(--dark);
  padding: 8px 0;
  font-size: 13px;
}

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

.sme-topbar-left {
  display: flex;
  gap: 24px;
  align-items: center;
}

.sme-topbar-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  text-decoration: none;
  font-size: 13px;
}

.sme-topbar-contact:hover { color: #fff; }

.sme-topbar-contact svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sme-topbar-cities {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.sme-topbar-cities span {
  color: #85B7EB;
  margin-left: 6px;
}

/* NAV INNER */
.sme-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* LOGO */
.sme-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.sme-logo-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
}

.sme-logo-bars span {
  display: block;
  width: 5px;
  border-radius: 2px 2px 0 0;
}

.sme-logo-bars span:nth-child(1) { height: 40%; background: #B5D4F4; }
.sme-logo-bars span:nth-child(2) { height: 60%; background: #85B7EB; }
.sme-logo-bars span:nth-child(3) { height: 80%; background: var(--blue-mid); }
.sme-logo-bars span:nth-child(4) { height: 100%; background: var(--blue); }

.sme-logo-img {
  height: 44px;
  width: auto;
}

.sme-logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
}

.sme-logo-text b { color: var(--blue); }

/* NAV MENU */
.sme-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sme-nav-menu li {
  position: relative;
  margin: 0;
  padding: 0;
}

.sme-nav-menu li a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.sme-nav-menu li a:hover,
.sme-nav-menu li.current-menu-item > a,
.sme-nav-menu li.current-page-ancestor > a {
  color: var(--blue);
  background: var(--blue-light);
}

.sme-nav-menu li.current-menu-item > a,
.sme-nav-menu li.current-page-ancestor > a {
  font-weight: 600;
}

/* DROPDOWN ARROW */
.sme-nav-menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #888;
  margin-left: 4px;
  transition: transform 0.2s;
}

.sme-nav-menu li.menu-item-has-children:hover > a::after {
  border-top-color: var(--blue);
  transform: rotate(180deg);
}

/* DROPDOWN */
.sme-nav-menu ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  min-width: 240px;
  padding: 4px 0;
  margin: 0;
  z-index: 999999;
  list-style: none;
}

.sme-nav-menu li:hover > ul { display: block; }

.sme-nav-menu ul li {
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.sme-nav-menu ul li:last-child { border-bottom: none; }

.sme-nav-menu ul li a {
  font-size: 14px;
  color: var(--text2);
  padding: 10px 16px;
  border-radius: 0;
  width: 100%;
  display: block;
}

.sme-nav-menu ul li a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

/* NAV CTA BUTTON */
.sme-nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.sme-nav-cta:hover {
  background: #0C447C;
  color: var(--white) !important;
}

/* MOBILE MENU TOGGLE */
.sme-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--dark);
}

/* =============================================
   CUSTOM FOOTER
   ============================================= */
#sme-footer {
  background: var(--dark);
  padding: 64px 0 0;
}

.sme-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 48px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sme-footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sme-footer-logo-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.sme-footer-logo-bars span {
  display: block;
  width: 4px;
  border-radius: 2px 2px 0 0;
}

.sme-footer-logo-bars span:nth-child(1) { height: 40%; background: rgba(181,212,244,0.5); }
.sme-footer-logo-bars span:nth-child(2) { height: 60%; background: rgba(133,183,235,0.6); }
.sme-footer-logo-bars span:nth-child(3) { height: 80%; background: rgba(55,138,221,0.7); }
.sme-footer-logo-bars span:nth-child(4) { height: 100%; background: #85B7EB; }

.sme-footer-logo-img { height: 36px; width: auto; }

.sme-footer-logo-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.sme-footer-logo-text b { color: #85B7EB; }

.sme-footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  margin-bottom: 20px;
}

.sme-footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  transition: color 0.2s;
  text-decoration: none;
}

.sme-footer-contact a:hover { color: #fff; }
.sme-footer-contact svg { width: 14px; height: 14px; flex-shrink: 0; }

.sme-footer-col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sme-footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
  transition: color 0.2s;
  text-decoration: none;
}

.sme-footer-col a:hover { color: rgba(255,255,255,0.8); }

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

.sme-footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }

.sme-footer-bottom-links { display: flex; gap: 20px; }

.sme-footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  transition: color 0.2s;
  text-decoration: none;
}

.sme-footer-bottom-links a:hover { color: rgba(255,255,255,0.5); }

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .sme-topbar-cities { display: none; }
  .sme-nav-menu { display: none; }
  .sme-mobile-toggle { display: block; }
  .sme-nav-cta { padding: 8px 14px; font-size: 13px; }

  .sme-nav-menu.sme-menu-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .sme-nav-menu.sme-menu-open li { width: 100%; }
  .sme-nav-menu.sme-menu-open li a { width: 100%; }

  .sme-nav-menu.sme-menu-open ul {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--blue-light);
    border-radius: 0;
    margin-left: 12px;
    display: block;
  }

  .sme-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .sme-footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .sme-nav-inner { padding: 0 16px; }
  .sme-topbar-inner { padding: 0 16px; }
  .sme-footer-inner { grid-template-columns: 1fr; }
  .sme-footer-inner { padding: 0 16px 32px; }
  .sme-footer-bottom { padding: 16px; }
}
