/* =========================================================
  TBC 여자골프대회 - common.css
  전체 페이지 공통 CSS
  - reset
  - 컬러/폰트 변수
  - 공통 헤더/푸터 기본값
  - 공통 버튼/링크 기본값
========================================================= */

/* ---------- Reset / Base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #05070a;
  --navy: #08111f;
  --navy-2: #101820;
  --navy2: #101820;
  --blue: #F05F22;
  --blue-light: #ff8a4f;
  --orange: #F05F22;
  --orange-dark: #d94f18;
  --orange-light: #ff8a4f;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #f5f7fa;
  --gray-200: #dce2e8;
  --gray-400: #aab4bf;
  --gray-500: #74808c;
  --gray-700: #3c4652;
  --green: #1f9d63;
  --red: #e64040;
  --yellow: #b7791f;
  --line: rgba(255,255,255,0.14);
  --shadow: 0 24px 70px rgba(0,0,0,0.28);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: -0.035em;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* ---------- Header common base ---------- */
.topbar {
  z-index: 100;
}

.topbar-inner {
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  cursor: pointer;
}

/* ---------- Footer common base ---------- */
.footer {
  background: #05070a;
  color: rgba(255,255,255,0.58);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-inner strong {
  color: #fff;
}

/* ---------- Utility common ---------- */
.is-hidden {
  display: none !important;
}


/* =========================================================
  공통 구조 통일 패치
  - body 직계 구조: header / div.page.page-xxx / footer
  - PC 2depth 드롭다운
  - 모바일 햄버거 메뉴
  - 서브 상단 공통 비주얼 클래스
========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header .site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: #fff;
}

.site-header .brand-logo {
  width: auto;
  height: 42px;
  display: block;
  object-fit: contain;
}

.site-header .brand-text small {
  display: block;
  color: var(--gray-500, #8c97a3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: -2px;
}

.site-header .brand-text span {
  display: block;
  font-size: 18px;
}

.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255,255,255,0.72);
  font-size: 18px;
  font-weight: 800;
}

.site-header .nav-item {
  position: relative;
}

.site-header .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  color: inherit;
}

.site-header .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--orange, var(--blue, #F05F22));
  transition: width .22s ease;
}

.site-header .nav-link:hover,
.site-header .nav-item:focus-within .nav-link {
  color: #fff;
}

.site-header .nav-link:hover::after,
.site-header .nav-item:focus-within .nav-link::after {
  width: 100%;
}

.site-header .nav-arrow {
  font-size: 11px;
  opacity: .75;
}

.site-header .depth-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 170px;
  padding: 10px;
  background: rgba(16,24,32,.98);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 50px rgba(0,0,0,.26);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .2s ease;
}

.site-header .depth-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.site-header .nav-item:hover .depth-menu,
.site-header .nav-item:focus-within .depth-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.site-header .depth-menu a {
  display: block;
  padding: 12px 12px;
  color: rgba(255,255,255,.72);
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.site-header .depth-menu a:hover {
  background: rgba(240,95,34,.12);
  color: #fff;
}

.site-header .header-btn {
  padding: 12px 20px;
  background: var(--orange, var(--blue, #F05F22));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  border-radius: 2px;
  transition: .2s;
  white-space: nowrap;
}

.site-header .header-btn:hover {
  background: var(--orange-dark, #d94f18);
}

.site-header .mobile-menu {
  display: none;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
}

.site-header .mobile-menu span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #fff;
  transition: .22s ease;
}

.site-header.is-mobile-open .mobile-menu span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-mobile-open .mobile-menu span:nth-child(2) {
  opacity: 0;
}

.site-header.is-mobile-open .mobile-menu span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-footer {
  background: #05070a;
  color: rgba(255,255,255,.58);
  padding: 44px 32px 58px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.site-footer .site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer strong {
  color: #fff;
  font-size: 19px;
}

.site-footer p {
  font-size: 14px;
  margin-top: 8px;
}

.sub-visual {
  position: relative;
  min-height: 420px;
  padding: 132px 32px 74px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.sub-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,rgba(5,7,10,.95) 0%,rgba(5,7,10,.7) 46%,rgba(5,7,10,.22) 100%),
    url("https://images.unsplash.com/photo-1592919505780-303950717480?auto=format&fit=crop&w=2200&q=85") center/cover no-repeat;
  opacity: .88;
}

.sub-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 160px;
  background: linear-gradient(180deg,transparent,#f5f7fa 92%);
}

.sub-visual-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.sub-visual h1 {
  font-size: clamp(42px,7vw,84px);
  line-height: .98;
  letter-spacing: -.085em;
  font-weight: 950;
  margin-bottom: 22px;
}

.sub-visual p {
  max-width: 760px;
  color: rgba(255,255,255,.74);
  font-size: 19px;
  line-height: 1.72;
}

.sub-basic-content {
  position: relative;
  z-index: 5;
  background: #f5f7fa;
  color: #101820;
  padding: 58px 32px 120px;
}

.sub-basic-card {
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dce2e8;
  box-shadow: 0 20px 50px rgba(8,17,31,.08);
  padding: 44px;
}

.sub-basic-card h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.08em;
  margin-bottom: 18px;
}

.sub-basic-card p {
  color: #5f6b76;
  font-size: 17px;
  line-height: 1.76;
}

@media (max-width: 1060px) {
  .site-header .site-nav,
  .site-header .header-btn {
    display: none;
  }

  .site-header .mobile-menu {
    display: block;
  }

  .site-header.is-mobile-open .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 18px 18px;
    background: rgba(5,7,10,.98);
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .site-header .nav-item {
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .site-header .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 0;
  }

  .site-header .depth-menu {
    position: static;
    min-width: 0;
    padding: 0 0 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .site-header .nav-item.is-open .depth-menu {
    display: block;
  }

  .site-header .depth-menu a {
    padding: 12px 14px;
    background: rgba(255,255,255,.05);
    margin-bottom: 4px;
  }
}

@media (max-width: 760px) {
  .site-header .site-header-inner {
    padding: 14px 18px;
  }

  .site-header .brand-logo {
    height: 34px;
  }

  .site-header .brand-text span {
    font-size: 16px;
  }

  .sub-visual {
    min-height: 380px;
    padding: 108px 18px 58px;
  }

  .sub-visual h1 {
    font-size: 46px;
  }

  .sub-visual p {
    font-size: 16px;
  }

  .sub-basic-content {
    padding: 36px 18px 80px;
  }

  .sub-basic-card {
    padding: 28px 22px;
  }
}

@media (max-width: 460px) {
  .site-header .brand-text small {
    display: none;
  }

  .site-header .brand-text span {
    font-size: 14px;
  }

  .site-header .brand-logo {
    height: 30px;
  }
}


/* =========================================================
  모바일 햄버거 / 2depth 메뉴 애니메이션 보정
  - 기존 display:none/block 방식 제거
  - max-height + opacity + transform 방식으로 자연스럽게 열림
========================================================= */

@media (max-width: 1060px) {
  .site-header {
    --mobile-header-height: 68px;
  }

  .site-header .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    padding: 0 18px;
    overflow: hidden;
    background: rgba(5,7,10,.98);
    border-bottom: 1px solid rgba(255,255,255,0);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      max-height .32s ease,
      opacity .22s ease,
      transform .22s ease,
      padding .22s ease,
      border-color .22s ease;
  }

  .site-header.is-mobile-open .site-nav {
    display: block;
    max-height: calc(100vh - var(--mobile-header-height));
    padding: 12px 18px 18px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    border-bottom-color: rgba(255,255,255,.12);
  }

  .site-header .nav-item {
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .site-header .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 0;
  }

  .site-header .nav-arrow {
    transition: transform .22s ease;
  }

  .site-header .nav-item.is-open .nav-arrow {
    transform: rotate(180deg);
  }

  .site-header .depth-menu,
  .site-header .nav-item:hover .depth-menu,
  .site-header .nav-item:focus-within .depth-menu {
    position: static;
    display: block;
    min-width: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    transform: translateY(-6px);
    transition:
      max-height .3s ease,
      opacity .22s ease,
      transform .22s ease,
      padding .22s ease;
  }

  .site-header .depth-menu::before {
    display: none;
  }

  .site-header .nav-item.is-open .depth-menu,
  .site-header .nav-item.is-open:hover .depth-menu,
  .site-header .nav-item.is-open:focus-within .depth-menu {
    max-height: 420px;
    padding: 0 0 12px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-header .depth-menu a {
    display: block;
    padding: 12px 14px;
    margin-bottom: 4px;
    background: rgba(255,255,255,.05);
    border-radius: 2px;
    color: rgba(255,255,255,.72);
    transform: translateY(-4px);
    opacity: 0;
    transition:
      opacity .22s ease,
      transform .22s ease,
      background .18s ease,
      color .18s ease;
  }

  .site-header .nav-item.is-open .depth-menu a {
    opacity: 1;
    transform: translateY(0);
  }

  .site-header .nav-item.is-open .depth-menu a:nth-child(1) { transition-delay: .03s; }
  .site-header .nav-item.is-open .depth-menu a:nth-child(2) { transition-delay: .06s; }
  .site-header .nav-item.is-open .depth-menu a:nth-child(3) { transition-delay: .09s; }
  .site-header .nav-item.is-open .depth-menu a:nth-child(4) { transition-delay: .12s; }
  .site-header .nav-item.is-open .depth-menu a:nth-child(5) { transition-delay: .15s; }

  .site-header .depth-menu a:hover {
    background: rgba(240,95,34,.14);
    color: #fff;
  }
}

@media (max-width: 760px) {
  .site-header {
    --mobile-header-height: 62px;
  }
}
