/*
 * This is a manifest file that'll be compiled into application.css.
 */

:root {
  --primary-color: #0052cc; /* Deep, professional blue */
  --primary-dark: #0747a6;
  --secondary-color: #42526e;
  --accent-color: #00b8d9;
  --background-color: #ffffff;
  --surface-color: rgba(255, 255, 255, 0.8);
  --text-color: #172b4d;
  --text-light: #5e6c84;
  --border-color: rgba(9, 30, 66, 0.08);
  --shadow-sm: 0 1px 2px rgba(9, 30, 66, 0.08);
  --shadow-md: 0 4px 8px rgba(9, 30, 66, 0.12), 0 0 1px rgba(9, 30, 66, 0.1);
  --shadow-lg: 0 8px 16px rgba(9, 30, 66, 0.12), 0 0 1px rgba(9, 30, 66, 0.1);
  --shadow-xl: 0 20px 32px rgba(9, 30, 66, 0.15), 0 0 1px rgba(9, 30, 66, 0.1);
  --radius-md: 8px;
  --radius-lg: 16px;
  --font-sans: "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

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

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.025em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav > ul {
  display: flex;
  gap: 0.5rem; /* Reduced gap slightly */
  align-items: center; /* Ensure all items are vertically centered */
}

.site-nav > ul > li {
  position: relative;
  display: flex; /* Make all list items flex containers */
  align-items: center; /* Center content vertically */
}

.site-nav a {
  display: block; /* Ensure padding affects layout */
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  line-height: 1; /* Reset line height for precise alignment */
}

.site-nav a:hover {
  color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.05);
}

/* Dropdown Toggle Arrow */
.site-nav .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
  margin-left: 4px;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(-135deg) translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
  /* position: relative; is already inherited from li */
  /* display: flex; is already inherited from li */
  /* align-items: center; is already inherited from li */
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--surface-color);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  z-index: 1000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  margin-top: 0.5rem; /* Visual gap */
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

/* Robust bridge for hover - attached to the menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px; /* Extend upwards to cover the gap and overlap parent */
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

/* Small arrow pointing up */
.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--surface-color);
  filter: drop-shadow(0 -1px 0 var(--border-color));
}

@keyframes dropdownFadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  animation: dropdownFadeInUp 0.2s ease-out;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  padding: 0.75rem 1.5rem;
  display: block;
  color: var(--text-color);
  font-weight: 500;
}

.dropdown-menu a:hover {
  background-color: var(--background-color);
  color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
  margin-top: 0;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }

p { margin-bottom: 1.5rem; color: var(--text-light); }

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 0; /* Reduced padding */
  background-color: #1e293b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
  margin-bottom: 0; /* Removed margin to connect with next section */
  position: relative;
  color: white;
}

/* Overlay to make text readable on images */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8)); /* Gradient overlay */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem; /* Reduced font size */
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 4px 6px rgba(0,0,0,0.3);
  background: none;
  -webkit-text-fill-color: initial;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.25rem; /* Reduced font size */
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-weight: 300;
}

/* Trendy Backgrounds */
.mesh-bg {
  background-color: #f4f5f7;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 82, 204, 0.03) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 184, 217, 0.03) 0%, transparent 25%);
}

/* Feature Content Section */
.feature-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

.feature-content p {
  margin-bottom: 1.5rem;
}

/* Removed Drop Cap */

.quote-card {
  text-align: center;
  padding: 4rem 2rem;
  margin: 3rem 0;
  position: relative;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6rem;
  line-height: 1;
  color: rgba(0, 82, 204, 0.1);
  font-family: serif;
}

.quote-card p {
  font-size: 1.4rem; /* Reduced from 1.75rem to prevent wrapping */
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.4;
  word-break: keep-all; /* Keep words together */
}

.quote-card strong {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-top: 2px solid var(--primary-color);
  padding-top: 1rem;
}

/* Image Placeholders */
.img-placeholder {
  width: 100%;
  height: 240px;
  background-color: #f4f5f7;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .img-placeholder img {
  transform: scale(1.08);
}

/* Card Grid Improvements */
.card {
  background: #ffffff;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.025em;
}

.card p {
  margin-bottom: 2rem;
  flex: 1;
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--primary-dark);
  background: transparent;
  box-shadow: none;
}

.card-link::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.2s;
  font-family: sans-serif;
}

.card-link:hover::after {
  transform: translateX(4px);
}

.card:hover .img-placeholder img {
  transform: scale(1.05);
}

/* Sections */
.section {
  margin-bottom: 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
}

.section-header p {
  font-size: 1.125rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Old card styles removed to prevent conflicts */

.card a {
  display: inline-block;
  margin-top: auto;
  font-weight: 600;
  transition: transform 0.2s;
}

.card a:hover {
  transform: translateX(4px);
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  padding-left: 2rem;
  position: relative;
  color: var(--text-color);
}

.feature-list li:before {
  content: "✓";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Service Detail Page */
.service-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

@media (min-width: 992px) {
  .service-content {
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
  }
}

.service-main h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.service-main p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.service-sidebar {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 2rem; /* Sticky sidebar */
}

.service-sidebar h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.price-tag {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.03em;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: #eff6ff;
  color: var(--primary-color);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature-list li {
  padding-left: 2.5rem;
  position: relative;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.6;
}

.feature-list li:before {
  content: "✓";
  color: white;
  background: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Video Section */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.video-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  padding: 1.5rem;
}

.video-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.video-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background-color: #1e293b;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .service-content { grid-template-columns: 1fr; }
  .site-nav { display: none; } /* Simple hide for now, would need JS for mobile menu */
}


/* Spot Highlighter Section Redesign */
.spot-highlighter-section {
  padding: 6rem 0;
  background-color: #fff;
  position: relative;
  overflow: visible; /* Allow sticky to work */
}

.spot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .spot-grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
  
  .spot-visual {
    position: sticky;
    top: 8rem; /* Adjust based on header height */
    height: fit-content;
  }
}

.spot-visual h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-color);
  letter-spacing: -0.03em;
}

.spot-visual .subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-weight: 500;
  line-height: 1.5;
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

.visual-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 20px 20px 60px #d1d5db, -20px -20px 60px #ffffff; /* Neumorphism-ish soft shadow */
  aspect-ratio: 4/5;
  position: relative;
}

.visual-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}

.spot-visual:hover .visual-image img {
  transform: scale(1.05);
}

.spot-text {
  padding-top: 1rem;
}

.spot-text p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #334155;
  margin-bottom: 2rem;
}

.spot-text p:first-child {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-color);
}
