/* ==========================================================================
   my.leekim.com site polish - lk-site.css v0.3 (2026-11-13)
   Scope: font family (Pretendard), line height, card contrast, top banner.
   Font sizes are left as the theme defines them (body 16px).
   Loads after the zurblk theme CSS. No layout/grid changes.
   Local change (Don, 2026-11-13): italic reset and word-break: keep-all are
   limited to Korean pages with :lang(ko), so EN/VN/CN keep italics and
   normal line breaking. Everything else is unchanged from JK's v0.1.
   v0.2 (JK, 2026-11-13): sections 6 (brand button colours) and 7 (home
   company-name search bar) added. Based on Don's live file.
   v0.3 (JK, 2026-11-13): section 8 (contact page /contact) added.
   v0.4 (JK, 2026-11-16; merged by Don): sections 10 (rounded buttons),
   11 (inputs, login window, newsletter, /packages, /contact cards, home
   photo) and 12 (template pages). Local additions at the end: FAQ answer
   links inline (JK item 11) and inputs joined to a button.
   v0.4.1 (JK, 2026-11-17): 10-2 added (home "패키지 보기" button text was
   white on white). Based on the live v0.4 file.
   Section 9 (back office) lives in lk-backoffice.css, because this file is
   not loaded on /dashboard.
   ========================================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --lk-ink: #15120D;
  --lk-body: #3A352D;
  --lk-muted: #6B6458;
  --lk-bronze: #B5863E;
  --lk-bronze-deep: #8F6F31;
  --lk-gold-card: #A57A35;   /* gold card background, darker for white-text contrast */
  --lk-paper: #FAF8F4;
  --lk-font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

/* 1. Typography ----------------------------------------------------------- */
body,
button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
p, li, td, th, label, a {
  font-family: var(--lk-font);
}

body {
  color: var(--lk-body);
  overflow-wrap: break-word;
}
body:lang(ko) { word-break: keep-all; }

p, li {
  line-height: 1.75;
}

h1, h2, h3, h4, h5 {
  color: var(--lk-ink);
  letter-spacing: -0.01em;
}

h1.thin-text, h1.semibold, .block-content-p h1 { font-weight: 600; }
h4 { font-weight: 600; }

/* Korean text must not be synthesised italic */
:lang(ko) em, :lang(ko) i:not([class*="fa"]) { font-style: normal; }

/* Justified Korean text leaves wide gaps; use left alignment */
.text-justify, .text-align-justify { text-align: left !important; }

/* 2. Coloured cards: readable white text ------------------------------------ */
.st-bg,
.block-content-p .primary-bg {
  background-color: var(--lk-gold-card) !important;
}
.content-checking-list::before { border-right-color: var(--lk-gold-card) !important; }
@media screen and (max-width: 39.9375em) {
  .content-checking-list::before { border-bottom-color: var(--lk-gold-card) !important; }
}
.st-color { color: var(--lk-gold-card) !important; }
.step-checking-list.primary-color { color: var(--lk-gold-card) !important; }

.st-bg p, .nd-bg p, .rd-bg p,
.primary-bg p, .st-bg li, .nd-bg li, .rd-bg li {
  line-height: 1.7;
}

/* 3. Top banner ------------------------------------------------------------ */
.block-topbanner h1,
.top-banner-title h1 {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.block-topbanner h4,
.top-banner-title h4 {
  font-weight: 400;
  opacity: 0.9;
}

/* 4. Callouts and boxes ---------------------------------------------------- */
.callout {
  border-color: #E6E0D5;
}
.callout h4 { color: var(--lk-ink); }

/* 5. Buttons -------------------------------------------------------------- */
.button { font-family: var(--lk-font); font-weight: 600; }

/* 6. Brand button colours (red "alert" and green "success" buttons) ------- */
.button.alert, .button.success,
input.button.alert, input.button.success {
  background-color: var(--lk-bronze) !important;
  border-color: var(--lk-bronze) !important;
  color: #FFFFFF !important;
}
.button.alert:hover, .button.success:hover,
.button.alert:focus, .button.success:focus {
  background-color: #8C6630 !important;
  border-color: #8C6630 !important;
  color: #FFFFFF !important;
}

/* 7. Home company-name search bar ---------------------------------------- */
.name-check-form {
  background: rgba(21, 18, 13, 0.55) !important;
  border-radius: 16px !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
#check-name-form .grid-x { align-items: stretch; }
#check-name-form .form-item { margin: 0; }
#check-name-form input#edit-title {
  height: 54px;
  margin: 0;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 10px 0 0 10px;
  box-shadow: none;
  font-size: 1rem;
  background: #FFFFFF;
}
#check-name-form input#edit-title:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--lk-bronze);
}
#check-name-form #edit-button {
  height: 54px;
  margin: 0;
  border: 0;
  border-radius: 0 10px 10px 0;
  background-color: var(--lk-bronze);
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
}
#check-name-form #edit-button:hover,
#check-name-form #edit-button:focus { background-color: #8C6630; }
@media screen and (max-width: 63.9375em) {
  #check-name-form input#edit-title { border-radius: 10px; }
  #check-name-form #edit-button { border-radius: 10px; margin-top: 0.5rem; }
}

/* 8. Contact page (/contact) ---------------------------------------------- */
/* 8-1. Four colour circles -> white cards with a bronze top line */
#contactContent .contact-circle-block {
  width: 100% !important;
  height: 100% !important;
  min-height: 170px;
  padding: 1.5rem 1.25rem !important;
  border-radius: 0 !important;
  background: #FFFFFF !important;
  border: 1px solid #E6E0D5;
  border-top: 3px solid var(--lk-bronze);
  display: flex;
  align-items: flex-start;
}
#contactContent .contact-circle-text {
  position: static !important;
  transform: none !important;
  width: auto !important;
  padding: 0 !important;
  text-align: left !important;
  color: var(--lk-body) !important;
}
#contactContent .contact-circle-text span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--lk-ink) !important;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: none !important;
}
#contactContent .contact-circle-text p {
  margin: 0;
  color: var(--lk-body) !important;
  font-size: 0.95rem;
}
#contactContent .grid-x.grid-padding-x.margin-vertical-1 > .cell { display: flex; }

/* 8-2. Inquiry form */
#contactContent .cell[style*="f2f2f2"] {
  background-color: var(--lk-paper) !important;
  border-left: 1px solid #E6E0D5;
}
#contactContent form label {
  color: var(--lk-ink);
  font-weight: 600;
  font-size: 0.9rem;
}
#contactContent form input[type="email"],
#contactContent form input[type="text"],
#contactContent form select,
#contactContent form textarea {
  border: 1px solid #DDD5C8;
  border-radius: 8px;
  box-shadow: none;
  background-color: #FFFFFF;
}
#contactContent form input[type="email"],
#contactContent form input[type="text"],
#contactContent form select { height: 44px; }
#contactContent form input:focus,
#contactContent form select:focus,
#contactContent form textarea:focus {
  border-color: var(--lk-bronze);
  box-shadow: 0 0 0 2px rgba(181, 134, 62, 0.15);
}
#contactContent form #edit-submit--2 {
  min-width: 180px;
  padding: 0.85rem 1.75rem;
  border-radius: 8px !important;
  font-size: 1rem;
}

/* 8-3. Company band above the map: light paper instead of solid gold */
#contactContent #sgf-maps {
  background-color: var(--lk-paper) !important;
  color: var(--lk-ink) !important;
  border-top: 1px solid #E6E0D5;
}
#contactContent #sgf-maps h1 {
  color: var(--lk-ink) !important;
  font-size: 1.75rem;
}
#contactContent #sgf-maps p,
#contactContent #sgf-maps > .grid-container > span { color: var(--lk-body) !important; }
#contactContent #sgf-maps .secondary-color { color: var(--lk-bronze-deep) !important; }
#contactContent #sgf-maps .map-block { padding: 0 !important; border: 1px solid #E6E0D5; }
@media screen and (max-width: 63.9375em) {
  #contactContent .contact-circle-block { min-height: 0; }
}

/* ==========================================================================
   10. Rounded buttons on customer pages  v0.4 draft (JK, 2026-11-16)
   Buttons were square except the ones already rounded in sections 7 and 8.
   Back office (body.backside) is not affected.
   ========================================================================== */
body:not(.backside) .button,
body:not(.backside) input.button,
body:not(.backside) button.button {
  border-radius: 8px;
}

/* 10-1 Orange "warning" buttons (home band "시작하기", /packages "주문")
   (#FFAE00) are off brand on the bronze cards. White button, dark text. */
body:not(.backside) .button.warning {
  background-color: #FFFFFF;
  color: var(--lk-ink);
}
body:not(.backside) .button.warning.large { padding: 0.95rem 2.25rem; }
body:not(.backside) .button.warning:hover,
body:not(.backside) .button.warning:focus {
  background-color: var(--lk-paper, #FAF8F4);
  color: var(--lk-ink);
}

/* 10-2 Fix (JK, 2026-11-17): some warning buttons carry an inline white
   text colour in the template (home "패키지 보기 »",
   #home-view-package-scrooldown-btn: style="color: #fefefe"). With 10-1's
   white background the text disappeared. Override the inline colour. */
body:not(.backside) .button.warning[style*="color"],
body:not(.backside) .button.warning[style*="color"]:hover,
body:not(.backside) .button.warning[style*="color"]:focus {
  color: var(--lk-ink) !important;
}

/* ==========================================================================
   11. Inputs, login/sign-up window, newsletter, /packages cards
   v0.4 draft (JK, 2026-11-16). Customer pages only (not body.backside).
   ========================================================================== */

/* 11-1 Text inputs and selects: rounded like the buttons (section 10) */
body:not(.backside) input[type="text"],
body:not(.backside) input[type="email"],
body:not(.backside) input[type="password"],
body:not(.backside) input[type="tel"],
body:not(.backside) input[type="number"],
body:not(.backside) select,
body:not(.backside) textarea {
  border-radius: 8px;
  border-color: #DDD5C8;
  box-shadow: none;
}
body:not(.backside) input[type="text"]:focus,
body:not(.backside) input[type="email"]:focus,
body:not(.backside) input[type="password"]:focus,
body:not(.backside) input[type="tel"]:focus,
body:not(.backside) select:focus,
body:not(.backside) textarea:focus {
  border-color: var(--lk-bronze);
  box-shadow: 0 0 0 2px rgba(181, 134, 62, 0.15);
}

/* 11-2 Newsletter (footer): input and "구독" button same height */
#mc_embed_signup #mce-EMAIL,
#mc_embed_signup #mc-embedded-subscribe { height: 44px; margin-bottom: 0; }

/* 11-3 Login / sign-up window: same heading colour, readable disabled buttons
   (the buttons stay disabled until reCAPTCHA is ticked) */
body:not(.backside) h2.semibold.primary-color,
body:not(.backside) h2.semibold.secondary-color { color: var(--lk-ink); }
body:not(.backside) .button.is-disabled,
body:not(.backside) .button[disabled] {
  opacity: 1;
  background-color: #E6DFD3 !important;
  color: #8A8478 !important;
  cursor: not-allowed;
}

/* 11-4 /packages cards: prices and "주문" buttons on one line across the four
   cards (the descriptions have different lengths) */
#packageTable .large-8 > .grid-x > .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#packageTable .large-8 > .grid-x > .cell > p { flex: 1 1 auto; }
#packageTable .large-8 > .grid-x > .cell > h5 { color: rgba(255, 255, 255, 0.85); }
#packageTable .button.warning .border-r { border-right-color: rgba(21, 18, 13, 0.2); }

/* 11-5 /contact "저희가 도와드립니다" cards: one card had line-height 1.3
   (theme rule ".contact-circle-text p") while the others showed 1.7 */
#contactContent .contact-circle-text p { line-height: 1.7; }

/* 11-6 Home "회사소개" photo: rounded like the cards (12px).
   The /about-us photo is already rounded inside the page content. */
#block-about-us img { border-radius: 12px; }

/* ==========================================================================
   12. Template pages: service detail, /additionals, /faqs, home  v0.4 draft
   (JK, 2026-11-16). Customer pages only. Same card style as the page
   content updated today (border #E6E0D5, bronze top line, 12px radius).
   ========================================================================== */

/* 12-1 Justified text leaves wide gaps in Korean/Chinese: left align */
body:not(.backside) .text-justify { text-align: left; }

/* 12-2 Service detail: info table as a rounded card, order button bronze */
#block-zurblk-content .large-6.cell.text-center > table {
  border: 1px solid #E6E0D5;
  border-top: 3px solid var(--lk-bronze);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
#block-zurblk-content .large-6.cell.text-center > a.button.secondary.large {
  background-color: var(--lk-bronze);
  color: #FFFFFF;
}

/* 12-3 Grey "secondary" buttons (#767676, e.g. FAQ "Search") to ink */
body:not(.backside) .button.secondary {
  background-color: var(--lk-ink);
  color: #FFFFFF;
}

/* 12-4 /additionals service cards */
#additionalContent .cell.block-border {
  border: 1px solid #E6E0D5;
  border-top: 3px solid var(--lk-bronze);
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
}

/* 12-5 FAQ answer box and the top FAQ list */
#block-zurblk-content .block-border.light-bg,
#faqCategories .block-border.light-bg {
  border: 1px solid #E6E0D5;
  border-top: 3px solid var(--lk-bronze);
  border-radius: 12px;
  background: #FFFFFF;
}
body:not(.backside) ul.accordion {
  border: 1px solid #E6E0D5;
  border-radius: 12px;
  overflow: hidden;
}

/* 12-6 Home "회사소개 상세 정보 »" link was pure red (#FF0000) */
a.readmore-text { color: #8F6F31; }

/* 12-7 Footer contact cards on every page (더 많은 정보 / 상담원 연결 / 라이브 채팅 / 사무실 방문) */
footer .sub-footer .callout {
  border: 1px solid #E6E0D5;
  border-top: 3px solid var(--lk-bronze);
  border-radius: 12px;
}

/* 12-8 /additionals category tabs: rounded like the buttons */
#additionalservice-tabs .tabs-title > a { border-radius: 8px; }

/* ==========================================================================
   Local additions (Don, 2026-11-16)
   ========================================================================== */

/* JK item 11: links inside the FAQ answer stay inline (the category menu
   rule "#faqCategories a { display: block; }" also hit them).
   Replaces JK's temporary block "FAQ answer links inline (CSS) 2026-11-16". */
#faqCategories .large-9 a { display: inline; }

/* Inputs joined to a button (.input-group, e.g. the promotion code form):
   sections 10 and 11-1 round both; keep the joined side square. */
body:not(.backside) .input-group input[type="text"] { border-radius: 8px 0 0 8px; }
body:not(.backside) .input-group .input-group-button .button { border-radius: 0 8px 8px 0; }

/* JK item 13: one <h1> per page. Section titles on the home page, /contact
   and /faqs became <h2 class="h1"> (same size through Foundation's .h1).
   Mirror the two h1-only rules above (sections 1 and 8) so they look the same. */
h2.h1.thin-text, h2.h1.semibold, .block-content-p h2.h1 { font-weight: 600; }
#contactContent #sgf-maps h2.h1 {
  color: var(--lk-ink) !important;
  font-size: 1.75rem;
}
