/*
Theme Name:     RootsLab
Author:         RootsLab 
Description:    Theme designed by GITS
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rootslab
*/

/* Import Pretendard Font */
@font-face {
	font-family: 'Pretendard';
	font-weight: 900;
	font-display: swap;
	src: local('Pretendard Black'), url('./fonts/Pretendard-1.3.6/web/static/woff2/Pretendard-Black.woff2') format('woff2'), url('./fonts/Pretendard-1.3.6/web/static/woff/Pretendard-Black.woff') format('woff');
}

@font-face {
	font-family: 'Pretendard';
	font-weight: 800;
	font-display: swap;
	src: local('Pretendard ExtraBold'), url('./fonts/Pretendard-1.3.6/web/static/woff2/Pretendard-ExtraBold.woff2') format('woff2'), url('./fonts/Pretendard-1.3.6/web/static/woff/Pretendard-ExtraBold.woff') format('woff');
}

@font-face {
	font-family: 'Pretendard';
	font-weight: 700;
	font-display: swap;
	src: local('Pretendard Bold'), url('./fonts/Pretendard-1.3.6/web/static/woff2/Pretendard-Bold.woff2') format('woff2'), url('./fonts/Pretendard-1.3.6/web/static/woff/Pretendard-Bold.woff') format('woff');
}

@font-face {
	font-family: 'Pretendard';
	font-weight: 600;
	font-display: swap;
	src: local('Pretendard SemiBold'), url('./fonts/Pretendard-1.3.6/web/static/woff2/Pretendard-SemiBold.woff2') format('woff2'), url('./fonts/Pretendard-1.3.6/web/static/woff/Pretendard-SemiBold.woff') format('woff');
}

@font-face {
	font-family: 'Pretendard';
	font-weight: 500;
	font-display: swap;
	src: local('Pretendard Medium'), url('./fonts/Pretendard-1.3.6/web/static/woff2/Pretendard-Medium.woff2') format('woff2'), url('./fonts/Pretendard-1.3.6/web/static/woff/Pretendard-Medium.woff') format('woff');
}

@font-face {
	font-family: 'Pretendard';
	font-weight: 400;
	font-display: swap;
	src: local('Pretendard Regular'), url('./fonts/Pretendard-1.3.6/web/static/woff2/Pretendard-Regular.woff2') format('woff2'), url('./fonts/Pretendard-1.3.6/web/static/woff/Pretendard-Regular.woff') format('woff');
}

@font-face {
	font-family: 'Pretendard';
	font-weight: 300;
	font-display: swap;
	src: local('Pretendard Light'), url('./fonts/Pretendard-1.3.6/web/static/woff2/Pretendard-Light.woff2') format('woff2'), url('./fonts/Pretendard-1.3.6/web/static/woff/Pretendard-Light.woff') format('woff');
}

@font-face {
	font-family: 'Pretendard';
	font-weight: 200;
	font-display: swap;
	src: local('Pretendard ExtraLight'), url('./fonts/Pretendard-1.3.6/web/static/woff2/Pretendard-ExtraLight.woff2') format('woff2'), url('./fonts/Pretendard-1.3.6/web/static/woff/Pretendard-ExtraLight.woff') format('woff');
}

@font-face {
	font-family: 'Pretendard';
	font-weight: 100;
	font-display: swap;
	src: local('Pretendard Thin'), url('./fonts/Pretendard-1.3.6/web/static/woff2/Pretendard-Thin.woff2') format('woff2'), url('./fonts/Pretendard-1.3.6/web/static/woff/Pretendard-Thin.woff') format('woff');
}

/* Import Noto Sans Font */
@font-face {
	font-family: 'Noto Sans';
	font-weight: 400;
	font-display: swap;
	src: local('Noto Sans Regular'), url('./fonts/Noto_Sans/static/NotoSans-Regular.ttf') format('truetype');
}

@font-face {
	font-family: 'Noto Sans';
	font-weight: 500;
	font-display: swap;
	src: local('Noto Sans Medium'), url('./fonts/Noto_Sans/static/NotoSans-Medium.ttf') format('truetype');
}

@font-face {
	font-family: 'Noto Sans';
	font-weight: 600;
	font-display: swap;
	src: local('Noto Sans SemiBold'), url('./fonts/Noto_Sans/static/NotoSans-SemiBold.ttf') format('truetype');
}

@font-face {
	font-family: 'Noto Sans';
	font-weight: 700;
	font-display: swap;
	src: local('Noto Sans Bold'), url('./fonts/Noto_Sans/static/NotoSans-Bold.ttf') format('truetype');
}

@font-face {
	font-family: 'Noto Sans';
	font-weight: 300;
	font-display: swap;
	src: local('Noto Sans Light'), url('./fonts/Noto_Sans/static/NotoSans-Light.ttf') format('truetype');
}

:root {
  --primary-color: #6aabda;
  --highlight-color: rgba(91, 155, 213, 0.24);
  --font-pretendard: 'Pretendard', sans-serif;
  --font-noto-sans: 'Noto Sans', sans-serif;
}

html {
  --wp-admin--admin-bar--height: 0px;
  margin-top: 0 !important;
}

/* Override WordPress admin bar margin */
html[style*="margin-top"] {
  margin-top: 0 !important;
}

body {
  margin-top: 0 !important;
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #242424;
}

/* Language-specific font settings */
/* English and Vietnamese content - use Pretendard */
html[lang="en"],
html[lang="vi"],
body:lang(en),
body:lang(ko),
[lang="en"],
[lang="vi"] {
  font-family: var(--font-pretendard);
}

html[lang="fr"],
body:lang(fr),
[lang="fr"] {
  font-family: var(--font-noto-sans);
}

/* Additional override for any admin bar related margins */
html.admin-bar,
html[class*="admin-bar"] {
  margin-top: 0 !important;
}

/* Force remove any top margin */
html,
body {
  margin: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Final override - highest specificity */
html,
body {
  margin: 0 !important;
  margin-top: 0 !important;
}

/* Override any inline styles */
html[style*="margin-top: 32px"],
html[style*="margin-top: 32px !important"] {
  margin-top: 0 !important;
}

/* WordPress Menu System Styles */
.header-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.header-menu li {
  display: flex;
  align-items: center;
}

.header-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 8px 0;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.625em;
  letter-spacing: -0.625%;
  color: #FFFFFF;
  position: relative;
  transition: all 0.3s ease;
  opacity: 1;
  visibility: visible;
  border-radius: 12px;
}

.header-menu a:hover {
  color: #060923;
}

.header-menu .current-menu-item > a {
  color: var(--primary-color);
  font-weight: 600;
}

.header-menu .current-menu-item > a::after {
  content: '';
  width: 6px;
  height: 6px;
  background: linear-gradient(180deg, #97C686 0%, #6CC6F3 100%);
  border-radius: 50%;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

/* Expanded Menu Styles */
.menu-section-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: #060923;
  margin: 0 0 16px 0;
  padding: 0;
}

.menu-section-item {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  transition: color 0.3s ease;
  position: relative;
}

.menu-section-item:hover {
  color: var(--primary-color);
}

.menu-section-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.menu-section-item.active::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
}

/* Debug styles for expanded menu */
.header-expanded-menu {
  z-index: 1000 !important;
}

.header-expanded-menu.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Force show expanded menu for testing */
.header-expanded-menu.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  background-color: #FDFAF6 !important;
}

a {
  color: #242424;
}
