/* ==========================================================================
   누수해결119 - design tokens (warm, friendly, light theme)
   ========================================================================== */
:root {
  --bg: #fbf7f1;
  --bg-alt: #eef4fa;
  --surface: #ffffff;

  --navy: #1e3a5f;
  --navy-dark: #142943;
  --teal: #0e9488;
  --teal-dark: #0b756c;
  --coral: #ff6b4a;
  --coral-dark: #c73d20;
  --coral-hover: #a8331a;
  --amber: #f59e0b;
  --green: #21976a;

  --ink: #1f2937;
  --ink-soft: #4b5563;
  --ink-muted: #6b7280;
  --ink-inverse: #e7ecf3;
  --ink-inverse-muted: #aebbd0;

  --border: rgba(31, 41, 55, 0.09);
  --border-strong: rgba(31, 41, 55, 0.14);

  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-full: 999px;

  --container: 1280px;
  --container-narrow: 880px;

  --shadow-card: 0 22px 45px -30px rgba(31, 41, 55, 0.45), 0 2px 8px rgba(31, 41, 55, 0.05);
  --shadow-card-hover: 0 28px 55px -28px rgba(31, 41, 55, 0.5), 0 4px 10px rgba(31, 41, 55, 0.06);

  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

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

h1, h2, h3 {
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0;
}

p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Focus states — visible everywhere for keyboard users.
   Navy reads clearly on the light backgrounds used almost everywhere;
   the footer and the dark CTA box override to white so the ring still
   meets contrast against navy/teal surfaces. */
.brand img {width: 170px;}
   
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer :focus-visible,
.cta-box :focus-visible {
  outline-color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--coral-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.text-accent { color: var(--coral-dark); }
.text-accent-warm { color: var(--coral-dark); }
.text-emerald { color: var(--green); }
.block { display: block; }
.text-center { text-align: center; }

.gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, var(--teal-dark), var(--coral-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.highlight-pill {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.85rem 1.75rem;
  background: rgba(255, 107, 74, 0.1);
  border: 1px solid rgba(255, 107, 74, 0.3);
  border-radius: var(--radius-md);
  color: var(--coral-dark);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--coral-dark);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(199, 61, 32, 0.55);
  border-color: var(--coral-dark);
}

.btn-primary:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-dark:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-alt);
  border-color: var(--navy);
}

.btn-cta {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35);
}

.btn-cta:hover {
  background: var(--bg-alt);
  transform: translateY(-3px);
}

.btn-compact {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.2;
  flex-direction: column;
  gap: 0.1rem;
}

.btn-strong {
  font-weight: 900;
}

.btn-large {
  padding: 1.1rem 2.25rem;
  font-size: 1.1rem;
}

.btn-xl {
  padding: 1.4rem 3rem;
  font-size: 1.35rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(251, 247, 241, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-accent {
  color: var(--coral-dark);
}

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

.primary-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar { top: 50%; transform: translateY(-50%); }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }

  .primary-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .primary-nav.is-open {
    max-height: 20rem;
  }

  .btn-compact {
    display: none;
  }
}

/* ==========================================================================
   Sections / layout
   ========================================================================== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.1rem;
  font-weight: 500;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 9rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #fff3e8 0%, var(--bg) 55%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero::before {
  top: -6rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(14, 148, 136, 0.16);
}

.hero::after {
  bottom: -8rem;
  left: -6rem;
  width: 20rem;
  height: 20rem;
  background: rgba(255, 107, 74, 0.14);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 107, 74, 0.1);
  border: 1px solid rgba(255, 107, 74, 0.3);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--coral-dark);
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 34rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.trust-row li {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-media {
  position: relative;
  z-index: 1;
}

.hero-photo {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card-hover);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-chip {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.hero-gallery {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.hero-gallery li {
  flex: 1;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 24px -10px rgba(31, 41, 55, 0.35);
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 7.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.25rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.principle-card:hover,
.service-card:hover,
.region-card:hover,
.insurance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.icon-circle--coral { background: rgba(255, 107, 74, 0.12); }
.icon-circle--teal { background: rgba(14, 148, 136, 0.12); }
.icon-circle--navy { background: rgba(30, 58, 95, 0.08); }
.icon-circle--teal-solid { background: var(--teal); }

.principle-card h3,
.service-card h3,
.insurance-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.principle-card p,
.service-card p,
.insurance-card p {
  color: var(--ink-muted);
  font-weight: 500;
  line-height: 1.7;
}

/* ==========================================================================
   Services
   ========================================================================== */
.service-media {
  height: 10rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
}

.service-media--coral {
  background: linear-gradient(160deg, rgba(255, 107, 74, 0.22), rgba(255, 107, 74, 0.05));
}

.service-media--amber {
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.05));
}

.service-media--teal {
  background: linear-gradient(160deg, rgba(14, 148, 136, 0.22), rgba(14, 148, 136, 0.05));
}

.check-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-list li::before {
  content: "✔";
  color: var(--coral);
}

.check-list--amber li::before { color: var(--amber); }
.check-list--teal li::before { color: var(--teal); }

/* ==========================================================================
   Regions
   ========================================================================== */
.region-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.region-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.dot-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.dot-list li::before {
  content: "✔ ";
  color: var(--teal);
}

.region-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

/* ==========================================================================
   Testimonials / marquee
   ========================================================================== */
.testimonial-section {
  padding-bottom: 5rem;
}

.marquee-wrap {
  position: relative;
  padding: 0 1.5rem;
}

.marquee-toggle {
  position: absolute;
  top: -3.5rem;
  right: 1.5rem;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.marquee-track {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.marquee-track::before,
.marquee-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-track::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee-track::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.marquee-list {
  display: flex;
  flex-shrink: 0;
  gap: 1.5rem;
  width: max-content;
}

.marquee-track.is-animating {
  overflow: hidden;
}

.marquee-track.is-animating .marquee-list {
  animation: marquee 45s linear infinite;
}

.marquee-track.is-paused .marquee-list {
  animation-play-state: paused;
}

.marquee-track:hover .marquee-list,
.marquee-track:focus-within .marquee-list {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track.is-animating .marquee-list {
    animation: none;
  }

  .marquee-list#marqueeListClone {
    display: none;
  }
}

.testimonial-card {
  width: 320px;
  flex-shrink: 0;
  padding: 1.75rem;
}

.stars {
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.stars span {
  color: var(--navy);
  font-weight: 700;
  margin-left: 0.5rem;
  letter-spacing: normal;
}

.quote {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  min-height: 5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.quote-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.quote-name {
  font-weight: 700;
  color: var(--navy);
}

.quote-tag {
  font-size: 0.7rem;
  color: var(--coral-dark);
  background: rgba(255, 107, 74, 0.1);
  border: 1px solid rgba(255, 107, 74, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Insurance
   ========================================================================== */
.insurance-card--featured {
  border-color: rgba(14, 148, 136, 0.35);
  background: rgba(14, 148, 136, 0.04);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-summary {
  margin-bottom: 2.5rem;
  border-color: rgba(14, 148, 136, 0.3);
}

.faq-summary h3 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

thead th {
  color: var(--ink-muted);
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-strong);
}

tbody th,
tbody td {
  padding: 1.1rem 0.75rem 1.1rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-weight: 500;
}

tbody th {
  color: var(--navy);
  font-weight: 700;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  padding: 0;
  overflow: hidden;
}

.accordion-item:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.accordion-item h3 {
  margin: 0;
  font-size: 1rem;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.chevron {
  color: var(--ink-muted);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.accordion-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  padding: 0 2rem 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.7;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  border-radius: 2rem;
  padding: clamp(2.75rem, 5vw, 4.5rem) clamp(1.75rem, 5vw, 3.5rem);
  box-shadow: 0 35px 70px -30px rgba(20, 41, 67, 0.55);
}

.cta-box h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.cta-box p {
  font-size: 1.15rem;
  color: var(--ink-inverse);
  font-weight: 500;
  margin-bottom: 2.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  padding: 3rem 0;
  font-size: 0.9rem;
  color: var(--ink-inverse-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  color: var(--ink-inverse);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .badge-dot {
    animation: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
