/* ===== Carnation Caring — Fresh Design System ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #faf6f5;
  --surface: #ffffff;
  --primary: #6b3131;
  --primary-light: #8a4a4a;
  --primary-dark: #552626;
  --primary-soft: #f0e6e6;
  --accent-soft: #f5eded;
  --gradient-brand: linear-gradient(145deg, #552626 0%, #6b3131 45%, #7d4242 100%);
  --gradient-btn: linear-gradient(135deg, #6b3131 0%, #7a3d3d 100%);
  --text: #2a1f1f;
  --text-muted: #5c4a4a;
  --border: #e8dddd;
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 8px 30px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 25, 23, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Noto Sans KR', system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
  /* Pexels free stock photos – East Asian elderly & family care */
  --img-hero: url('https://images.pexels.com/photos/5637742/pexels-photo-5637742.jpeg?auto=compress&cs=tinysrgb&w=1200');
  --img-hospital: url('https://images.pexels.com/photos/6798592/pexels-photo-6798592.jpeg?auto=compress&cs=tinysrgb&w=900');
  --img-dementia: url('https://images.pexels.com/photos/5637738/pexels-photo-5637738.jpeg?auto=compress&cs=tinysrgb&w=900');
  --img-documents: url('https://images.pexels.com/photos/7363991/pexels-photo-7363991.jpeg?auto=compress&cs=tinysrgb&w=900');
  --img-home: url('https://images.pexels.com/photos/7364192/pexels-photo-7364192.jpeg?auto=compress&cs=tinysrgb&w=900');
  --img-scope-hero: url('https://images.pexels.com/photos/5637736/pexels-photo-5637736.jpeg?auto=compress&cs=tinysrgb&w=1600');
  --img-contact-hero: url('https://images.pexels.com/photos/5637572/pexels-photo-5637572.jpeg?auto=compress&cs=tinysrgb&w=1600');
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Layout ===== */
.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--gradient-brand);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav a {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.nav a.is-active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

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

.btn--primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 16px rgba(107, 49, 49, 0.28);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #552626 0%, #6b3131 100%);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

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

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.1875rem;
}

/* ===== Page Hero (shared) ===== */
.page-hero {
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.page-hero--brand {
  background: var(--gradient-brand);
  color: #fff;
}

.page-hero--brand .page-hero__label,
.page-hero--brand .page-hero__title,
.page-hero--brand .page-hero__desc,
.page-hero--photo .page-hero__label,
.page-hero--photo .page-hero__title,
.page-hero--photo .page-hero__desc {
  color: #fff;
}

.page-hero--photo {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
}

.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(85, 38, 38, 0.82) 0%, rgba(107, 49, 49, 0.72) 100%);
  z-index: 1;
}

.page-hero--photo .page-hero__inner {
  position: relative;
  z-index: 2;
}

.page-hero--scope::before {
  background-image: var(--img-scope-hero);
}

.page-hero--contact::before {
  background-image: var(--img-contact-hero);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-size: clamp(2.125rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-hero__desc {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 36rem;
  line-height: 1.75;
}

.page-hero__desc--narrow {
  max-width: 32rem;
}

/* ===== Home Hero ===== */
.home-hero {
  padding: 3rem 0 0;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 520px;
}

.home-hero__content h1 {
  font-size: clamp(1.875rem, 3.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text);
  word-break: keep-all;
}

.home-hero__content h1 em {
  font-style: normal;
  color: var(--primary);
}

.home-hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 28rem;
  line-height: 1.7;
}

.home-hero__visual {
  position: relative;
}

.home-hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.home-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Stats ===== */
.stats {
  margin-top: 4rem;
  padding: 2rem 0 3rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-card strong {
  display: block;
  font-size: 1.375rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.stat-card span {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section--white {
  background: var(--surface);
}

.section__eyebrow {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.875rem, 3.5vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.section__title--center {
  text-align: center;
}

/* ===== Welcome banner ===== */
.welcome {
  background: var(--gradient-brand);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.welcome__title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.welcome__text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.0625rem;
  line-height: 1.85;
}

/* ===== Service cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-item__img {
  position: absolute;
  inset: 0;
  background: var(--primary-light);
}

.service-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.service-item:hover .service-item__img img {
  transform: scale(1.06);
}

.service-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.85) 0%, rgba(28, 25, 23, 0.1) 60%);
}

.service-item__body {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: #fff;
}

.service-item__body h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.service-item__body p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.service-item__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
}

.service-item__link:hover {
  text-decoration: underline;
}

/* ===== Scope page ===== */
.scope-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.scope-feature {
  background: var(--gradient-brand);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: none;
  box-shadow: var(--shadow-md);
}

.scope-feature p {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.75;
}

.scope-cta {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.scope-cta__title {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.scope-cta__divider {
  width: 4px;
  height: 32px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0 auto 2rem;
}

/* ===== Contact page ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-card__meta .eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.contact-card__meta h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.contact-card__meta .sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.contact-card__rep {
  margin-bottom: 1.5rem;
}

.contact-card__rep .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contact-card__rep .name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.contact-card__hours {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 2;
}

.contact-list a:hover {
  color: var(--primary);
}

.contact-services {
  list-style: none;
}

.contact-services li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.0625rem;
  font-weight: 500;
}

.contact-services li:last-child {
  border-bottom: none;
}

.contact-services li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.contact-card__banner {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
}

.contact-card__tagline {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-quick {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-quick .btn {
  min-width: 240px;
  justify-content: center;
}

/* ===== Reviews ===== */
.reviews {
  margin-top: 1rem;
}

.reviews__title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.review-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.review-card__service {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--primary-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.review-card__text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--gradient-brand);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
  margin-top: 2rem;
}

.site-footer__nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.site-footer__nav a {
  font-size: 1rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.site-footer__nav a:hover {
  opacity: 1;
}

.site-footer__info {
  font-size: 0.9375rem;
  opacity: 0.6;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.site-footer__copy {
  font-size: 0.75rem;
  opacity: 0.4;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Landing popup ===== */
.landing-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.landing-popup[hidden] {
  display: none;
}

.landing-popup-open {
  overflow: hidden;
}

.landing-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 12, 0.55);
}

.landing-popup__dialog {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(92vh, 40rem);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  padding: 2rem 1.75rem 0;
}

.landing-popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #9a8f8f;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.landing-popup__close:hover {
  color: var(--text-muted);
}

.landing-popup__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.landing-popup__logo img {
  width: 3.5rem;
  height: 3.5rem;
}

.landing-popup__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.landing-popup__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.landing-popup__text strong {
  color: var(--primary);
  font-weight: 700;
}

.landing-popup__warning {
  margin-bottom: 1.5rem;
}

.landing-popup__warning-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.landing-popup__warning-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.landing-popup__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  margin: 0 -1.75rem;
}

.landing-popup__btn {
  border: 0;
  background: transparent;
  padding: 1rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.landing-popup__btn + .landing-popup__btn {
  border-left: 1px solid var(--border);
}

.landing-popup__btn:hover,
.landing-popup__btn--primary {
  color: var(--text);
}

.landing-popup__btn:hover {
  background: var(--primary-soft);
}

.landing-popup__btn--primary {
  font-weight: 600;
}

@media (max-width: 600px) {
  .landing-popup {
    padding: 1rem;
  }

  .landing-popup__dialog {
    width: 100%;
    max-height: 88vh;
    padding: 1.5rem 1.25rem 0;
  }

  .landing-popup__logo img {
    width: 3rem;
    height: 3rem;
  }

  .landing-popup__title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .landing-popup__text {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .landing-popup__warning-title {
    font-size: 0.9375rem;
  }

  .landing-popup__warning-text {
    font-size: 0.875rem;
  }

  .landing-popup__actions {
    margin: 0 -1.25rem;
  }

  .landing-popup__btn {
    font-size: 0.875rem;
    padding: 0.875rem 0.5rem;
  }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2rem;
  }

  .home-hero__visual {
    order: -1;
  }

  .home-hero__image {
    aspect-ratio: 16/10;
  }

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

  .services-grid,
  .contact-layout,
  .scope-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav a:not(.is-active):nth-child(1) {
    display: none;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

}
