/*
 * Haneullab Homepage - Unified Design System
 * Consistent styling across all sections
 */

/* ===========================================
   1. DESIGN TOKENS (Variables)
   =========================================== */

:root {
  /* Background Colors - Alternating Pattern */
  --bg-primary: #0a0a0f;
  --bg-secondary: #101018;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;

  /* Accent Colors - Blue */
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);

  /* Accent Colors - Gold (Premium) */
  --gold: #d4a853;
  --gold-light: #e8c67a;
  --gold-dark: #b8923d;
  --gold-glow: rgba(212, 168, 83, 0.15);

  /* Accent Colors - Purple (Luxury) */
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-glow: rgba(139, 92, 246, 0.12);

  /* Text Colors */
  --text-white: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #b8c5d6;
  --text-muted: #8494a8;

  /* Border & Effects */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(59, 130, 246, 0.5);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Spacing - Consistent */
  --section-padding-y: 100px;
  --section-padding-x: 32px;
  --container-max: 1140px;
  --card-padding: 32px;
  --card-gap: 24px;
  --title-margin: 56px;

  /* Border Radius - Consistent */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Transitions */
  --transition: 0.3s ease;
}

/* ===========================================
   2. BASE & RESET
   =========================================== */

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

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text-white);
}

/* Hide spacers */
.ed-spacer {
  display: none !important;
}

/* ===========================================
   3. TYPOGRAPHY - Unified
   =========================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.8;
}

/* Override inline styles */
[style*="font-size"], [style*="Tahoma"], [style*="Geneva"] {
  font-family: 'Pretendard', sans-serif !important;
}

.color-user-2, .color-user-2 * {
  color: var(--accent-light) !important;
}

/* ===========================================
   4. SECTION - Common Rules
   =========================================== */

/* Section Container */
.wv-boxed {
  max-width: var(--container-max) !important;
  margin: 0 auto !important;
  padding: var(--section-padding-y) var(--section-padding-x) !important;
  width: 100% !important;
}

.wv-boxed > .inner {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Section Title - Unified Style */
.wv-boxed .ed-headline:first-child,
#ed-722666273,
#ed-722666090,
#ed-722666162,
#ed-722780069 {
  margin-bottom: var(--title-margin) !important;
}

.wv-boxed .ed-headline:first-child h2,
#ed-722666273 h2,
#ed-722666090 h2,
#ed-722666162 h2,
#ed-722780069 h2 {
  text-align: center !important;
  font-size: 2.75rem !important;
  font-weight: 700 !important;
  color: var(--text-white) !important;
  position: relative !important;
  padding-bottom: 24px !important;
  margin: 0 !important;
}

.wv-boxed .ed-headline:first-child h2::after,
#ed-722666273 h2::after,
#ed-722666090 h2::after,
#ed-722666162 h2::after,
#ed-722780069 h2::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 64px !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%) !important;
  border-radius: 2px !important;
}

/* ===========================================
   5. CARD - Common Rules
   =========================================== */

/* Base Card Style */
.card,
#ed-722666279 p,
.boxes-box,
.footer-heimdall-box,
.accordion {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  transition: var(--transition) !important;
}

/* Card Hover Effect */
#ed-722666279 p:hover,
.boxes-box:hover,
.footer-heimdall-box:hover {
  border-color: var(--border-hover) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px var(--gold-glow) !important;
  transform: translateY(-4px) !important;
}

/* Gold border on hover for some cards */
.boxes-box:nth-child(2):hover,
.boxes-box:nth-child(4):hover {
  border-color: rgba(212, 168, 83, 0.4) !important;
}

.boxes-box:nth-child(3):hover {
  border-color: rgba(139, 92, 246, 0.4) !important;
}

/* Card Icon Area - Unified */
.boxes-icon,
.footer-heimdall-icon {
  width: 80px !important;
  min-width: 80px !important;
  height: 80px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--accent-glow) !important;
  border-radius: var(--radius-md) !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.boxes-icon svg,
.footer-heimdall-icon svg {
  width: 36px !important;
  height: 36px !important;
  fill: var(--accent-light) !important;
}

/* Alternate icon colors for visual variety */
.boxes-box:nth-child(2) .boxes-icon {
  background: var(--gold-glow) !important;
}
.boxes-box:nth-child(2) .boxes-icon svg {
  fill: var(--gold-light) !important;
}

.boxes-box:nth-child(3) .boxes-icon {
  background: var(--purple-glow) !important;
}
.boxes-box:nth-child(3) .boxes-icon svg {
  fill: var(--purple-light) !important;
}

.boxes-box:nth-child(4) .boxes-icon {
  background: var(--gold-glow) !important;
}
.boxes-box:nth-child(4) .boxes-icon svg {
  fill: var(--gold-light) !important;
}

/* Card Title - Unified */
.boxes-box-inner h3,
.footer-heimdall-box h3 {
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  color: var(--text-white) !important;
  margin-bottom: 12px !important;
}

/* Card Description - Unified */
.boxes-box-inner p,
.boxes-box-inner p span,
.footer-heimdall-box p,
.footer-heimdall-box p span {
  font-size: 1.125rem !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
}

/* ===========================================
   6. HEADER / NAVIGATION
   =========================================== */

.menu-wrapper {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px var(--section-padding-x) !important;
}

.menu-wrapper > .inner {
  max-width: var(--container-max) !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 !important;
}

.menu-wrapper .logo img {
  height: 40px !important;
  width: auto !important;
}

.ed-menu {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.ed-menu ul.menu-level-0 {
  display: flex !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ed-menu ul.menu-level-0 li a {
  display: block !important;
  padding: 10px 20px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm) !important;
  transition: var(--transition) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.ed-menu ul.menu-level-0 li a:hover {
  color: var(--gold-light) !important;
  background: var(--bg-card) !important;
}

.ed-menu ul.menu-level-0 li a.active,
.ed-menu ul.menu-level-0 li.current-menu-item a {
  color: var(--gold-light) !important;
  background: var(--bg-card) !important;
}

.mobile-cont { display: none !important; }
.menu-trigger-box { display: none; }

/* ===========================================
   7. HERO SECTION
   =========================================== */

#ed-722666225 {
  position: relative !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  background: var(--bg-primary) !important;
  padding-top: 80px !important;
  overflow: hidden !important;
}

#ed-722666225 .background {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
}

#ed-722666228 .background-image-holder {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  opacity: 0.2 !important;
}

#ed-722666231 {
  position: relative !important;
  z-index: 1 !important;
  max-width: var(--container-max) !important;
  margin: 0 auto !important;
  padding: 0 var(--section-padding-x) !important;
}

#ed-722666234 {
  transform: none !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  min-width: auto !important;
  max-width: 720px !important;
  background: transparent !important;
}

#ed-722666243 h1 {
  font-size: clamp(3rem, 6vw, 4rem) !important;
  font-weight: 800 !important;
  color: var(--text-white) !important;
  margin-bottom: 28px !important;
  line-height: 1.25 !important;
}

#ed-722666249 p {
  font-size: 1.5rem !important;
  line-height: 1.8 !important;
  color: var(--text-secondary) !important;
  margin-bottom: 10px !important;
}

#ed-722666249 strong {
  color: var(--gold-light) !important;
  font-weight: 600 !important;
}

/* Social Icons */
#ed-722666255 {
  margin-top: 40px !important;
}

#ed-722666255 > .inner {
  display: flex !important;
  gap: 12px !important;
}

#ed-722666255 a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 50% !important;
  transition: var(--transition) !important;
}

#ed-722666255 a:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

#ed-722666255 svg {
  width: 20px !important;
  height: 20px !important;
  fill: var(--text-secondary) !important;
}

#ed-722666255 a:hover svg {
  fill: var(--text-white) !important;
}

/* Banner Arrow */
#ed-722666267 {
  position: absolute !important;
  bottom: 40px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

#ed-722666267 svg {
  width: 32px !important;
  height: 32px !important;
  fill: var(--text-muted) !important;
  animation: bounce 2s infinite !important;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===========================================
   8. ABOUT SECTION (bg-secondary)
   =========================================== */

#ed-722666270 {
  background: var(--bg-secondary) !important;
}

#ed-722666279 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: var(--card-gap) !important;
}

#ed-722666279 p {
  padding: var(--card-padding) !important;
  margin: 0 !important;
}

/* First card - full width highlight with gold accent */
#ed-722666279 p:first-child {
  grid-column: 1 / -1 !important;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--gold-glow) 50%, var(--purple-glow) 100%) !important;
  border-color: var(--gold-dark) !important;
  box-shadow: 0 4px 24px rgba(212, 168, 83, 0.1) !important;
}

/* Hide empty paragraphs (only contain br or empty strong) */
#ed-722666279 p:has(> strong:only-child > br:only-child),
#ed-722666279 p:has(> br:only-child) {
  display: none !important;
}

/* Fallback for browsers without :has() support */
#ed-722666279 p:empty {
  display: none !important;
}

/* Card headings */
#ed-722666279 span[style*="font-size: 24px"],
#ed-722666279 span[style*="font-size: 24px"] strong {
  display: block !important;
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  color: var(--text-white) !important;
  margin-bottom: 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid var(--border-color) !important;
}

#ed-722666279 span[style*="font-size: 18px"],
#ed-722666279 span[style*="font-size: 18px"] strong {
  font-size: 1.125rem !important;
  font-weight: 400 !important;
  color: var(--text-secondary) !important;
  line-height: 1.8 !important;
}

/* ===========================================
   9. SERVICE SECTION (bg-primary)
   =========================================== */

#ed-722666087 {
  background: var(--bg-primary) !important;
}

#ed-722666096 {
  padding: 0 !important;
}

#ed-722666096 > .inner {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: var(--card-gap) !important;
}

.boxes-box {
  padding: var(--card-padding) !important;
  max-width: 100% !important;
  flex-basis: 100% !important;
  width: 100% !important;
}

.boxes-box > .inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 20px !important;
  padding: 0 !important;
}

.boxes-box-inner {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 100% !important;
}

.boxes-box-inner > .inner {
  padding: 0 !important;
}

.boxes-box-inner h3 {
  white-space: normal !important;
  word-break: keep-all !important;
}

.boxes-box-inner p {
  white-space: normal !important;
  word-break: keep-all !important;
}

/* ===========================================
   10. HISTORY SECTION (bg-secondary)
   =========================================== */

#ed-722666159 {
  background: var(--bg-secondary) !important;
}

#ed-722666159 > .inner {
  max-width: 800px !important;
  margin: 0 auto !important;
}

.accordion,
#ed-722666168 {
  overflow: hidden !important;
}

.accordion > .inner {
  padding: 0 !important;
  display: block !important;
}

.accordion-trigger {
  border-bottom: 1px solid var(--border-color) !important;
}

.accordion-trigger h4 {
  margin: 0 !important;
}

.accordion-trigger h4 a {
  display: block !important;
  padding: 24px var(--card-padding) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: var(--text-white) !important;
  transition: var(--transition) !important;
}

.accordion-trigger h4 a:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--gold-light) !important;
}

/* Active accordion trigger styling */
.accordion-trigger.active h4 a,
.accordion-trigger[class*="active"] h4 a {
  color: var(--gold-light) !important;
  border-left: 3px solid var(--gold) !important;
  padding-left: 29px !important;
}

.accordion-content {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.accordion-content > .inner {
  padding: 16px var(--card-padding) 24px !important;
}

.accordion-content p {
  color: var(--text-secondary) !important;
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
  margin: 0 0 8px 0 !important;
}

/* ===========================================
   11. CONTACT SECTION (bg-primary)
   =========================================== */

#ed-722666423,
.footer,
.preset-footer-heimdall-v2-left-wireframe-one {
  background: var(--bg-primary) !important;
  padding: 0 !important;
}

#ed-722666426,
.footer-heimdall-content {
  background: var(--bg-primary) !important;
  padding: var(--section-padding-y) var(--section-padding-x) 60px !important;
}

#ed-722666426 > .inner {
  max-width: var(--container-max) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Contact cards - 2 column grid like Service */
.footer-heimdall-box {
  margin-bottom: var(--card-gap) !important;
  padding: var(--card-padding) !important;
}

.footer-heimdall-box:last-of-type {
  margin-bottom: 0 !important;
}

.footer-heimdall-box > .inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 20px !important;
  padding: 0 !important;
}

/* Contact card content wrapper */
.footer-heimdall-box .ed-headline,
.footer-heimdall-box .ed-text {
  padding: 0 !important;
}

.footer-heimdall-box h3 {
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--accent-light) !important;
  font-size: 1rem !important;
}

/* Contact icon color variation */
.footer-heimdall-box:nth-child(2) .footer-heimdall-icon {
  background: var(--gold-glow) !important;
}
.footer-heimdall-box:nth-child(2) .footer-heimdall-icon svg {
  fill: var(--gold-light) !important;
}
.footer-heimdall-box:nth-child(2) h3 {
  color: var(--gold-light) !important;
}

.footer-heimdall-box:nth-child(3) .footer-heimdall-icon {
  background: var(--purple-glow) !important;
}
.footer-heimdall-box:nth-child(3) .footer-heimdall-icon svg {
  fill: var(--purple-light) !important;
}
.footer-heimdall-box:nth-child(3) h3 {
  color: var(--purple-light) !important;
}

.footer-heimdall-box p {
  color: var(--text-primary) !important;
}

.footer-heimdall-box a {
  color: var(--accent-light) !important;
}

/* ===========================================
   12. MAP
   =========================================== */

.ed-map,
#ed-722666465 {
  margin: 0 !important;
  padding: 0 !important;
}

.map-canvas {
  width: 100% !important;
  height: 360px !important;
  filter: grayscale(20%) brightness(0.9) !important;
}

/* ===========================================
   13. BACK TO TOP
   =========================================== */

#ed-722666468 {
  position: fixed !important;
  bottom: 32px !important;
  right: 32px !important;
  width: 52px !important;
  height: 52px !important;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3) !important;
  z-index: 999 !important;
  transition: var(--transition) !important;
}

#ed-722666468:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--purple-light) 100%) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.4) !important;
}

#ed-722666468 svg {
  width: 20px !important;
  height: 20px !important;
  fill: var(--text-white) !important;
}

/* ===========================================
   14. FORCE VISIBILITY
   =========================================== */

.animation-initial,
[data-animation],
[data-animation] * {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Preserve specific transforms */
#ed-722666267 {
  transform: translateX(-50%) !important;
}

.boxes-icon,
.footer-heimdall-icon {
  transform: none !important;
}

/* ===========================================
   15. RESPONSIVE
   =========================================== */

@media screen and (max-width: 1024px) {
  :root {
    --section-padding-y: 80px;
    --card-padding: 28px;
    --title-margin: 48px;
  }

  #ed-722666279,
  #ed-722666096 > .inner {
    grid-template-columns: 1fr !important;
  }

  #ed-722666279 p:first-child {
    grid-column: auto !important;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --section-padding-y: 64px;
    --section-padding-x: 24px;
    --card-padding: 24px;
    --card-gap: 16px;
    --title-margin: 40px;
  }

  /* Navigation */
  .ed-menu ul.menu-level-0 {
    display: none !important;
  }

  .mobile-cont {
    display: flex !important;
  }

  .menu-trigger-box {
    display: block !important;
    width: 28px;
    height: 20px;
    cursor: pointer;
  }

  .menu-trigger-inner {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: relative;
  }

  .menu-trigger-inner::before,
  .menu-trigger-inner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    left: 0;
  }

  .menu-trigger-inner::before { top: -8px; }
  .menu-trigger-inner::after { bottom: -8px; }

  /* Typography */
  #ed-722666243 h1 {
    font-size: 2.25rem !important;
  }

  .wv-boxed .ed-headline:first-child h2,
  #ed-722666273 h2,
  #ed-722666090 h2,
  #ed-722666162 h2,
  #ed-722780069 h2 {
    font-size: 2rem !important;
  }

  /* Cards stack vertically */
  .boxes-box > .inner,
  .footer-heimdall-box > .inner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .boxes-icon,
  .footer-heimdall-icon {
    width: 64px !important;
    min-width: 64px !important;
    height: 64px !important;
  }

  .boxes-icon svg,
  .footer-heimdall-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --section-padding-y: 48px;
    --section-padding-x: 16px;
    --card-padding: 20px;
  }

  #ed-722666468 {
    bottom: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .map-canvas {
    height: 280px !important;
  }
}

/* Remove the bottom location map from the contact area. */
#ed-722666465 {
  display: none !important;
}
