/* ==========================
   BOB THEME MAIN CSS
   Inspired by Meerecompany
=========================== */

:root {
  --main-blue: #002b6a;
  --sub-blue: #0071bc;
  --text-dark: #222;
  --gray: #f5f5f5;
  --white: #fff;
}

/* 기본 스타일 */
body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  margin: 0;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =====================================
   Header
===================================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo img {
  height: 42px;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--sub-blue);
}

/* =====================================
   Hero Section
===================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
  background: #000;
}

.hero video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero-text {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* =====================================
   About Section
===================================== */
.about {
  background: var(--white);
  padding: 140px 0;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--main-blue);
}

.about p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* =====================================
   Business Section
===================================== */
.business {
  background: var(--gray);
  padding: 140px 0;
  text-align: center;
}

.business h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--main-blue);
}

.business .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.business .item {
  background: var(--white);
  padding: 60px 20px;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  font-size: 1.2rem;
  font-weight: 500;
}

.business .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* =====================================
   Footer
===================================== */
.site-footer {
  background: var(--main-blue);
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--white);
  text-decoration: underline;
}

/* =====================================
   Responsive
===================================== */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 3rem; }
  .main-nav ul { gap: 20px; }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.3rem; }
  .hero-text p { font-size: 1rem; }
  .site-header .container {
    flex-direction: column;
    gap: 10px;
  }
}
/* ======================
   🟨 Mega Menu
====================== */
.bob-header {
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
  position: sticky;
  top: 0;
  z-index: 999;
}

.bob-header .container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.bob-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bob-header .logo img {
  height: 40px;
}

.main-menu .menu {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
}

.main-menu .menu > li {
  position: relative;
}

.main-menu .menu > li > a {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  padding: 10px 0;
  display: block;
}

.main-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 220px;
  padding: 20px;
  z-index: 999;
}

.main-menu .menu > li:hover .sub-menu {
  display: block;
}

/* 🧭 메가 메뉴 확장 */
.main-menu .menu > li.mega-menu {
  position: static;
}

.main-menu .menu > li.mega-menu .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  padding: 40px 60px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.main-menu .menu > li.mega-menu:hover .sub-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.main-menu .sub-menu li a {
  color: #444;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 8px 0;
}

.main-menu .sub-menu li a:hover {
  color: #000;
}

/* ✅ Tailwind Preflight 무력화: 이미지 block 정렬 방지 */
img {
  display: inline-block !important;
  vertical-align: middle !important;
}

.bob-header .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
/* Tailwind 로딩 전 잠깐의 깜빡임 방지 */
.bob-header .logo a,
.bob-header .menu {
  display: flex;
  align-items: center;
}

.bob-header .logo img {
  display: inline-block;
  vertical-align: middle;
  height: 40px;
}

.bob-header {
  background-color: #000;
  border-bottom: 1px solid #f7c600;
}

.menu {
  gap: 2rem;
  list-style: none;
}

.menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.menu li a:hover {
  color: #f7c600;
}
/* ✅ 헤더 전용 컨테이너 중앙정렬 강제 적용 */
.bob-header .header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto !important;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
}
