/* ============================================================
   Hyunu Kim Consulting LLC — Design #22: Navy + Amber
   Colors: #172554 (deep navy) #d97706 (amber) #fefce8 (cream)
   Text:  #1c1917 / #44403c / #78716c — NO rgba()
   ============================================================ */

/* --- RESET & BASE ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1c1917;
  background: #fefce8;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.2; }

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d97706;
  margin-bottom: 0.5rem;
}

/* --- NAVIGATION ------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fefce8;
  border-bottom: 1px solid #e7e5d8;
  padding: 0.75rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #172554;
  letter-spacing: -0.02em;
}

.brand span { color: #d97706; }

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #44403c;
  transition: color 0.2s;
}

.nav-links a:hover { color: #d97706; }

/* --- HERO — Diagonal Stripes ------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #fefce8;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    #fde8c8 3px,
    #fde8c8 4px
  );
  padding: 6rem 1.5rem 4rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: #172554;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero h1 .underline {
  display: inline-block;
  position: relative;
}

.hero h1 .underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.12em;
  width: 100%;
  height: 0.14em;
  background: #d97706;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #44403c;
  margin: 1.2rem 0 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: #172554;
  color: #fefce8;
  border-color: #172554;
}

.btn-primary:hover {
  background: #0f1d44;
  box-shadow: 0 6px 24px #17255433;
}

.btn-outline {
  background: transparent;
  color: #d97706;
  border-color: #d97706;
}

.btn-outline:hover {
  background: #d97706;
  color: #fefce8;
  box-shadow: 0 6px 24px #d9770633;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid #78716c;
  border-radius: 13px;
  position: relative;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: #d97706;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 24px; }
}

/* --- SERVICES — Slide-Reveal Cards ------------------------ */
.services {
  padding: 6rem 0;
  background: #fefce8;
}

.services-head {
  text-align: center;
  margin-bottom: 4rem;
}

.services-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #172554;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  border-bottom: 3px solid #d97706;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.service-card.slide-in {
  opacity: 1;
  transform: translateX(0);
}

.service-card.slide-in-left {
  transform: translateX(-60px);
}

.service-card.slide-in-right {
  transform: translateX(60px);
}

.service-card.slide-in-left.revealed,
.service-card.slide-in-right.revealed {
  transform: translateX(0);
}

.service-accent {
  width: 5px;
  min-height: 100%;
  background: #172554;
  border-radius: 3px;
  flex-shrink: 0;
  align-self: stretch;
}

.service-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #172554;
  margin-bottom: 0.4rem;
}

.service-body p {
  color: #44403c;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  background: #fef0d5;
  color: #92400e;
  letter-spacing: 0.03em;
}

/* --- ABOUT — Location Badge ------------------------------- */
.about {
  padding: 6rem 0;
  background: #172554;
  color: #fefce8;
}

.about .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 2.5rem;
}

.location-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: #1e3168;
  padding: 2rem 3.5rem;
  border-radius: 1rem;
  border: 1px solid #2a3f7a;
  margin-bottom: 2.5rem;
}

.location-badge .badge-icon {
  font-size: 2.8rem;
}

.location-badge .badge-city {
  font-size: 1.6rem;
  font-weight: 900;
  color: #d97706;
}

.location-badge .badge-region {
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-text {
  max-width: 640px;
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.75;
}

/* --- INDUSTRIES — Icon Array ------------------------------ */
.industries {
  padding: 6rem 0;
  background: #fefce8;
}

.industries-head {
  text-align: center;
  margin-bottom: 3rem;
}

.industries-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #172554;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0.5rem;
  border-radius: 0.5rem;
  transition: transform 0.25s, color 0.25s;
  cursor: default;
}

.icon-item:hover {
  transform: scale(1.08);
  color: #d97706;
}

.icon-item .icon-emoji {
  font-size: 2rem;
  transition: transform 0.25s;
}

.icon-item:hover .icon-emoji {
  transform: scale(1.15);
}

.icon-item .icon-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #44403c;
  letter-spacing: 0.02em;
  text-align: center;
}

/* --- APPROACH — Step Ladder ------------------------------- */
.approach {
  padding: 6rem 0;
  background: #fefce8;
}

.approach-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.approach-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #172554;
}

.step-ladder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  border-radius: 0.6rem;
  padding: 1.5rem 2rem;
  border-left: 4px solid #d97706;
  transition: transform 0.25s;
}

.step:hover {
  transform: translateY(-3px);
}

.step:nth-child(1) { width: 60%; }
.step:nth-child(2) { width: 80%; }
.step:nth-child(3) { width: 100%; }
.step:nth-child(4) { width: 120%; }

.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d97706;
  color: #fefce8;
  font-size: 1.3rem;
  font-weight: 900;
  border-radius: 50%;
}

.step-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #172554;
  margin-bottom: 0.2rem;
}

.step-text p {
  font-size: 0.9rem;
  color: #78716c;
  line-height: 1.5;
}

/* --- CTA — Social Proof ----------------------------------- */
.cta {
  padding: 5rem 0;
  background: #d97706;
  color: #fefce8;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 3rem;
  color: #fefce8;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fefce8;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff7e0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta .btn-primary {
  background: #fefce8;
  color: #172554;
  border-color: #fefce8;
}

.cta .btn-primary:hover {
  background: #ffffff;
  color: #172554;
  box-shadow: 0 6px 24px #00000022;
}

/* --- CONTACT — Chat Bubble FAB ---------------------------- */
.chat-fab {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 9999;
}

.chat-fab-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #d97706;
  color: #fefce8;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px #00000033;
  transition: transform 0.25s, background 0.25s;
}

.chat-fab-btn:hover {
  transform: scale(1.08);
  background: #b86404;
}

.chat-popover {
  display: none;
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px #00000022;
  overflow: hidden;
  animation: popIn 0.3s ease;
}

.chat-popover.open {
  display: block;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #172554;
  color: #fefce8;
  padding: 1rem 1.25rem;
}

.chat-popover-header span {
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-popover-close {
  background: none;
  border: none;
  color: #fefce8;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chat-popover-close:hover { opacity: 1; }

.chat-popover-body {
  padding: 1.25rem;
}

.chat-field {
  margin-bottom: 0.9rem;
}

.chat-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #44403c;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chat-field input,
.chat-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid #d6d3c4;
  border-radius: 0.4rem;
  background: #fefce8;
  color: #1c1917;
  outline: none;
  transition: border-color 0.2s;
}

.chat-field input:focus,
.chat-field textarea:focus {
  border-color: #d97706;
}

.chat-field textarea {
  min-height: 80px;
  resize: vertical;
}

.chat-submit {
  width: 100%;
  padding: 0.7rem;
  background: #d97706;
  color: #fefce8;
  border: none;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-submit:hover {
  background: #b86404;
}

/* --- FOOTER ----------------------------------------------- */
.site-footer {
  background: #172554;
  color: #94a3b8;
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand h4 {
  color: #fefce8;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
}

.footer-links h5 {
  color: #fefce8;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: #d97706; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e3168;
  text-align: center;
  font-size: 0.8rem;
}

/* --- RESPONSIVE ------------------------------------------- */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .step:nth-child(1),
  .step:nth-child(2),
  .step:nth-child(3),
  .step:nth-child(4) {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .chat-popover {
    width: calc(100vw - 3rem);
    right: -0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .icon-grid { gap: 0.25rem; }
  .icon-item { padding: 1rem 0.25rem; }
  .icon-item .icon-emoji { font-size: 1.5rem; }
  .icon-item .icon-label { font-size: 0.7rem; }
}

/* --- LEGAL PAGES ------------------------------------------ */
.legal-page {
  padding: 7rem 2rem 4rem;
  max-width: 780px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #172554;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #d97706;
  padding-bottom: 0.75rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #172554;
  margin: 2rem 0 0.6rem;
}

.legal-page p {
  font-size: 1rem;
  color: #44403c;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.legal-page address {
  font-style: normal;
  color: #44403c;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.legal-date {
  font-size: 0.85rem;
  color: #78716c;
  margin-bottom: 2rem;
}
