/* ═══════════════════════════════════════════════════
   KLEMSEN CONSULTING — Styles v3
   Brand: #23343e (slate) · #bbe024 (lime) · #181919 (black) · #009ed8 (blue)
   NO rounded boxes. NO emoji. Clean and professional.
   ═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --lime: #bbe024;
  --lime-light: #d4f05a;
  --lime-dark: #a0c010;
  --slate: #23343e;
  --slate-light: #2d4450;
  --black: #181919;
  --blue: #009ed8;
  --white: #ffffff;
  --bg: #f7f6f2;
  --bg-alt: #efeee8;
  --text-on-lime: #1a2a32;
  --text-on-slate: #e8e8e4;
  --text-primary: #1a2a32;
  --text-secondary: #4a5a64;
  --text-muted: #6b7b85;
  --border: rgba(35,52,62,.1);
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Outfit', sans-serif;
  --shadow-sm: 0 1px 3px rgba(24,25,25,.06);
  --shadow-md: 0 4px 20px rgba(24,25,25,.08);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
p { font-size: 1rem; line-height: 1.75; color: var(--text-secondary); }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: .75rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--slate); margin-bottom: 20px;
}
.section-label::before { content: ''; width: 28px; height: 2px; background: var(--lime); }
.section-label-light { color: var(--lime); }
.section-label-light::before { background: rgba(255,255,255,.3); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  letter-spacing: .3px; padding: 16px 32px; border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-dark { background: var(--slate); color: var(--white); }
.btn-dark:hover { background: var(--black); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(35,52,62,.25); }
.btn-lime { background: var(--lime); color: var(--text-on-lime); font-weight: 700; }
.btn-lime:hover { background: var(--lime-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(187,224,36,.35); }
.btn-outline-dark { background: transparent; color: var(--slate); border: 1.5px solid rgba(35,52,62,.3); }
.btn-outline-dark:hover { border-color: var(--slate); background: rgba(35,52,62,.05); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: #0090c4; transform: translateY(-2px); }

/* ─── Navigation ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--slate); transition: all .4s ease; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav.scrolled { border-bottom: 1px solid rgba(255,255,255,.05); }
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: .8rem; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.55); position: relative; padding-bottom: 4px; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--lime); }
.nav-on-lime .nav-links a { color: rgba(255,255,255,.55); }
.nav-on-lime .nav-links a:hover, .nav-on-lime .nav-links a.active { color: var(--white); }
.nav-cta { background: var(--lime) !important; color: var(--slate) !important; padding: 10px 24px !important; font-weight: 600 !important; letter-spacing: .5px !important; opacity: 1 !important; }
.nav-cta:hover { background: var(--lime-light) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }
.nav-mobile { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--slate); padding: 20px 24px 28px; border-bottom: 1px solid rgba(255,255,255,.08); flex-direction: column; gap: 4px; z-index: 999; }
.nav-mobile a { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.55); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--white); }
.nav-mobile.open { display: flex; }

/* ─── Hero ─── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--lime); }
.hero-bg-pattern { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 75% 40%, rgba(35,52,62,.04) 0%, transparent 60%); }
.hero-bg-pattern::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent, transparent 80px, rgba(35,52,62,.015) 80px, rgba(35,52,62,.015) 81px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-content { padding: 40px 0; }
.hero h1 { color: var(--slate); margin-bottom: 24px; }
.hero h1 em { font-style: italic; }
.hero-eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); opacity: .5; margin-bottom: 20px; }
.hero-sub { color: var(--text-on-lime); font-size: 1.15rem; max-width: 500px; margin-bottom: 40px; opacity: .75; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-card { background: var(--slate); padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(24,25,25,.2); }
.hero-card-label { font-size: .8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lime); opacity: .7; margin-bottom: 20px; }
.hero-card h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 20px; }
.hero-card-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.hero-card-list li { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: rgba(255,255,255,.7); }
.hero-card-list .check { width: 22px; height: 22px; background: rgba(187,224,36,.15); color: var(--lime); display: flex; align-items: center; justify-content: center; font-size: .7rem; flex-shrink: 0; }

/* ─── Page headers ─── */
.page-header { background: var(--slate); padding: 130px 0 60px; position: relative; overflow: hidden; }
.page-header-sm { padding: 120px 0 48px; }
.page-header h1 { color: var(--white); max-width: 650px; }
.page-header h1 em { color: var(--lime); }
.page-header p { color: rgba(255,255,255,.55); max-width: 520px; margin-top: 12px; font-size: 1.05rem; }

/* ─── Three col divider ─── */
.three-col-divider { display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; gap: 0; align-items: start; max-width: 960px; margin: 0 auto; }
.three-col-divider > div:not(.vr) { padding: 0 40px; text-align: center; }
.three-col-divider .vr { width: 1px; height: 100%; background: var(--border); }
.big-word { font-family: var(--font-display); font-size: 3.5rem; color: var(--slate); line-height: 1; margin-bottom: 16px; }

/* ─── Services list ─── */
.services-list { border-top: 1px solid var(--border); }
.services-list-item { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); transition: all var(--transition); cursor: pointer; }
.services-list-item:hover { padding-left: 12px; }
.services-list-name { font-weight: 500; font-size: .95rem; color: var(--text-primary); }
.services-list-item:hover .services-list-name { color: var(--slate); }
.services-list-price { font-weight: 600; font-size: .85rem; color: var(--blue); white-space: nowrap; }

/* ─── Service detail (services page) ─── */
.service-detail { border-bottom: 1px solid var(--border); padding: 48px 0; }
.service-detail:last-child { border-bottom: none; }
.service-num { font-family: var(--font-display); font-size: 1rem; color: var(--text-muted); margin-bottom: 8px; }
.service-detail h3 { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 6px; }
.service-detail .price { font-weight: 600; color: var(--blue); font-size: .95rem; margin-bottom: 16px; }
.service-detail p { max-width: 640px; margin-bottom: 12px; }
.service-detail .note { font-size: .85rem; color: var(--text-muted); font-style: italic; }

/* ─── Testimonials ─── */
.testimonial-card { background: var(--white); border-left: 3px solid var(--lime); padding: 32px 36px; position: relative; }
.testimonial-card p { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 48px; height: 48px; overflow: hidden; background: var(--slate); flex-shrink: 0; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 600; font-size: .95rem; color: var(--text-primary); }
.testimonial-role { font-size: .8rem; color: var(--text-muted); }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--border); padding: 28px 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 16px; background: none; border: none; width: 100%; text-align: left; font-family: var(--font-display); font-size: 1.2rem; color: var(--text-primary); padding: 0; }
.faq-toggle { width: 28px; height: 28px; background: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; color: var(--slate); transition: all var(--transition); }
.faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--lime-dark); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
.faq-item.open .faq-answer { max-height: 600px; padding-top: 16px; }
.faq-answer p { font-size: .95rem; line-height: 1.8; color: var(--text-muted); }

/* ─── Contact ─── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.form-input, .form-textarea { width: 100%; padding: 14px 18px; border: 1.5px solid var(--border); background: var(--white); font-family: var(--font-body); font-size: .95rem; color: var(--text-primary); transition: border-color var(--transition); outline: none; }
.form-input:focus, .form-textarea:focus { border-color: var(--lime-dark); box-shadow: 0 0 0 3px rgba(187,224,36,.15); }
.form-textarea { min-height: 140px; resize: vertical; }

/* ─── Contact info (no boxes, no emoji) ─── */
.contact-info-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-label { font-size: .75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-value { font-size: 1rem; font-weight: 500; color: var(--text-primary); }
.contact-info-value a { color: var(--blue); }
.contact-info-note { font-size: .8rem; color: var(--text-muted); margin-top: 2px; font-style: italic; }

/* ─── Tax table ─── */
.tax-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.tax-table th { background: var(--slate); color: var(--white); font-size: .8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-align: left; padding: 14px 20px; }
.tax-table td { padding: 12px 20px; font-size: .9rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.tax-table tr:hover td { background: rgba(187,224,36,.04); }

/* ─── CTA Banner ─── */
.cta-banner { background: var(--lime); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-banner h2 { color: var(--slate); position: relative; z-index: 1; margin-bottom: 12px; }
.cta-banner p { color: var(--text-on-lime); opacity: .7; position: relative; z-index: 1; max-width: 500px; margin: 0 auto 28px; }

/* ─── Footer ─── */
.footer { background: var(--slate); color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer h4 { color: var(--white); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .9rem; line-height: 1.7; max-width: 300px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.5); font-size: .9rem; }
.footer-links a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: rgba(255,255,255,.35); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-social a:hover { background: var(--lime); color: var(--slate); }

/* ─── Utility ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

/* ─── Animations ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate { animation: fadeUp .8s cubic-bezier(.16,1,.3,1) both; }
.animate-d1 { animation-delay: .1s; }
.animate-d2 { animation-delay: .2s; }
.animate-d3 { animation-delay: .3s; }
.animate-d4 { animation-delay: .4s; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .three-col-divider { grid-template-columns: 1fr; gap: 40px; }
  .three-col-divider .vr { width: 60px; height: 1px; margin: 0 auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-inner { height: 64px; }
  .nav-logo-img { height: 32px; }

  /* General spacing */
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }

  /* Typography */
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.4rem); }

  /* Hero */
  .hero { min-height: auto; padding-top: 80px; padding-bottom: 48px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }

  /* Page headers - !important to override inline padding */
  .page-hero { padding: 88px 0 28px !important; }
  .page-hero h1 { font-size: 1.8rem; }

  /* Footer */
  .footer { padding: 56px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand img { height: 72px !important; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* CTA banner */
  .cta-banner { padding: 36px 20px; }
  .cta-banner h2 { font-size: 1.5rem; }

  /* About grid */
  .about-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr !important; gap: 48px !important; }

  /* Two column */
  .two-col { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Featured service cards */
  .featured-svc { padding: 32px !important; }
  .featured-svc h3 { font-size: 1.3rem !important; }

  /* Testimonial cards */
  .testimonial-card { padding: 28px; }
  .testimonial-card::before { font-size: 3.5rem; top: 10px; left: 20px; }

  /* FAQ */
  .faq-question { font-size: 1.05rem; }

  /* Tax tables */
  .tax-table th, .tax-table td { padding: 10px 14px; font-size: .8rem; }

  /* Buttons */
  .btn { padding: 14px 24px; font-size: .85rem; }

  /* Section labels */
  .section-label { font-size: .7rem; }

  /* Service page numbered items */
  .svc { grid-template-columns: 50px 1fr; gap: 0 16px; padding: 28px 0; }
  .svc-num { font-size: 2rem; }
  .svc h3 { font-size: 1.15rem; }

  /* Korean taxes fee tables side by side -> stacked */
  #fee-tables { grid-template-columns: 1fr !important; }
  #partner-info { grid-template-columns: 1fr !important; gap: 20px !important; }

  /* Key points and steps grids */
  #key-points, #steps-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  #key-points > .kp-divider, #steps-grid > div[style*="width:1px"] { width: 60px !important; height: 1px !important; margin: 0 auto; }

  /* About page sticky sidebar -> normal flow */
  .about-grid > div:first-child { position: static !important; }

  /* Forms */
  .form-input, .form-textarea { padding: 12px 14px; font-size: .9rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-sub { font-size: .9rem; }
  .btn { padding: 12px 20px; font-size: .82rem; width: 100%; justify-content: center; }
  .cta-banner .btn { width: auto; }
  .footer-brand img { height: 60px !important; }
  .svc { grid-template-columns: 1fr; }
  .svc-num { margin-bottom: 4px; font-size: 1.6rem; }
  .featured-svc { padding: 24px !important; }
  .testimonial-card { padding: 24px; }
  .tax-table th, .tax-table td { padding: 8px 10px; font-size: .75rem; }
  .form-group { margin-bottom: 14px; }
  div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 20px"] { grid-template-columns: 1fr !important; }
}
