@font-face {
    font-family: 'CompanyFont';
    src: url('/font/Pretendard-Regular.otf') format('opentype');
}
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --navy:      rgb(44,59,82);
    --navy-mid:  #1C3157;
    --navy-light:#264573;
    --accent:    #4A8FD4;
    --accent2:   #6FB3E8;
    --silver:    rgb(130,130,130);
    --light:     rgb(220,220,220);
    --white:     #FFFFFF;
    --text-dark: #0D1B2E;
    --text-mid:  #3D5478;
    --text-light:#7A92AE;
    --red:      rgb(169,46,43);
    --gray:      rgb(220,221,221);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  ul {
    list-style: none;
    text-align:center;
    padding: 0;
    margin: 0;
  }

  li {
      display: inline-block;
      list-style: none;
  }

  a {
    text-decoration-line: none;
    user-select: none;
  }


  body {
    font-family: 'CompanyFont', 'Noto Sans KR', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
  }

  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;  /* 왼쪽 | 가운데 | 오른쪽 */
    align-items: center;
    padding: 0 5%;
    height: 70px;
    background: white;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--navy);
  }
  @keyframes fadeDown {
    from { opacity:0; transform: translateY(-20px); }
    to   { opacity:1; transform: translateY(0); }
  }

  /* 로고 영역 */
  .nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  .nav-logo-bar {
    display: flex; align-items: center;
  }
  .logo_box {
    display: flex; align-items: center;
    text-decoration: none;
  }
  .nav-logo img {
    height: 36px;
    width: auto;
  }

  .nav-links {
    display: flex;
    list-style: none;
    justify-content: center;  
  }
  .nav-links > li {
    width: 120px;
    text-align: center;
  }
  .nav-links a {
    display: block;
    color: var(--navy);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 0 20px;
    height: 70px;
    line-height: 70px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
  }


  .nav-links a:hover {
    color: var(--navy);
    font-weight: 700;
  }
  
  .nav-links li:hover::after { transform: scaleX(1); }

  .has-dropdown {
    position: relative;
  }

  .dropdown {
    display: none;
    position: absolute;
    top: 70px;
    background: var(--navy);
    border-top: 2px solid var(--accent);
    list-style: none;
    min-width: 120px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }

  .nav-links .dropdown li a {
    height: auto;
    line-height: 1.4;
    padding: 14px 20px;
    font-size: 13px;
    color: var(--silver);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .dropdown li a:hover {
    color: var(--white);
    background: rgba(74,143,212,0.15);
  }

  .has-dropdown:hover .dropdown {
    display: block;
  }

  
  /* ── HAMBURGER BUTTON ── */
  .hamburger {
    display: none;
    grid-column: 3;   
    justify-self: end;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s;
  }
  .hamburger:hover { background: #f0f4fb; }
  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
  }

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

  /* ── MOBILE MENU OVERLAY ── */
  .mobile-menu {
    display: block;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    top: 70px; /* nav 높이와 맞춤 */
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    overflow-y: auto;
    z-index: 999;
    padding: 1rem 0 2rem;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .mobile-menu.open {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    opacity: 1;
  }

  /* 1depth 항목 */
  .mobile-menu > ul > li {
    display: block; /* common.css의 li { display: inline-block } 덮어쓰기 */
  }
  .mobile-menu > ul > li > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    border-bottom: 1px solid var(--gray);
  }
  .mobile-menu > ul > li > span .arrow {
    font-size: 0.8rem;
    transition: transform 0.2s;
    color: var(--text-light);
  }
  .mobile-menu > ul > li.m-open > span .arrow {
    transform: rotate(180deg);
  }

  /* 2depth 항목 */
  .mobile-dropdown {
    display: none;
    background: #f4f6fa;
    border-bottom: 1px solid var(--gray);
    list-style: none;
  }
  .mobile-dropdown.open { display: block; }
  .mobile-dropdown li {
    display: block; /* inline-block 덮어쓰기 */
  }
  .mobile-dropdown li a {
    display: block;
    padding: 0.65rem 2.2rem;
    font-size: 0.9rem;
    color: var(--text-mid);
    border-bottom: 1px solid #eef0f5;
    height: auto;
    line-height: 1.5;
    transition: color 0.15s, background 0.15s;
  }
  .mobile-dropdown li a:hover {
    color: var(--navy);
    background: #e4e9f2;
  }
 

  /*히어로 공통*/
  .hero-sub {
      position: relative;
      background: var(--navy);
      overflow: hidden;
      padding: 100px 5% 90px;
      height: 450px;
      display: flex;
      align-items: center;
  }
  .hero-sub::before {
      content: '';
      position: absolute;
      top: -80px; right: -80px;
      width: 400px; height: 400px;
      border-radius: 50%;
      background: rgba(74,143,212,0.12);
  }
  .hero-sub::after {
      content: '';
      position: absolute;
      bottom: -60px; left: 30%;
      width: 260px; height: 260px;
      border-radius: 50%;
      background: rgba(232,168,53,0.08);
  }
  .hero-inner {
      position: relative;
      z-index: 1;
      max-width: 1100px;
      margin: 0 auto;
      width: 100%;
  }
  .hero-label {
      letter-spacing: 3px;
      text-transform: uppercase;
      margin-bottom: 18px;
      font-weight: 500;
  }
  .hero-sub h1 {
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 700;
      color: var(--white);
      line-height: 1.3;
      margin-bottom: 16px;
  }
  .hero-sub h1 span { color: var(--accent); }
  .hero-sub p {
      color: rgba(255,255,255,0.6);
      line-height: 1.9;
      font-size: clamp(13px, 3vw, 15px);
  }




  /* ── SCROLL REVEAL ── */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ── FOOTER ── */
  footer .logo { display: flex; align-items: center; gap: 8px; }
  footer .logo-bar { width: 3px; height: 18px; background: var(--accent); border-radius: 2px; }
  footer .logo-text { font-size: 13px; font-weight: 700; letter-spacing: 0.15em; color: var(--white); }
  footer p { font-size: 12px; color: var(--silver); }
  .footer-links { display: flex; gap: 24px; }
  .footer-links a { font-size: 12px; color: var(--silver); text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--white); }
  footer {
    background: #0A1628;
    padding: 40px 8%;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 10px; flex-wrap: wrap;
  }
  .footer-logo {
    font-size: 16px; font-weight: 700; color: var(--white);
    margin-bottom: 14px;
  }
  .footer-left p { font-size: 12px; color: var(--text-light); line-height: 2; }
  .footer-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  }
  .footer-right a {
    font-size: 12px; color: var(--silver);
    text-decoration: none; transition: color 0.2s;
  }
  .footer-right a:hover { color: var(--white); }
  .copyright { font-size: 11px; color: var(--text-light);width: 100%; text-align: center;}


  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    #hero, #about, #why { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-card-wrap { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .about-visual { height: 260px; }
    .hero-stats { gap: 20px; }
    .nav-links { display: none; }
  }

  @media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

}