/*
Theme Name: YYM Astra Child
Theme URI: https://yymbuild.com/
Description: Astra child theme for Yangyiming Building Materials.
Author: Yangyiming Building Materials
Template: astra
Version: 1.0.0
Text Domain: yym-astra-child
*/

:root {
  --yym-blue-900: #082f63;
  --yym-blue-700: #0758ad;
  --yym-blue-500: #1684d8;
  --yym-green: #18a957;
  --yym-ink: #112d4e;
  --yym-muted: #eff6fc;
  --yym-line: #d9e7f3;
}

body { color: var(--yym-ink); margin: 0; }
.yym-hero h1,.page-hero h1 { color: #fff; }

.ast-container,
.site-content .ast-container { max-width: 100%; padding: 0; }
.page #primary { margin-top: 0!important; margin-bottom: 0!important; }

.site-primary-header-wrap { max-width: 1200px; }

.main-header-menu > .menu-item > .menu-link {
  font-weight: 600;
}

@media (max-width: 921px) {
  .ast-container { padding-left: 0; padding-right: 0; }
}

.yym-header { position: sticky; top: 0; z-index: 999; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--yym-line); }
.yym-header__inner { width: min(1200px, calc(100% - 40px)); min-height: 78px; margin: auto; display: flex; align-items: center; gap: 28px; }
.yym-brand { display: flex; align-items: center; gap: 12px; color: var(--yym-blue-900); text-decoration: none; min-width: 235px; }
.yym-brand__mark { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,var(--yym-blue-500),var(--yym-blue-900)); clip-path: polygon(50% 0,100% 24%,100% 100%,0 100%,0 24%); font-weight: 800; }
.yym-brand__text strong { display: block; font-size: 20px; line-height: 1.1; letter-spacing: .03em; }
.yym-brand__text small { display: block; color: #58708b; font-size: 10px; margin-top: 4px; }
.yym-nav { margin-left: auto; }
.yym-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.yym-nav li { position: relative; }
.yym-nav .yym-product-submenu { position: absolute; display: block; visibility: hidden; opacity: 0; top: calc(100% + 18px); left: -20px; min-width: 250px; padding: 10px; background: #fff; border: 1px solid var(--yym-line); border-radius: 5px; box-shadow: 0 18px 38px rgba(8,47,99,.15); transform: translateY(8px); transition: .18s ease; }
.yym-nav .yym-product-submenu:before { content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.yym-nav li:hover>.yym-product-submenu,.yym-nav li:focus-within>.yym-product-submenu { visibility: visible; opacity: 1; transform: translateY(0); }
.yym-nav .yym-product-submenu a { display: block; padding: 10px 12px; border-radius: 3px; }
.yym-nav .yym-product-submenu a:hover { background: var(--yym-muted); }
.yym-nav a { color: var(--yym-ink); text-decoration: none; font-size: 14px; font-weight: 650; white-space: nowrap; }
.yym-nav a:hover,.yym-nav .current-menu-item>a { color: var(--yym-blue-700); }
.yym-header__actions { display: flex; align-items: center; gap: 14px; }
.yym-language-selector { position: relative; color: #58708b; font-size: 13px; font-weight: 700; }
.yym-language-selector summary { display: flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; list-style: none; white-space: nowrap; }
.yym-language-selector summary::-webkit-details-marker { display: none; }
.yym-language-menu { position: absolute; z-index: 1200; top: calc(100% + 6px); right: 0; min-width: 132px; padding: 7px; border: 1px solid var(--yym-line); border-radius: 6px; background: #fff; box-shadow: 0 12px 32px rgba(8,28,51,.16); }
.yym-language-menu a { display: block; padding: 9px 11px; border-radius: 4px; color: var(--yym-ink); text-decoration: none; }
.yym-language-menu a:hover,.yym-language-menu a.is-current { background: #edf4fa; color: var(--yym-blue-700); }
.yym-quote { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 5px; background: var(--yym-blue-700); color: #fff!important; text-decoration: none; font-size: 14px; font-weight: 700; }
.yym-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--yym-line); border-radius: 5px; background: #fff; color: var(--yym-blue-900); font-size: 22px; }

.yym-footer { background: #081c33; color: #dce7f2; }
.yym-footer__main { width: min(1200px,calc(100% - 40px)); margin: auto; padding: 64px 0 44px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; }
.yym-footer h3 { color: #fff; font-size: 15px; margin: 0 0 20px; }
.yym-footer p,.yym-footer li,.yym-footer a { color: #aebfd0; font-size: 14px; line-height: 1.8; }
.yym-footer ul { list-style: none; margin: 0; padding: 0; }
.yym-footer a { text-decoration: none; }
.yym-footer a:hover { color: #fff; }
.yym-footer .yym-brand { color: #fff; margin-bottom: 18px; }
.yym-footer .yym-brand__text small { color: #aebfd0; }
.yym-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.yym-footer__bottom-inner { width: min(1200px,calc(100% - 40px)); min-height: 66px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8397aa; font-size: 12px; }
.yym-mobile-contact { display: none; }
.yym-whatsapp-float { position: fixed; z-index: 998; right: 24px; bottom: 24px; min-height: 54px; padding: 0 19px 0 14px; border-radius: 999px; display: flex; align-items: center; gap: 9px; background: var(--yym-green); color: #fff!important; text-decoration: none; font-size: 14px; font-weight: 750; box-shadow: 0 10px 28px rgba(17,45,78,.22); transition: transform .2s ease,box-shadow .2s ease; }
.yym-whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(17,45,78,.28); }
.yym-whatsapp-float svg { width: 28px; height: 28px; flex: 0 0 28px; }

@media (max-width: 1080px) {
  .yym-nav ul { gap: 16px; }
  .yym-brand { min-width: 205px; }
  .yym-quote { padding: 0 14px; }
}

@media (max-width: 920px) {
  .yym-header__inner { min-height: 68px; width: min(100% - 28px,1200px); }
  .yym-brand { min-width: 0; margin-right: auto; }
  .yym-brand__mark { width: 38px; height: 38px; }
  .yym-brand__text strong { font-size: 17px; }
  .yym-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; padding: 14px 20px 24px; background: #fff; border-top: 1px solid var(--yym-line); box-shadow: 0 18px 30px rgba(8,47,99,.12); }
  .yym-nav.is-open { display: block; }
  .yym-nav ul { display: block; }
  .yym-nav .yym-product-submenu { position: static; visibility: visible; opacity: 1; display: block; min-width: 0; padding: 0 0 8px 16px; border: 0; box-shadow: none; transform: none; }
  .yym-nav .yym-product-submenu li { border: 0; }
  .yym-nav .yym-product-submenu a { padding: 9px 0; color: #58708b; font-size: 13px; }
  .yym-nav li { border-bottom: 1px solid var(--yym-line); }
  .yym-nav a { display: block; padding: 13px 0; }
  .yym-language-selector summary { font-size: 12px; }
  .yym-language-menu { right: auto; left: 0; }
  .yym-quote { display: none; }
  .yym-menu-toggle { display: block; }
  .yym-footer__main { grid-template-columns: 1fr 1fr; gap: 36px; padding-bottom: 80px; }
  .yym-mobile-contact { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -8px 24px rgba(8,28,51,.18); }
  .yym-whatsapp-float { display: none; }
  .yym-mobile-contact a { min-height: 52px; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 750; }
  .yym-mobile-contact a:first-child { background: var(--yym-green); }
  .yym-mobile-contact a:last-child { background: var(--yym-blue-700); }
}

@media (max-width: 600px) {
  .yym-brand__text small { display: none; }
  .yym-footer__main { grid-template-columns: 1fr; }
  .yym-footer__bottom-inner { align-items: flex-start; flex-direction: column; padding: 20px 0 80px; }
}

.page .entry-content { margin-top: 0!important; }
.page #content { margin-top: -24px!important; }
