:root {
  --primary: #1a3c5e;
  --primary-light: #235a8a;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --border: #e2e8f0;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.65; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-title { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; line-height: 1.25; }
.section-sub { color: var(--gray); font-size: 1.05rem; margin-bottom: 48px; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--gray); transition: color .2s; }
.nav a:hover { color: var(--primary); }
.nav-cta { background: var(--accent); color: var(--white) !important; padding: 10px 20px; border-radius: 8px; font-weight: 700 !important; white-space: nowrap; }
.nav-cta:hover { background: var(--accent-dark) !important; color: var(--white) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, #0f2339 0%, #1a3c5e 60%, #235a8a 100%); color: var(--white); padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -100px; top: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%); }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero-badge { display: inline-block; background: rgba(245,158,11,.2); border: 1px solid rgba(245,158,11,.5); color: var(--accent); font-size: .85rem; font-weight: 600; padding: 6px 14px; border-radius: 20px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 560px; margin-bottom: 40px; line-height: 1.7; }
.hero-stats { display: flex; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.hero-stat span { font-size: .85rem; color: rgba(255,255,255,.7); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--white); font-weight: 700; font-size: 1rem; padding: 16px 32px; border-radius: 10px; transition: background .2s, transform .15s; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; border: 2px solid rgba(255,255,255,.5); color: var(--white); font-weight: 600; font-size: 1rem; padding: 14px 28px; border-radius: 10px; transition: border-color .2s, background .2s; }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ── Issues (문제 상황) ── */
.issues-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.issue-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; border-top: 4px solid var(--accent); }
.issue-icon { width: 48px; height: 48px; background: rgba(245,158,11,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.issue-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.issue-card p { color: var(--gray); font-size: .95rem; line-height: 1.65; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: box-shadow .2s, transform .2s; }
.service-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.service-num { font-size: .75rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: .9rem; line-height: 1.65; }

/* ── Process ── */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; counter-reset: step; }
.process-step { position: relative; padding: 32px 24px; text-align: center; }
.process-step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--primary); color: var(--white); font-size: 1.1rem; font-weight: 800; border-radius: 50%; margin-bottom: 16px; }
.process-step h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.process-step p { font-size: .88rem; color: var(--gray); line-height: 1.6; }
.process-connector { display: none; }

/* ── Portfolio (출장사례) ── */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.case-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.case-card:hover { box-shadow: var(--shadow); }
.case-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--light); }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.case-card:hover .case-thumb img { transform: scale(1.03); }
.case-body { padding: 24px; }
.case-meta { display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.case-tag { font-size: .78rem; font-weight: 600; color: var(--primary); background: rgba(26,60,94,.08); padding: 3px 10px; border-radius: 20px; }
.case-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.case-card p { font-size: .88rem; color: var(--gray); }
.case-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .88rem; font-weight: 600; color: var(--primary); }
.case-empty { text-align: center; padding: 60px 24px; color: var(--gray); font-size: .95rem; }

/* ── Brand/Service definition (G-6) ── */
.brand-def { background: var(--primary); color: var(--white); }
.brand-def .section-title { color: var(--white); }
.brand-def .section-sub { color: rgba(255,255,255,.7); }
.brand-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.brand-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px 24px; }
.brand-card h3 { font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.brand-card p { font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.7; }

/* ── Areas ── */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.area-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.area-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.area-tag { font-size: .85rem; background: var(--light); border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px; color: var(--gray); }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 22px 24px; font-size: 1rem; font-weight: 600; color: var(--text); background: var(--white); border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background .15s; }
.faq-q:hover { background: var(--light); }
.faq-q .arrow { color: var(--accent); font-size: 1.2rem; transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 24px 22px; font-size: .95rem; color: var(--gray); line-height: 1.75; border-top: 1px solid var(--border); padding-top: 18px; }
.faq-item.open .faq-a { display: block; }

/* ── CTA ── */
.cta-section { background: linear-gradient(135deg, #0f2339 0%, #1a3c5e 100%); color: var(--white); text-align: center; padding: 80px 24px; }
.cta-section h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta-phone { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--white); font-weight: 700; font-size: 1.05rem; padding: 18px 36px; border-radius: 10px; transition: background .2s; }
.btn-cta-phone:hover { background: var(--accent-dark); }
.btn-cta-sms { display: inline-flex; align-items: center; gap: 10px; border: 2px solid rgba(255,255,255,.5); color: var(--white); font-weight: 600; font-size: 1.05rem; padding: 16px 32px; border-radius: 10px; transition: border-color .2s, background .2s; }
.btn-cta-sms:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ── Footer ── */
.site-footer { background: #0d1f35; color: rgba(255,255,255,.65); font-size: .88rem; padding: 48px 0 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { font-size: 1.2rem; margin-bottom: 12px; }
.footer-desc { line-height: 1.7; margin-bottom: 16px; }
.footer-nav h4 { color: var(--white); font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav ul a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-nav ul a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.biz-info { line-height: 1.8; }

/* ── Floating CTA ── */
.floating { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.float-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border-radius: 50px; font-weight: 700; font-size: .92rem; white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: transform .15s, box-shadow .15s; }
.float-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.float-phone { background: var(--primary); color: var(--white); }
.float-sms { background: var(--accent); color: var(--white); }

/* ── NSEO page ── */
.page-hero { background: linear-gradient(135deg, #0f2339 0%, #1a3c5e 100%); color: var(--white); padding: 70px 0 60px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.page-hero .page-desc { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 640px; line-height: 1.7; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--white); }
.content-section { max-width: 860px; margin: 0 auto; }
.content-section h2 { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 48px 0 16px; }
.content-section h3 { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin: 32px 0 12px; }
.content-section p { color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.content-section ul, .content-section ol { padding-left: 20px; margin-bottom: 16px; }
.content-section li { line-height: 1.8; color: var(--text); margin-bottom: 6px; }
.info-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; }
.info-table th, .info-table td { padding: 14px 16px; border: 1px solid var(--border); text-align: left; }
.info-table th { background: var(--primary); color: var(--white); font-weight: 600; }
.info-table tr:nth-child(even) td { background: var(--light); }
.related-links { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-links h3 { font-size: 1rem; font-weight: 700; color: var(--gray); margin-bottom: 16px; }
.related-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.related-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; flex: 1; min-width: 200px; transition: border-color .2s; }
.related-card:hover { border-color: var(--primary); }
.related-card h4 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.related-card p { font-size: .82rem; color: var(--gray); }

/* ── Consultation ── */
.consult-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 32px 0; }
.consult-step { text-align: center; padding: 28px 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--accent); color: var(--white); font-weight: 800; border-radius: 50%; font-size: 1.1rem; margin-bottom: 14px; }
.consult-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.consult-step p { font-size: .88rem; color: var(--gray); line-height: 1.6; }
.cta-btn-group { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.btn-phone { display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: var(--white); font-weight: 700; padding: 16px 32px; border-radius: 10px; font-size: 1rem; transition: background .2s; }
.btn-phone:hover { background: var(--primary-light); }
.btn-sms { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--white); font-weight: 700; padding: 16px 32px; border-radius: 10px; font-size: 1rem; transition: background .2s; }
.btn-sms:hover { background: var(--accent-dark); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px; z-index: 100; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 24px; }
  .floating { bottom: 16px; right: 16px; }
  .float-btn span { display: none; }
  .float-btn { padding: 14px; border-radius: 50%; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.6rem; }
  .hero { padding: 70px 0 60px; }
}
