/* ===========================
    ±âº» ½ºÅ¸ÀÏ
    - ÀüÃ¼ ÆùÆ®, ¹è°æ, ±âº» ÅØ½ºÆ® »ö»ó ÁöÁ¤
    - À¯Áöº¸¼ö¸¦ À§ÇØ °¡Àå ±âº» ½ºÅ¸ÀÏ¸¸ ¼³Á¤
=========================== */
body {  
  font-family: 'Noto Sans KR', sans-serif; /* ÇÑ±Û Áö¿ø ÆùÆ® */
  margin: 0;  
  background: linear-gradient(135deg, #111, #1a1a1a); /* ±×¶óµ¥ÀÌ¼Ç ¹è°æ */
  color: #f5f5dc; /* ±âº» ±ÛÀÚ»ö */
}

/* ===========================
    Navbar
    - ½ºÅ©·Ñ ½Ã »ö»ó º¯È­, hover, active »óÅÂ
    - À¯Áöº¸¼ö¸¦ À§ÇØ transition ÅëÇÕ
=========================== */
.navbar {
  padding: 1rem 2rem;
  background-color: rgba(17,17,17,0.85); /* ±âº» ¹ÝÅõ¸í ¹è°æ */
  border-bottom: 1px solid rgba(191,165,111,0.2);
  transition: all 0.4s; /* ¸ðµç º¯È­¿¡ ºÎµå·¯¿î ÀüÈ¯ */
}
.navbar.scrolled {
  background-color: #0d0d0d; /* ½ºÅ©·Ñ ½Ã Â£Àº ¹è°æ */
  box-shadow: 0 4px 12px rgba(191,165,111,0.15); /* ¹Ì¹¦ÇÑ ±×¸²ÀÚ */
}
.navbar .nav-link {  
  color: #f5f5dc;  
  margin-right: 15px;  
  font-weight: 500;  
  padding-bottom: 5px; /* hover ¹ØÁÙ ¿©À¯ */
  transition: color 0.3s, border-bottom 0.3s;
}
.navbar .nav-link:hover {  
  color: #bfa56f;  
  border-bottom: 2px solid #bfa56f; /* hover ½Ã ¹ØÁÙ */
}
.navbar .nav-link.active {
  color: #bfa56f;
  font-weight: 700;
  border-bottom: 2px solid #bfa56f; /* ÇöÀç ¸Þ´º Ç¥½Ã */
}
.navbar-brand img { height: 40px; } /* ·Î°í ÀÌ¹ÌÁö ³ôÀÌ ÅëÀÏ */

/* ===========================
    Sections °øÅë
    - ¸ðµç sectionÀÇ ±âº» padding ÅëÀÏ
=========================== */
section { padding: 80px 0; }

/* ===========================
    ¹ý·ü»ç¹«¼Ò ¼Ò°³ (#intro)
    - ¹è°æ ÀÌ¹ÌÁö + ¿À¹ö·¹ÀÌ
    - ÄÁÅÙÃ÷´Â z-index·Î ¿À¹ö·¹ÀÌ À§ ¹èÄ¡
=========================== */
#intro {
  position: relative;
  color: #f5f5dc;
  background: url('../images/intro_bak.png') center/cover no-repeat; /* ¼Ò°³ ÀÌ¹ÌÁö */
  min-height: 1000px;
  padding: 300px 15px;
}
#intro::before {
  content: '';
  position: absolute;
  inset: 0; /* top:0;left:0;right:0;bottom:0 µ¿ÀÏ È¿°ú */
  background-color: rgba(0,0,0,0.6); /* ¹ÝÅõ¸í ¾îµÓ°Ô */
  z-index: 0; /* ÄÁÅÙÃ÷ µÚ ¹èÄ¡ */
}
#intro .container {  
  position: relative;  
  z-index: 1; /* ¿À¹ö·¹ÀÌ À§ Ç¥½Ã */
  display: flex;  
  flex-direction: column;  
  justify-content: center;  
  height: 100%;  
}

/* ¼Ò°³ Ä«µå °øÅë ½ºÅ¸ÀÏ
    - card-common : hover, ±×¸²ÀÚ, ÃÖ¼Ò ³ôÀÌ ÅëÀÏ
=========================== */
.card-common {
  background-color: rgba(0,0,0,0.5);
  border-radius: 15px;
  padding: 25px;
  color: #f5f5dc;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15), 0 10px 25px rgba(0,0,0,0.35);
  transition: transform 0.3s, box-shadow 0.3s, outline 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px; /* Ä«µå ÃÖ¼Ò ³ôÀÌ */
  outline: 1px solid rgba(255,255,255,0.08); /* Ä«µå Å×µÎ¸® ´À³¦ */
}
.card-common:hover {
  transform: translateY(-5px);
  outline-color: #bfa56f;
  box-shadow: 0 20px 45px rgba(191,165,111,0.25), 0 15px 35px rgba(0,0,0,0.5);
}

/* ===========================
    º¯È£»ç/°í¹® ¼½¼Ç (#lawyers)
=========================== */
#lawyers {
  color: #f5f5dc;
  padding: 120px 0;
  background: linear-gradient(to bottom, rgba(26,31,54,0.6), rgba(42,49,77,0.2));
}

/* ±¸ºÐ¼± */
.divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #bfa56f, transparent);
  margin: 40px 0;
}

/* º¯È£»ç Ä«µå */
.card-lawyer {
  background-color: #1a1a1a; /* Ä«µå ¹è°æ */
  border: 1px solid rgba(191,165,111,0.2);
  min-height: 320px; /* Ä«µå ³ôÀÌ ÅëÀÏ */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3), 0 8px 20px rgba(191,165,111,0.2);
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
  color: #f5f5dc;
  position: relative; /* »ó¼¼ ¹öÆ° À§Ä¡ ±âÁØ */
}
.card-lawyer:hover {
  transform: translateY(-5px);
  border: 1px solid #bfa56f;
  box-shadow: 0 20px 45px rgba(191,165,111,0.25), 0 15px 35px rgba(0,0,0,0.5);
}

/* º¯È£»ç ÀÌ¹ÌÁö */
.lawyer-img-wrapper {
  width: 100%;
  max-width: 180px;
  height: 180px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  background-color: transparent;
}
.lawyer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* ºñÀ² À¯Áö */
}

/* ÀÌ¸§/Àü¹®ºÐ¾ß */
.card-lawyer h4 { margin-top: 10px; font-weight: 600; color: #f5f5dc; }
.card-lawyer p { margin-top: 5px; font-size: 0.95rem; color: #f5f5dc; }

/* »ó¼¼º¸±â ¹öÆ° (¿À¸¥ÂÊ »ó´Ü µ¸º¸±â) */
.lawyer-card .lawyer-detail-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.7rem;
  color: #bfa56f;
  cursor: pointer;
}

/* ===========================
    ¾÷¹«ºÐ¾ß (#services)
=========================== */
#services {
  min-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(26,31,54,0.6), rgba(42,49,77,0.2));
  padding: 80px 15px;
}
.service-card {
  position: relative;
  border-radius: 15px;
  padding: 25px;
  color: #f5f5dc;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15), 0 10px 25px rgba(0,0,0,0.35);
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 0;
}
.service-card i, .service-card h4, .service-card p { position: relative; z-index: 1; }
.service-card i { font-size: 2rem; margin-bottom: 15px; color: #bfa56f; }
.service-card:hover {
  transform: translateY(-5px);
  border: 1px solid #bfa56f;
  box-shadow: 0 20px 45px rgba(191,165,111,0.25), 0 15px 35px rgba(0,0,0,0.5);
}

/* ===========================
    Áöµµ
=========================== */
.map-container iframe { width: 100%; height: 400px; border:0; border-radius:10px; }

/* ¿¬¶ôÃ³ ¾ÆÀÌÅÛ */
#contact .info-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
#contact .info-item i { color: #bfa56f; font-size: 1.5rem; margin-right: 20px; }
#contact .col-md-6:first-child { display: flex; flex-direction: column; justify-content: center; height: 100%; }

/* ===========================
    Footer
=========================== */
footer {
  background-color: #0d0d0d;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
  color: #bfa56f;
  border-top: 1px solid rgba(191,165,111,0.2);
}

/* ===========================
    ÅØ½ºÆ® ±×¶óµ¥ÀÌ¼Ç
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
.gradient-text {
  font-family: 'Poppins', 'Noto Sans KR', sans-serif;
  background: linear-gradient(90deg, #bfa56f, #f5f5dc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
  line-height: 1.2;
}
.decor-line {
  display: block;
  width: 60px;
  height: 2px;
  background-color: #bfa56f;
  margin: 0 auto 10px;
  border-radius: 1px;
}

/* ===========================
    ¹ÝÀÀÇü
=========================== */
@media (max-width: 992px) {
  .card-lawyer { min-height: auto; }
  .lawyer-img-wrapper { max-width: 140px; height: 140px; }
}
@media (max-width: 768px) {
  #intro, #services { min-height: auto; padding: 40px 15px; }
  #intro .container, #services .container { display: block; height: auto; justify-content: unset; align-items: unset; }
  .card-common, .service-card { min-height: auto; }
  .lawyer-card .row { flex-direction: column; align-items: center; }
  .lawyer-card .col-md-9, .lawyer-card .col-md-3 { max-width: 100%; }
  .lawyer-card .lawyer-bio { text-align: center; padding: 0; }
  .lawyer-detail-card { flex-direction: column; align-items: center; text-align:center; }
  .lawyer-detail-card .detail-left img { max-width: 260px; }
  .lawyer-detail-card .detail-right ul { text-align: left; }
}
@media (max-width: 576px) {
  .card-lawyer { min-height: auto; }
  .lawyer-img-wrapper { max-width: 120px; height: 120px; }
}

/* ===========================
    º¯È£»ç »ó¼¼ ¸ð´Þ
=========================== */
.lawyer-detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;          /* Ç×»ó flex À¯Áö */
  align-items: center;
  justify-content: center;
  
  opacity: 0;             /* ±âº» ¼û±è */
  pointer-events: none;     /* Å¬¸¯ ¹«½Ã */
  transform: scale(0.95);   /* ÀÛ°Ô ½ÃÀÛ */
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1050;
}

.lawyer-detail-overlay.open {
  opacity: 1;             /* º¸ÀÌ°Ô */
  pointer-events: auto;     /* Å¬¸¯ °¡´É */
  transform: scale(1);      /* ¿ø·¡ Å©±â */
}

.lawyer-detail-card {
  width: 100%;
  max-width: 980px;
  background: rgba(17,17,22,0.9);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  gap: 22px;
  color: #f5f5dc;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  align-items: flex-start;
}
.lawyer-detail-card .detail-left img { max-width: 220px; width: 100%; height: auto; border-radius: 8px; object-fit: contain; }
.lawyer-detail-card .detail-right { flex: 1; text-align: left; }
.lawyer-detail-card .detail-right h5 { margin:0 0 8px; font-size:1.25rem; color:#f5f5dc; }
.lawyer-detail-card .detail-right p { margin-bottom:10px; color:#ddd; }
.lawyer-detail-card .detail-right ul { margin:0; padding-left:18px; color:#e7e3d0; }

.close-detail {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #d4af37;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.close-detail:hover { color: #fff176; transform: scale(1.05); }

footer {
  background-color: #0d0d0d;
  text-align: center;
  padding: 20px 15px;
  font-size: 0.9rem;
  color: #bfa56f; /* ¸ðµç ÅØ½ºÆ® ±Ý»ö ÅëÀÏ */
  border-top: 1px solid rgba(191,165,111,0.2);
}

footer .footer-main,
footer .footer-info,
footer .footer-info p {
  color: #bfa56f; /* ¸ðµç ±Û¾¾ µ¿ÀÏ »ö»ó */
}

footer .footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.6;
  font-size: 0.85rem;
}

footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* ¸ð¹ÙÀÏ¿¡¼­´Â ¼¼·Î ½ºÅÃ */
@media (max-width: 768px) {
  footer .footer-row {
    flex-direction: column;
    gap: 6px;
  }
}

/* ===========================
   ¸ð¹ÙÀÏ ÃÖÀûÈ­ (768px ÀÌÇÏ)
=========================== */
@media (max-width: 768px) {

  /* --- ±âº» & Å¸ÀÌÆ÷±×·¡ÇÇ --- */
  body {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
  }

  section {
    padding: 50px 15px;
  }

  /* --- ³×ºñ°ÔÀÌ¼Ç ¹Ù --- */
  .navbar {
    padding: 0.6rem 1rem;
  }
  .navbar-nav {
    padding-top: 8px;
  }

  /* --- ¼Ò°³ ¼½¼Ç (#intro) --- */
  #intro {
    padding: 100px 15px 40px;
    min-height: auto;
  }
  #intro h1.gradient-text { font-size: 2rem; }
  #intro h2.gradient-text { font-size: 1.2rem; }

  /* --- º¯È£»ç/°í¹® Ä«µå --- */
  #lawyers .col-6 {
    padding-left: 5px;
    padding-right: 5px;
  }

  .lawyer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 12px;
    min-height: auto;
  }

  .card-lawyer {
    width: 100%;
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: none;      /* ±×¸²ÀÚ Á¦°Å */
    transition: none;      /* Æ®·£Áö¼Ç Á¦°Å */
    position: relative;     /* »ó¼¼ ¹öÆ° ±âÁØ */
  }

  .lawyer-img-wrapper {
    max-width: 100px;
    height: 100px;
  }
  .card-lawyer h4 { font-size: 0.95rem; margin-top: 8px; }
  .card-lawyer p { font-size: 0.85rem; margin-top: 4px; }

  .lawyer-card .lawyer-detail-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.3rem;
    color: #bfa56f;
    cursor: pointer;
    z-index: 5;
  }

  /* ===========================
     ¾÷¹« Ä«µå (#services)
  ============================ */
  #services {
    padding: 50px 15px;
  }

  /* ¼­ºñ½º Ä«µå ºÎ¸ð row */
  #services .row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* ÇÑ ÁÙ¿¡ 2°³ Ä«µå, ³ôÀÌ ÅëÀÏ */
  #services .col-6 {
    width: calc(50% - 5px);    /* ÇÑ ÁÙ¿¡ 2°³ */
    display: flex;
    align-items: stretch;      /* Ä«µå ³ôÀÌ ÅëÀÏ */
    margin-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .service-card {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 12px;
    box-shadow: none;
    transition: none;
  }
  .service-card h4 { font-size: 1rem; }
  .service-card p { font-size: 0.85rem; }

  /* --- ¿À½Ã´Â ±æ (#contact) --- */
  #contact .col-md-6:first-child {
    margin-bottom: 20px;
  }
  #contact .info-item {
    margin-bottom: 20px;
  }
  #contact h2 {
    text-align: center;
  }

  /* --- º¯È£»ç »ó¼¼ ¸ð´Þ --- */
  .lawyer-detail-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease; /* ÃÖ¼ÒÈ­ */
    z-index: 1050;
  }
  .lawyer-detail-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .lawyer-detail-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 95vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 15px;
    gap: 12px;
    background: rgba(17,17,22,0.95);
    border-radius: 12px;
    color: #f5f5dc;
    box-shadow: none;
    transition: none;
  }

  .lawyer-detail-card .detail-left img {
    max-width: 160px;
    width: 100%;
    height: auto;
  }

  .lawyer-detail-card .detail-right {
    text-align: left;
  }

  .close-detail {
    top: 8px;
    right: 8px;
    font-size: 24px;
    position: absolute;
    cursor: pointer;
    background: transparent;
    border: none;
  }

  /* --- ÇªÅÍ --- */
  footer .footer-row {
    flex-direction: column;
    gap: 6px;
  }
  footer .footer-info {
    flex-direction: column;
    gap: 6px;
    line-height: 1.6;
  }

}


