/* NiceCareGive static landing pages — shared layout */
:root {
  --color-primary: #1abf9e;
  --color-primary-dark: #129a80;
  --color-primary-ink: #0b5c4c;
  --color-surface: #fffff0;
  --color-surface-alt: #f5fffa;
  --color-card: #ffffff;
  --color-text: #1b1c1c;
  --color-text-sub: #5a6b62;
  --color-border: #bccac2;
  --color-footer: #252525;
  --color-footer-text: #cfcfcf;
  --color-footer-muted: #9a9a9a;
  --radius: 1rem;
  --shadow: 0 8px 24px rgba(27, 28, 28, 0.08);
  --header-h: 4.25rem;
  --max: 72rem;
  --gutter: 1.25rem;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100%;
}

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

a {
  color: var(--color-primary-ink);
}

a:hover {
  color: var(--color-primary-dark);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  background: rgba(255, 255, 240, 0.96);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.site-nav {
  flex: 1 1 auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text-sub);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--color-surface-alt);
  color: var(--color-primary-ink);
}

.header-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.header-tel:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.mobile-cta {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: #129a80;
  text-align: center;
}

.mobile-cta a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem var(--gutter);
  min-height: 2.75rem;
}

@media (min-width: 768px) {
  .mobile-cta {
    display: none;
  }
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 3.5rem;
}

.hero-copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 1.25rem;
  color: var(--color-text-sub);
  font-size: 1.05rem;
  font-weight: 500;
}

.hero-figure {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e8efe9;
}

.hero-figure img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  object-position: center;
}

.intro {
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary-ink);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-surface-alt);
  color: var(--color-primary-ink);
}

.section {
  margin-top: 2.5rem;
  padding: 1.5rem 1.25rem;
  background: var(--color-card);
  border: 1px solid rgba(188, 202, 194, 0.6);
  border-radius: var(--radius);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.section p:last-child,
.section ul:last-child,
.section ol:last-child,
.section dl:last-child {
  margin-bottom: 0;
}

.section ul,
.section ol {
  padding-left: 1.2rem;
}

.section li + li {
  margin-top: 0.4rem;
}

.faq dt {
  font-weight: 700;
  margin-top: 1rem;
}

.faq dt:first-child {
  margin-top: 0;
}

.faq dd {
  margin: 0.25rem 0 0;
  color: var(--color-text-sub);
}

.related-label {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-list li + li {
  margin-top: 0.35rem;
}

.cta-band {
  margin-top: 2.5rem;
  padding: 1.6rem 1.25rem;
  background: var(--color-primary-ink);
  color: #fff;
  border-radius: var(--radius);
}

.cta-band h2 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: 1.25rem;
}

.cta-band p {
  margin: 0 0 1rem;
  color: #e8fff8;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--color-primary-ink);
}

.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.cta-band .btn-primary:hover {
  background: var(--color-surface-alt);
  color: var(--color-primary-ink);
}

.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.note {
  color: var(--color-text-sub);
  font-size: 0.95rem;
}

.site-footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  padding: 2.25rem var(--gutter) 2.75rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.92rem;
  color: var(--color-footer-muted);
  line-height: 1.7;
}

.footer-list a {
  color: #d7fff4;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.copy {
  margin: 0;
  color: var(--color-footer-muted);
  font-size: 0.85rem;
}

@media (max-width: 639px) {
  .header-tel {
    width: 100%;
  }

  .hero-figure img {
    max-height: 16.5rem;
  }

  .section {
    padding: 1.2rem 1rem;
  }
}

.phone-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
}

.phone-dialog {
  width: min(22rem, 100%);
  padding: 1.35rem 1.4rem 1rem;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(27, 28, 28, 0.18);
}

.phone-dialog h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.phone-dialog p {
  margin: 0 0 1.1rem;
  color: var(--color-text);
  line-height: 1.6;
}

.phone-dialog-ok {
  display: block;
  margin-left: auto;
  min-height: 2.5rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.phone-dialog-ok:hover,
.phone-dialog-ok:focus-visible {
  color: var(--color-primary-dark);
}

@media (min-width: 640px) {
  :root {
    --gutter: 1.5rem;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .header-tel {
    margin-left: auto;
  }
}
