/* ==========================================================================
   BRANMORE — public site stylesheet
   ========================================================================== */

:root {
  --bg-dark: #0b0c10;
  --bg-darker: #060708;
  --bg-light: #ffffff;
  --bg-soft: #f5f6f8;
  --text-light: #f5f5f7;
  --text-dim: #a7abb4;
  --text-dark: #14161b;
  --text-mid: #565a63;
  --accent: #ff5b2e;
  --accent-dark: #e14a20;
  --border-soft: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --header-h: 84px;
  --container: 1180px;
  --ff: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.section-desc { margin-top: 14px; color: var(--text-mid); font-size: 16px; line-height: 1.7; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: currentColor; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  transition: background-color .35s ease, box-shadow .35s ease, color .35s ease, height .3s ease;
  color: var(--text-light);
}
.site-header.is-solid,
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  color: var(--text-dark);
  height: 68px;
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-logo { display: flex; align-items: center; }
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.logo-text em { font-style: normal; color: var(--accent); }
.logo-img { height: 30px; }
.logo-img.logo-light { display: block; }
.logo-img.logo-dark { display: none; }
.site-header.is-solid .logo-img.logo-light,
.site-header.scrolled .logo-img.logo-light { display: none; }
.site-header.is-solid .logo-img.logo-dark,
.site-header.scrolled .logo-img.logo-dark { display: block; }

.main-nav ul { display: flex; gap: 40px; }
.main-nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.nav-cta { flex-shrink: 0; }
.site-header.is-transparent .nav-cta { border-color: rgba(255,255,255,0.6); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: currentColor; transition: all .25s ease; }

.mobile-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.98);
  color: var(--text-dark);
  transition: max-height .3s ease;
}
.mobile-nav ul { padding: 10px 24px 20px; }
.mobile-nav a { display: block; padding: 14px 0; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--border-soft); }
body.nav-open .mobile-nav { max-height: 60vh; overflow-y: auto; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------ page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 70px) 0 60px;
  background: var(--bg-dark);
  color: var(--text-light);
}
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
.page-hero p { margin-top: 16px; color: var(--text-dim); font-size: 16px; max-width: 640px; line-height: 1.7; }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: radial-gradient(1200px 600px at 80% 20%, rgba(255,91,46,0.25), transparent 60%), var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 10% 90%, rgba(255,91,46,0.12), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero-tag { font-size: 14px; letter-spacing: 0.2em; color: var(--accent); font-weight: 700; margin-bottom: 22px; }
.hero-title {
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--accent); }
.hero-sub { margin-top: 26px; font-size: clamp(16px, 2vw, 20px); color: var(--text-dim); max-width: 620px; line-height: 1.7; }
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 12px; letter-spacing: 0.1em;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: scrollcue 1.6s infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(-6px);} 50% {opacity:1;} 100% { opacity: 0; transform: translateY(10px);} }

/* --------------------------------------------------------------- sections */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-soft); }
.section.dark { background: var(--bg-dark); color: var(--text-light); }
.section.dark .section-desc { color: var(--text-dim); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* company intro (home) */
.intro-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro-block .section-desc { font-size: 18px; white-space: pre-line; }
.intro-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.stat-card { padding: 26px; border-radius: var(--radius); background: var(--bg-light); box-shadow: var(--shadow); border: 1px solid var(--border-soft); }
.stat-num { font-size: 34px; font-weight: 800; color: var(--accent); }
.stat-label { margin-top: 6px; font-size: 14px; color: var(--text-mid); }

/* services grid */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  padding: 30px 24px;
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.service-title { margin-top: 12px; font-size: 18px; font-weight: 800; }
.service-items { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.service-items li { font-size: 14px; color: var(--text-mid); padding-left: 14px; position: relative; }
.service-items li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* client logos */
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; gap: 60px; align-items: center; width: max-content; animation: marquee 14s linear infinite; }
.logo-track img { height: 34px; opacity: .55; filter: grayscale(1); }
.logo-track span { font-weight: 800; font-size: 18px; color: var(--text-dim); white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-placeholder-note { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 14px; }
.logo-placeholder-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 22px; border-radius: 999px;
  border: 1px dashed var(--border-soft); color: var(--text-dim);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; white-space: nowrap;
}

/* case studies */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card {
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-no { font-size: 30px; font-weight: 800; color: var(--accent); }
.case-cat { font-size: 19px; font-weight: 800; }
.case-row { font-size: 14px; color: var(--text-mid); display: flex; gap: 8px; }
.case-row strong { flex-shrink: 0; color: var(--text-dark); min-width: 92px; }
.case-visual { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.case-visual .box { width: 100%; min-height: 140px; border-radius: 10px; background: var(--bg-soft); border: 1px dashed var(--border-soft); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-dim); overflow: hidden; text-align: center; padding: 10px; }
.case-visual .box img { width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.case-arrow { align-self: center; color: var(--text-dim); font-size: 18px; }

.case-table-wrap { margin-top: 4px; overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 10px; }
.case-table { width: 100%; min-width: 320px; border-collapse: collapse; font-size: 13.5px; }
.case-table th, .case-table td { padding: 10px 14px; border-bottom: 1px solid var(--border-soft); text-align: left; white-space: nowrap; }
.case-table th { font-size: 11px; letter-spacing: .04em; color: var(--text-mid); font-weight: 700; background: var(--bg-soft); }
.case-table th:first-child, .case-table td:first-child { color: var(--text-mid); font-weight: 700; white-space: normal; }
.case-table td.after { color: var(--accent); font-weight: 800; }
.case-table tr:last-child td { border-bottom: none; }

/* process */
.process-list { display: flex; flex-direction: column; }
.process-item { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--border-dark); }
.section:not(.dark) .process-item { border-bottom-color: var(--border-soft); }
.process-step { font-size: 30px; font-weight: 800; color: var(--accent); }
.process-title { font-size: 19px; font-weight: 800; }
.process-desc { margin-top: 8px; color: var(--text-dim); font-size: 15px; line-height: 1.7; }
.section:not(.dark) .process-desc { color: var(--text-mid); }

.report-box { margin-top: 60px; padding: 34px; border-radius: var(--radius); background: rgba(255,255,255,0.04); border: 1px solid var(--border-dark); }
.report-box h4 { font-size: 16px; font-weight: 800; letter-spacing: .05em; color: var(--accent); }
.report-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.report-tags span { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-dark); font-size: 13px; color: var(--text-dim); }

/* CTA */
.cta-band { padding: 100px 0; text-align: center; background: linear-gradient(135deg, #ff5b2e, #ff7a4d); color: #fff; }
.cta-band .section-title { color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark); }
.cta-band .btn-primary:hover { background: #f2f2f2; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--bg-darker); color: var(--text-dim); padding: 60px 0 26px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid var(--border-dark); }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-logo-text { color: var(--text-light); }
.footer-logo-img { height: 28px; }
.footer-info { font-size: 13px; line-height: 2; max-width: 560px; }
.footer-info strong { color: var(--text-light); font-size: 14px; }
.footer-info .sep { margin: 0 8px; opacity: .4; }
.footer-info a { color: var(--text-dim); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 22px; }
.footer-links a { font-size: 13px; margin-right: 20px; color: var(--text-dim); }
.footer-links .footer-link-strong { color: var(--text-light); font-weight: 700; }
.copyright { font-size: 12px; opacity: .6; }

/* family site dropdown */
.family-site { position: relative; }
.family-site-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border-dark);
  background: transparent; color: var(--text-dim); font-size: 12px; font-weight: 700; letter-spacing: .05em;
}
.family-site-toggle .chev { transition: transform .2s ease; }
.family-site.open .family-site-toggle .chev { transform: rotate(180deg); }
.family-site-dropdown {
  position: absolute; bottom: calc(100% + 10px); left: 0;
  min-width: 200px;
  background: #17181d; border: 1px solid var(--border-dark); border-radius: 10px;
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .2s ease; box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.family-site.open .family-site-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.family-site-dropdown a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 13px; }
.family-site-dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--text-light); }

/* --------------------------------------------------------------- floating */
.floating-bar {
  position: fixed; right: 22px; bottom: 90px; z-index: 400;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.float-item { position: relative; display: flex; align-items: center; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  border: none;
  transition: transform .2s ease, background .2s ease;
}
.float-btn svg { width: 22px; height: 22px; }
.float-btn:hover { transform: scale(1.08); background: var(--accent); }
.float-btn-kakao { background: #FEE500; color: #391B1B; }
.float-btn-kakao:hover { background: #f9d900; color: #391B1B; transform: scale(1.08); }
.float-btn-qr { cursor: pointer; }

.float-tip {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%) translateX(6px);
  background: #17181d; color: #fff; padding: 12px 16px; border-radius: 10px;
  min-width: 170px; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: all .18s ease;
  box-shadow: 0 12px 26px rgba(0,0,0,.3);
  pointer-events: none;
}
.float-tip strong { display: block; font-size: 13px; margin-bottom: 2px; }
.float-tip span { font-size: 13px; color: var(--text-dim); }
.float-item:hover .float-tip, .float-item:focus-within .float-tip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.float-tip-qr { text-align: center; white-space: normal; width: 190px; }
.float-tip-qr img { width: 130px; height: 130px; margin: 0 auto 10px; border-radius: 8px; background: #fff; padding: 6px; }
.float-tip-qr span { font-size: 12px; line-height: 1.5; }

.float-top {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-soft); background: #fff; color: var(--text-dark);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease;
}
.float-top svg { width: 18px; height: 18px; }
.float-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ------------------------------------------------------------------ modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,7,8,.6); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  z-index: 800; opacity: 0; visibility: hidden; transition: all .2s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box { background: #fff; border-radius: 18px; padding: 36px; width: 100%; max-width: 460px; position: relative; max-height: 90vh; overflow-y: auto; transform: translateY(14px); transition: transform .25s ease; }
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border: none; background: var(--bg-soft); border-radius: 50%; font-size: 20px; line-height: 1; color: var(--text-mid); }
.modal-box h3 { font-size: 22px; font-weight: 800; }
.modal-desc { margin-top: 8px; color: var(--text-mid); font-size: 14px; }

.lead-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 700; }
.form-row label em { color: var(--accent); font-style: normal; }
.form-row input, .form-row textarea {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-soft); background: var(--bg-soft);
  font-size: 14px; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.form-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-mid); }
.form-agree a { text-decoration: underline; }
.form-result { font-size: 13px; text-align: center; min-height: 18px; }
.form-result.ok { color: #1a9e5c; }
.form-result.err { color: #e0483a; }

/* contact page inline form */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; }
.contact-info-card { background: var(--bg-dark); color: var(--text-light); border-radius: var(--radius); padding: 40px; }
.contact-info-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 22px; }
.contact-info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-dark); font-size: 14px; }
.contact-info-row strong { min-width: 84px; color: var(--accent); }
.contact-form-card { background: var(--bg-light); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }

/* legal pages */
.legal-body { white-space: pre-line; line-height: 1.9; color: var(--text-mid); font-size: 15px; max-width: 780px; }

/* utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ============================================================ responsive */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .intro-block { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
  .section { padding: 74px 0; }
  .header-inner { padding: 0 18px; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-card { padding: 18px 14px; }
  .service-num { font-size: 11px; }
  .service-title { margin-top: 8px; font-size: 14.5px; }
  .service-items { margin-top: 10px; gap: 6px; }
  .service-items li { font-size: 12px; padding-left: 12px; }
  .process-item { grid-template-columns: 56px 1fr; }
  .process-step { font-size: 22px; }
  .floating-bar { right: 14px; bottom: 76px; }
  .float-btn { width: 46px; height: 46px; }
  .float-btn svg { width: 20px; height: 20px; }
  .float-tip { right: calc(100% + 10px); }
  .container { padding: 0 18px; }
  .modal-box { padding: 26px; }
  .footer-top { flex-direction: column; }
}
