@import url("https://fonts.googleapis.com/css2?family=Song+Myung&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.css");

:root {
  --c-primary: #B45309;
  --c-second: #F59E0B;
  --c-bg: #FFFBEB;
  --c-text: #1C1917;
  --c-accent: #0E7490;
  --radius: 999px;
  --maxw: 1120px;
  --leading: 1.70;
  --header-h: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: var(--leading);
  padding-top: var(--header-h);
}

h1, h2, .topbar-mark span {
  font-family: "Song Myung", "Pretendard Variable", serif;
}

a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 300;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---------- Fixed top header with scroll-progress bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  background: #FFFFFF;
  box-shadow: inset 0 -1px 0 rgba(180,83,9,0.14);
  z-index: 200;
}

.topbar-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-primary);
  flex-shrink: 0;
}
.topbar-mark span {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.top-nav a {
  text-decoration: none;
  color: var(--c-primary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: var(--radius);
}
.top-nav a:hover,
.top-nav a:focus-visible {
  background: #FEF3C7;
  color: var(--c-accent);
}

.topbar-cta { flex-shrink: 0; }

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--c-primary);
  cursor: pointer;
  padding: 6px;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #FDE9C4;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--c-accent);
}

/* ---------- Main content ---------- */
.main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 80px;
}

.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 700;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 0 0 18px;
  color: var(--c-primary);
}
.hero-sub {
  font-size: 1.04rem;
  color: #57534E;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* 24-hour dial hero visual */
.dial-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.dial {
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(180,83,9,0.10), inset 0 4px 14px rgba(28,25,23,0.06);
  background: #fff;
}
.dial-track {
  fill: none;
  stroke: #FDE9C4;
  stroke-width: 2;
}
.dial-ticks line {
  stroke: #B45309;
  stroke-linecap: round;
  opacity: 0.55;
}
.dial-labels text {
  font-size: 12px;
  fill: #78716C;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: "Pretendard Variable", sans-serif;
}
.dial-arc {
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
}
.dial-arc--prep { stroke: #FCD34D; }
.dial-arc--main { stroke: var(--c-primary); }
.dial-arc--wrap { stroke: var(--c-accent); }

.dial-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.dial-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #44403C;
}
.swatch {
  width: 14px;
  height: 14px;
  border-radius: var(--radius);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6);
}
.swatch--prep { background: #FCD34D; }
.swatch--main { background: var(--c-primary); }
.swatch--wrap { background: var(--c-accent); }

/* CTA group */
.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 36px;
  justify-content: center;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.14);
  transition: transform 0.15s ease;
}
.cta--call {
  background: var(--c-primary);
  color: #fff;
}
.cta--sms {
  background: #fff;
  color: var(--c-primary);
  box-shadow: inset 0 0 0 1.5px var(--c-primary);
}
.cta:hover { transform: translateY(-2px); }

/* Vertical timeline (central axis) */
.timeline {
  position: relative;
  margin: 0 0 8px;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #FDE9C4;
}
.tl-item {
  position: relative;
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-marker {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 20px;
  display: flex;
  justify-content: center;
}
.tl-dot {
  width: 18px;
  height: 18px;
  border-radius: var(--radius);
  background: var(--c-primary);
  box-shadow: inset 0 0 0 3px #FFFBEB, 0 0 0 3px #FDE9C4;
}
.tl-card {
  flex: 1;
  background: #fff;
  border-radius: 26px;
  padding: 36px 40px;
  box-shadow: inset 0 0 0 1px rgba(180,83,9,0.10), inset 0 6px 18px rgba(28,25,23,0.045);
}

.h2-chip {
  display: inline-block;
  background: #FEF3C7;
  color: var(--c-primary);
  padding: 8px 22px;
  border-radius: var(--radius);
  font-size: 1.3rem;
  margin: 0 0 18px;
  box-shadow: inset 0 0 0 1.5px #FCD34D;
}
.tl-card h2 { margin: 0 0 18px; }
.tl-card p { margin: 0 0 14px; color: #292524; }
.tl-card ul { margin: 0 0 4px; padding-left: 20px; color: #292524; }
.tl-card li { margin-bottom: 8px; }

table.time-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin: 8px 0 6px;
  font-size: 0.92rem;
}
table.time-table th, table.time-table td {
  padding: 12px 16px;
  text-align: left;
  background: #FFFBEB;
  box-shadow: inset 0 0 0 1px #FDE9C4;
}
table.time-table th {
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}
table.time-table th:first-child, table.time-table td:first-child { border-radius: 12px 0 0 12px; }
table.time-table th:last-child, table.time-table td:last-child { border-radius: 0 12px 12px 0; }

/* Photo row */
.photo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 8px 0 40px;
}
.photo-row figure { margin: 0; }
.photo-row img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(180,83,9,0.14);
}
.photo-row figcaption {
  font-size: 0.82rem;
  color: #78716C;
  margin-top: 8px;
}

/* related links */
.related-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}
.related-links a {
  text-decoration: none;
  background: #FFFBEB;
  color: var(--c-primary);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  box-shadow: inset 0 0 0 1px #FDE9C4;
}
.related-links a:hover { background: #FEF3C7; }

.tl-card .cta-group { justify-content: flex-start; margin-top: 24px; margin-bottom: 0; }

/* Footer */
.site-footer {
  box-shadow: inset 0 1px 0 #FDE9C4;
  padding: 44px 0 60px;
  margin-top: 24px;
}
.footer-inner { max-width: 640px; margin: 0 auto; padding: 0 32px; }
.footer-brand {
  font-weight: 700;
  color: var(--c-primary);
  margin: 0 0 12px;
}
.footer-biz {
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: 6px;
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: #57534E;
}
.footer-biz dt { font-weight: 600; color: #78716C; }
.footer-biz dd { margin: 0; }
.footer-biz a { color: var(--c-primary); text-decoration: underline; }
.footer-copy { font-size: 0.78rem; color: #A8A29E; margin: 0; }

/* Mobile overlay nav */
.mobile-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .top-nav { display: none; }
  .topbar-mark span { display: none; }
  .hamburger-btn { display: inline-flex; }
  .mobile-overlay.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--c-primary);
    z-index: 300;
    flex-direction: column;
    padding: 28px 24px;
    gap: 6px;
  }
  .mobile-overlay a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .mobile-overlay .close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .photo-row { grid-template-columns: 1fr; }
  .tl-card { padding: 28px 22px; }
  .dial-wrap { gap: 24px; }
  .footer-biz { grid-template-columns: 90px 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 0 24px; }
  .cta-group { flex-direction: column; }
  .cta { justify-content: center; }
  .topbar { padding: 0 16px; }
  .timeline { padding-left: 26px; }
  .tl-marker { left: -26px; width: 16px; }
  .tl-dot { width: 14px; height: 14px; }
  .dial { width: 200px; height: 200px; }
}

/* Scroll reveal (single animation type for this page) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
