/*
Theme Name: Snow Blue Media Custom
Description: Custom GeneratePress child theme built section by section for Snow Blue Media.
Author: Snow Blue Media
Template: generatepress
Version: 1.3.0
Text Domain: snow-blue-custom
*/

:root {
  --sbm-header-bg: #ffffff;
  --sbm-text: #14213d;
  --sbm-muted: #667085;
  --sbm-primary: #176bff;
  --sbm-primary-dark: #0c4ed7;
  --sbm-accent: #16c7f4;
  --sbm-border: #e7edf6;
  --sbm-shadow: 0 12px 35px rgba(15, 42, 84, .09);
}

* { box-sizing: border-box; }

body { overflow-x: hidden; }

.sbm-header-wrap {
  width: 100%;
  position: relative;
  z-index: 999;
  background: var(--sbm-header-bg);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--sbm-primary), var(--sbm-accent)) 1;
  border-bottom: 1px solid var(--sbm-border);
  box-shadow: 0 5px 24px rgba(23, 52, 92, .045);
}

.sbm-header-wrap.sbm-sticky {
  position: sticky;
  top: 0;
}

.admin-bar .sbm-header-wrap.sbm-sticky { top: 32px; }

.sbm-header-inner {
  width: min(100% - 48px, 1480px);
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.sbm-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 310px;
  color: var(--sbm-text) !important;
  text-decoration: none !important;
}

.sbm-brand img {
  display: block;
  width: auto;
  max-width: 280px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.sbm-brand-fallback {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.035em;
}

.sbm-brand-fallback i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--sbm-accent), var(--sbm-primary));
  box-shadow: 0 9px 24px rgba(23, 107, 255, .24);
  font-size: 16px;
  font-style: normal;
  letter-spacing: -.04em;
}

.sbm-header-right {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}

.sbm-main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 34px;
}

.sbm-main-nav li { position: relative; margin: 0; }

.sbm-main-nav a {
  position: relative;
  display: block;
  padding: 35px 0;
  color: var(--sbm-muted) !important;
  text-decoration: none !important;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 750;
  transition: color .22s ease;
}

.sbm-main-nav > div > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 25px;
  height: 2px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--sbm-primary), var(--sbm-accent));
  transition: right .25s ease;
}

.sbm-main-nav a:hover,
.sbm-main-nav .current-menu-item > a,
.sbm-main-nav .current_page_item > a { color: var(--sbm-primary) !important; }

.sbm-main-nav > div > ul > li > a:hover::after,
.sbm-main-nav .current-menu-item > a::after,
.sbm-main-nav .current_page_item > a::after { right: 0; }

.sbm-main-nav .menu-item-has-children > a { padding-right: 16px; }
.sbm-main-nav .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}

.sbm-main-nav .sub-menu {
  position: absolute;
  top: calc(100% - 12px);
  left: -22px;
  z-index: 20;
  display: block;
  min-width: 230px;
  padding: 12px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  border: 1px solid var(--sbm-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sbm-shadow);
  transition: .22s ease;
}

.sbm-main-nav li:hover > .sub-menu,
.sbm-main-nav li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.sbm-main-nav .sub-menu li + li { margin-top: 3px; }
.sbm-main-nav .sub-menu a { padding: 11px 13px; border-radius: 9px; font-size: 14px; }
.sbm-main-nav .sub-menu a:hover { background: #f2f7ff; }

.sbm-header-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.sbm-header-btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .01em;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.sbm-btn-call {
  color: var(--sbm-primary) !important;
  background: #f1f6ff;
  border: 1px solid #d7e5ff;
}

.sbm-btn-main {
  color: #fff !important;
  background: linear-gradient(135deg, var(--sbm-primary), var(--sbm-primary-dark));
  border: 1px solid transparent;
  box-shadow: 0 11px 25px rgba(23, 107, 255, .24);
}

.sbm-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(23, 107, 255, .2);
}

.sbm-mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--sbm-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.sbm-mobile-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  border-radius: 5px;
  background: var(--sbm-text);
  transition: .22s ease;
}

.sbm-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sbm-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.sbm-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .sbm-header-inner { min-height: 86px; }
  .sbm-header-right { gap: 18px; }
  .sbm-main-nav ul { gap: 22px; }
  .sbm-main-nav a { font-size: 14px; padding: 31px 0; }
  .sbm-header-btn { min-height: 46px; padding: 0 15px; }
  .sbm-brand img { max-width: 230px; height: 52px; }
}

@media (max-width: 920px) {
  .sbm-header-inner { width: min(100% - 30px, 1480px); min-height: 76px; }
  .sbm-brand img { max-width: 215px; height: 48px; }
  .sbm-brand-fallback { font-size: 19px; }
  .sbm-brand-fallback i { width: 43px; height: 43px; border-radius: 12px; }
  .sbm-mobile-toggle { display: block; }
  .sbm-header-actions .sbm-btn-call { display: none; }
  .sbm-header-right { gap: 10px; }
  .sbm-main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 15px;
    right: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: var(--sbm-shadow);
    transition: max-height .32s ease, opacity .2s ease;
  }
  .sbm-main-nav.is-open { max-height: calc(100vh - 90px); overflow-y: auto; opacity: 1; }
  .sbm-main-nav ul { display: block; padding: 15px; }
  .sbm-main-nav li { width: 100%; }
  .sbm-main-nav a { padding: 13px 14px; border-radius: 9px; }
  .sbm-main-nav a:hover { background: #f2f7ff; }
  .sbm-main-nav > div > ul > li > a::after { display: none; }
  .sbm-main-nav .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 4px 16px;
    visibility: visible;
    opacity: 1;
    transform: none;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 540px) {
  .sbm-header-inner { width: calc(100% - 24px); min-height: 70px; gap: 10px; }
  .sbm-brand { max-width: 190px; }
  .sbm-brand img { max-width: 180px; height: 43px; }
  .sbm-brand-fallback { font-size: 16px; gap: 8px; }
  .sbm-brand-fallback i { width: 38px; height: 38px; font-size: 13px; }
  .sbm-header-actions .sbm-btn-main { display: none; }
  .sbm-mobile-toggle { width: 43px; height: 43px; }
  .admin-bar .sbm-header-wrap.sbm-sticky { top: 46px; }
}
