/* Reset & Base Styles */
:root {
  --primary-navy: #01183a;
  --secondary-navy: #012f47;
  --accent-gold: #c5a059;
  --accent-gold-hover: #a37f3b;
  --accent-red: #c72535;
  --accent-red-hover: #ab1d2b;
  --bg-light: #f3f6f9;
  --text-dark: #1e293b;
  --text-light: #f8fafc;
  --text-gray: #64748b;
  --white: #ffffff;
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', 'Roboto', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px; /* Offset for sticky header & tabs */
}

/* Header Banner */
.header-banner {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
  color: var(--white);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  border-bottom: 3px solid var(--accent-gold);
  z-index: 100;
}

.header-banner h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: var(--white);
}

.header-banner p {
  font-size: 14px;
  color: var(--accent-gold);
  font-weight: 500;
  letter-spacing: 1px;
}

/* Main Container Layout */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 80px 20px;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
  align-items: start;
}

/* Left Column (Sticky Sidebar) */
.sidebar {
  position: sticky;
  top: 80px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.sidebar-image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.sidebar-image-container:hover img {
  transform: scale(1.05);
}

/* Premium Business Card Styling */
.business-card {
  width: 100%;
  aspect-ratio: 1098 / 624;
  background: linear-gradient(135deg, #01183a 0%, #012f47 100%);
  color: var(--white);
  padding: 8% 7% 7% 7%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--accent-gold);
  transition: var(--transition-smooth);
}

.sidebar-image-container:hover .business-card {
  transform: scale(1.02);
}

/* Luxury internal gold border */
.business-card::before {
  content: '';
  position: absolute;
  top: 6%;
  left: 4%;
  right: 4%;
  bottom: 6%;
  border: 1px solid rgba(197, 160, 89, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* Subtle luxury gradient pattern overlay */
.business-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: rotate(-15deg);
}

.business-card * {
  z-index: 2; /* Text above overlays */
}

.card-brand {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(10px, 2.2vw, 13px);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.card-title {
  font-size: clamp(14px, 3.4vw, 21px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-top: 1%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-body {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

.card-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-role {
  font-size: clamp(9px, 2vw, 12px);
  font-weight: 500;
  color: #cbd5e1;
}

.card-name {
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--white);
}

.card-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  align-items: flex-end;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(10px, 2vw, 13px);
  color: #e2e8f0;
}

.contact-item i {
  color: var(--accent-gold);
  font-size: 0.9em;
}

.contact-value.phone-number {
  font-size: clamp(13px, 2.8vw, 18px);
  font-weight: 700;
  color: var(--accent-gold);
}

.card-footer-logo {
  font-size: clamp(8px, 1.8vw, 11px);
  color: #94a3b8;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(226, 232, 240, 0.15);
  padding-top: 3%;
  margin-top: auto;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

.sidebar-info {
  padding: 24px;
  text-align: center;
  background-color: var(--white);
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.sidebar-subtitle {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.sidebar-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.badge-item {
  background-color: #f1f5f9;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-left: 4px solid var(--accent-gold);
}

.sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--accent-red);
  color: var(--white);
  padding: 16px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(199, 37, 53, 0.3);
  transition: var(--transition-smooth);
  animation: pulse-red 2s infinite;
}

.sidebar-cta-btn:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 37, 53, 0.4);
}

/* Right Column */
.content-area {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Sticky Navigation Tab Bar */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.sticky-nav::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.nav-container-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  width: 100%;
}

.nav-tab {
  flex: 1 0 auto;
  text-align: center;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-gray);
  border-bottom: 3px solid transparent;
  transition: var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--primary-navy);
}

.nav-tab.active {
  color: var(--primary-navy);
  font-weight: 700;
  border-bottom-color: var(--accent-gold);
}

/* Content Sections */
.section {
  padding: 40px 30px;
  border-bottom: 1px solid #f1f5f9;
  scroll-margin-top: 130px; /* Sync with html scroll-padding-top */
}

.section:last-child {
  border-bottom: none;
}

.section-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.section-line {
  flex: 1;
  height: 1px;
  background-color: #e2e8f0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-navy);
  text-align: center;
  position: relative;
  letter-spacing: -0.5px;
  padding: 0 10px;
}

.section-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--accent-gold);
  margin: 8px auto 0 auto;
  border-radius: 2px;
}

.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gallery-item {
  width: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  background-color: #f8fafc;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.015);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(1, 24, 58, 0.95);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-modal.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  color: var(--accent-gold);
}

.lightbox-caption {
  color: var(--white);
  margin-top: 15px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

/* Footer Section */
.footer-wrap {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
  border-top: 3px solid var(--accent-gold);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 14px;
  color: #a0aec0;
}

.footer-content address {
  font-style: normal;
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-content p.disclaimer {
  font-size: 12px;
  color: #718096;
}

/* Mobile Fixed Bottom CTA */
.mobile-fixed-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: var(--secondary-navy);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
  z-index: 99;
  border-top: 2px solid var(--accent-gold);
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  transition: var(--transition-smooth);
}

.mobile-cta-btn span {
  animation: blink-animation 1.5s infinite alternate;
}

.mobile-cta-btn:active {
  background-color: var(--primary-navy);
}

/* Animations */
@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(199, 37, 53, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(199, 37, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(199, 37, 53, 0);
  }
}

@keyframes blink-animation {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .main-container {
    grid-template-columns: 1fr;
    padding: 20px 15px 100px 15px;
    gap: 20px;
  }

  .sidebar {
    position: static;
    width: 100%;
  }

  .sidebar-cta-btn {
    display: none; /* Hidden on tablet/mobile sidebar because of bottom fixed CTA */
  }

  .mobile-fixed-cta {
    display: block;
  }
}

@media (max-width: 576px) {
  .header-banner {
    padding: 16px 12px;
  }

  .header-banner h1 {
    font-size: 18px;
  }

  .header-banner p {
    font-size: 12px;
  }

  .section {
    padding: 24px 15px;
  }

  .section-title {
    font-size: 16px;
  }

  .nav-tab {
    padding: 12px 14px;
    font-size: 12px;
  }

  .lightbox-close {
    top: -30px;
    right: 5px;
    font-size: 24px;
  }

  .lightbox-caption {
    font-size: 14px;
  }
}

/* Consultation Form Styles */
.consult-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #f8fafc;
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
}

.consult-desc {
  text-align: center;
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 24px;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-navy);
}

.form-group label .required {
  color: var(--accent-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background-color: var(--white);
  transition: var(--transition-smooth);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form-agreement {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.agreement-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

.agreement-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.agreement-box {
  background-color: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  color: var(--text-gray);
  height: 90px;
  overflow-y: auto;
  line-height: 1.6;
}

.form-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--accent-gold);
  color: var(--white);
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
  transition: var(--transition-smooth);
}

.form-submit-btn:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.form-submit-btn:active {
  transform: translateY(0);
}

.form-submit-btn.loading {
  background-color: var(--text-gray);
  pointer-events: none;
  cursor: not-allowed;
}

/* Success Message */
.form-success-container {
  text-align: center;
  padding: 30px 10px;
}

.success-icon {
  font-size: 48px;
  color: #10b981; /* green */
  margin-bottom: 16px;
  animation: scale-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-success-container h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.form-success-container p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

@keyframes scale-up {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 576px) {
  .consult-container {
    padding: 20px 15px;
  }
}

