/* ======================================================================
   [천사수랏간] 헤더 CSS - index.html 시안에서 그대로 분리
   ====================================================================== */

:root{
  --cream:#FFF8EF;
  --cream-2:#FFF1E1;
  --blossom:#F3B6C4;
  --blossom-deep:#E8899F;
  --sage:#7E9A6D;
  --sage-deep:#5C7A4F;
  --gold:#C99A46;
  --gold-deep:#A87C2E;
  --plum:#43241F;
  --plum-soft:#6B453B;
  --peach:#FBDFC4;
  --white:#FFFFFF;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 14px 34px rgba(107,69,59,0.12);
}

/* -------- Header -------- */
#header{
  position:sticky; top:0; z-index:50;
  background: rgba(255,248,239,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200,154,70,0.25);
}
.nav-wrap{
  max-width:1180px; margin:0 auto; padding: 18px 28px;
  display:flex; align-items:center; justify-content:space-between;
}
.logo{
  font-family:'Gowun Batang', serif;
  font-weight:700;
  font-size:1.55rem;
  color: var(--plum);
  display:flex; align-items:center; gap:10px;
}
.logo span.mark{
  width:34px; height:34px; border-radius:50%;
  background: linear-gradient(135deg, var(--blossom), var(--gold));
  display:inline-block;
}
.sr_logo_img{ height:38px; width:auto; display:block; }
nav ul{ list-style:none; display:flex; gap:34px; }
nav a{
  font-family:'Gowun Dodum', sans-serif;
  font-size:1rem; color:var(--plum-soft);
  position:relative; padding-bottom:4px;
}
nav a::after{
  content:""; position:absolute; left:0; bottom:0;
  width:0; height:2px; background:var(--blossom-deep);
  transition:width .25s ease;
}
nav a:hover::after{ width:100%; }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:40px; height:40px;
  background:none; border:none; cursor:pointer;
  padding:8px; flex-shrink:0;
}
.nav-toggle span{
  display:block; width:100%; height:2px;
  background: var(--plum); border-radius:2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.cta-short{ display:none; }
.btn{
  display:inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-family:'Gowun Dodum', sans-serif;
  font-size:0.95rem;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration:none;
}
.btn-primary{
  background: linear-gradient(135deg, var(--blossom-deep), var(--gold));
  color:var(--white);
  box-shadow: 0 10px 24px rgba(232,137,159,0.35);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow:0 14px 30px rgba(232,137,159,0.45); }
.nav-cta{ display:flex; gap:12px; }

/* 로그인/로그아웃/관리자/마이페이지 아이콘 */
.sr_account_wrap{ display:flex; align-items:center; gap:8px; margin-right:4px; }
.sr_acc_icon{
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%;
  color:var(--plum-soft); background:rgba(255,255,255,.5);
  transition:background .2s ease, color .2s ease;
}
.sr_acc_icon:hover{ background:var(--white); color:var(--blossom-deep); }
.sr_acc_text{
  display:inline-flex; align-items:center; justify-content:center;
  height:36px; padding:0 14px; border-radius:999px;
  font-family:'Gowun Dodum', sans-serif; font-size:.85rem; font-weight:700;
  color:var(--plum-soft); background:rgba(255,255,255,.5);
  transition:background .2s ease, color .2s ease; white-space:nowrap;
}
.sr_acc_text:hover{ background:var(--white); color:var(--blossom-deep); }
.sound_only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* 모바일 햄버거메뉴 안의 로그인/계정 항목 - 데스크톱에서는 숨김(헤더 아이콘줄만 사용) */
.sr_mobile_account_item{ display:none; }

/* 예약 버튼 - 심플 버전 (그라데이션/그림자 없이 단색 아웃라인) */
.btn-reserve{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--blossom-deep);
  color: var(--blossom-deep);
  background: transparent;
  font-family:'Gowun Dodum', sans-serif;
  font-size:1rem;
  font-weight:700;
  text-decoration:none;
  transition: background .2s ease, color .2s ease;
}
.btn-reserve:hover{ background: var(--blossom-deep); color: var(--white); }

/* -------- 서브메뉴(드롭다운) -------- */
.has-sub{ position:relative; }
.nav-parent-row{ display:flex; align-items:center; gap:2px; }
.nav-chevron{
  display:none; background:none; border:none; cursor:pointer;
  color:var(--plum-soft); font-size:0.75rem; padding:4px;
}
.submenu{ list-style:none; display:flex; flex-direction:row; gap:17px; }
.submenu a::after{ display:none; }

@media (min-width:981px){
  .submenu{
    position:absolute; top:100%; left:50%; transform:translate(-50%,6px);
    background:var(--white); border-radius:14px; box-shadow:var(--shadow);
    padding:8px; min-width:180px;
    opacity:0; visibility:hidden;
    transition: opacity .2s ease, transform .2s ease;
    z-index:60;
  }
  .has-sub:hover .submenu, .has-sub.open .submenu{
    opacity:1; visibility:visible; transform:translate(-50%,0);
  }
  .submenu a{ display:block; padding:6px 14px; border-radius:8px; font-size:0.88rem; white-space:nowrap; color:var(--plum-soft); }
  .submenu a:hover{ background:var(--cream-2); color:var(--blossom-deep); }
}

/* ===== Tablet & below (≤980px) ===== */
@media (max-width: 980px){
  /* 헤더 배경을 완전 불투명으로 - 모바일에서 backdrop-filter 렌더링 오류로
     메뉴/헤더 뒤 콘텐츠가 비쳐보이는 현상 방지 */
  #header{
    background: var(--cream) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .nav-toggle{ display:flex; }
  nav{
    position:absolute; top:100%; left:0; right:0;
    background-color: var(--cream);
    border-bottom: 1px solid rgba(200,154,70,0.25);
    box-shadow: var(--shadow);
    max-height:0; overflow:hidden;
    transition: max-height .3s ease;
    z-index: 60;
    isolation: isolate; /* 부모(#header)의 블러/투명 합성과 분리해 확실히 불투명하게 렌더링 */
  }
  nav.open{ max-height:70vh; overflow-y:auto; }
  nav ul{ flex-direction:column; gap:0; padding: 8px 28px 18px; align-items:stretch; }
  nav ul li{ border-bottom:1px solid rgba(200,154,70,0.15); }
  nav ul li:last-child{ border-bottom:none; }
  nav a{ display:block; padding:15px 2px; }
  nav a::after{ display:none; }

  .nav-chevron{ display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; font-size:2.25rem; line-height:1; }
  .nav-parent-row{ justify-content:space-between; }
  .submenu{
    display:flex; flex-direction:column; gap:0;
    max-height:0; overflow:hidden; visibility:hidden; padding-left:14px;
    transition: max-height .25s ease, visibility 0s linear .25s;
  }
  .has-sub.open .submenu{
    max-height:340px; visibility:visible;
    transition: max-height .25s ease, visibility 0s linear 0s;
  }
  .has-sub.open .nav-chevron{ transform:rotate(180deg); }
  .submenu a{ display:block; padding:7px 2px; font-size:0.88rem; color:var(--plum-soft); }

  /* [천사수랏간 커스텀] 모바일에서는 헤더의 계정 아이콘줄 대신, 햄버거 메뉴 맨 아래 항목을 사용 */
  .sr_account_wrap{ display:none; }
  .sr_mobile_account_item{
    display:flex; flex-wrap:wrap; gap:8px 18px;
    padding:16px 2px 6px; margin-top:4px;
    border-top:1px solid rgba(200,154,70,0.25) !important;
  }
  .sr_mobile_account_item a{
    display:inline-block; padding:0; font-size:0.86rem;
    color:var(--gold-deep); font-weight:700;
  }

  .nav-cta{ order:2; margin-left:auto; }
  .nav-toggle{ order:3; margin-left:10px; }
}

/* ===== Phone (≤640px) ===== */
@media (max-width: 640px){
  .nav-wrap{ padding: 14px 20px; }
  .logo{ font-size:1.2rem; }
  .btn-reserve{ padding:8px 16px; font-size:0.95rem; }
  .cta-full{ display:none; }
  .cta-short{ display:inline; }
}

/* ===== Small phone (≤380px) ===== */
@media (max-width: 380px){
  .logo{ font-size:1.05rem; }
  .logo .mark{ width:26px; height:26px; }
}
