/*
Theme Name: Astra Child
Theme URI: 
Description: Astra Child Theme
Author: 
Author URI: 
Template: astra
Version: 1.0.0
*/

/* ========================
   Astra 테마 오버라이드
======================== */

.ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.site-primary-header-wrap.ast-container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.ast-small-footer {
  display: none !important;
}

.entry-content[data-ast-blocks-layout] > * {
  max-width: none !important;
}

/* ========================
   기본 리셋
======================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================
   히어로 섹션
======================== */

.hero {
  position: relative;
  width: 100%;
  height: 90vh;           /* 구형 브라우저 대비 */
  height: 90svh;          /* 모바일 주소창 고려한 실제 뷰포트 높이 */
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.50) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.divider {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 auto 2rem;
  animation: expandLine 1s ease-out 0.8s both;
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to   { width: 48px; opacity: 1; }
}

.main-copy {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #ffffff;
  line-height: 1.55;
  letter-spacing: -0.01em;
  word-break: keep-all;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.highlight {
  color: #C4736A;
}

.sub-copy {
  font-family: 'Pretendard', sans-serif;
  font-weight: 200;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1);   opacity: 0.4; }
  50%       { transform: scaleY(0.6); opacity: 1; }
}

.scroll-text {
  font-family: 'Pretendard', sans-serif;
  font-weight: 300;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ========================
   특장점 섹션
======================== */

.features {
  width: 100%;
  padding: 6rem 20%;
  background-color: #faf8f7;
}

.features-grid {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2rem 1.25rem;
  text-align: center;
  border: 1px solid rgba(196, 115, 106, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(196, 115, 106, 0.15);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.75rem;
  background-color: rgba(196, 115, 106, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #2d2d2d;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #888;
  line-height: 1.8;
  letter-spacing: -0.01em;
}

/* ========================
   진료 장면 섹션
======================== */

.care {
  width: 100%;
  background-color: #ffffff;
}

.care-item {
  display: flex;
  align-items: stretch;
  min-height: 620px;
}

.care-item--reverse {
  flex-direction: row-reverse;
}

.care-image {
  flex: 1;
  overflow: hidden;
}

.care-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.care-item:hover .care-image img {
  transform: scale(1.04);
}

.care-content {
  flex: 1;
  padding: 7rem;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.care-item--reverse .care-content {
  background-color: #faf8f7;
}

.care-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #C4736A;
  background: rgba(196, 115, 106, 0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.care-title {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #2d2d2d;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.care-desc {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: #666;
  line-height: 1.9;
  letter-spacing: -0.01em;
  max-width: 600px;
}

/* ========================
   원장님 소개 섹션
======================== */

.doctor {
  width: 100%;
  background-color: #f5f0ee;
  margin-top: 6rem;
}

.doctor-heading {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: #2d2d2d;
  letter-spacing: -0.03em;
  text-align: center;
  padding: 7rem 0 3rem;
}

.doctor-sticky-wrap,
.doctor .doctor-sticky-wrap {
  max-width: 1100px !important;
  margin: 0 auto !important;
  display: flex;
  align-items: flex-start;
  gap: 5rem;
  padding: 0 4rem 6rem;
}

.doctor-photo-wrap {
  flex: 0 0 504px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.doctor-photo {
  width: 504px;
  height: 648px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #e0d8d5;
  margin-bottom: 1.25rem;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.doctor-name {
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #888;
  letter-spacing: 0.05em;
}

.doctor-content {
  flex: 1;
  padding: 4rem 0;
}

.doctor-block {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(196, 115, 106, 0.15);
}

.doctor-block:last-child {
  border-bottom: none;
}

.doctor-block-title {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #C4736A;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.doctor-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.doctor-list li {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
  letter-spacing: -0.01em;
  padding-left: 1rem;
  position: relative;
}

.doctor-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #C4736A;
}

.doctor-list li span {
  display: block;
  font-size: 1rem;
  color: #999;
  margin-top: 0.2rem;
}

/* ========================
   병원 내부 소개 섹션
======================== */

.gallery {
  width: 100%;
  padding: 7rem 0;
  background-color: #ffffff;
}

.gallery-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.gallery-heading {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: #2d2d2d;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.gallery-subheading {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #999;
  letter-spacing: -0.01em;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
}

.gallery-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(196, 115, 106, 0.3);
  background: #ffffff;
  color: #C4736A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-btn:hover {
  background: #C4736A;
  border-color: #C4736A;
}

.gallery-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.5rem;
  cursor: grab;
  flex: 1;
}

.gallery-track:active {
  cursor: grabbing;
}

.gallery-track::-webkit-scrollbar {
  height: 4px;
}

.gallery-track::-webkit-scrollbar-track {
  background: #f0ece9;
  border-radius: 2px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: #C4736A;
  border-radius: 2px;
}

.gallery-slide {
  flex: 0 0 720px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.gallery-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-slide:hover img {
  transform: scale(1.03);
}

.gallery-slide-label {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

/* ========================
   오시는 길 섹션
======================== */

.info {
  width: 100%;
  padding: 7rem 2rem;
  background-color: #faf8f7;
}

.info-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.info-heading {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: #2d2d2d;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.info-subheading {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #999;
  letter-spacing: -0.01em;
}

.info-address-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1.25rem;
  background: rgba(196, 115, 106, 0.08);
  border-radius: 50px;
}

.info-address-top svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.info-address-top span {
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #C4736A;
  letter-spacing: -0.01em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.15); 
  border-radius: 50px;
  cursor: pointer;
  outline: none;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: rgba(0, 0, 0, 0.1); 
}

.copy-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: #888;
}

.copy-btn-text {
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: #888 !important;
  letter-spacing: 0.02em;
}

.info-grid {
  max-width: 1100px !important;
  margin: 0 auto !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.info-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(196, 115, 106, 0.15);
}

.info-card-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(196, 115, 106, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 1.5rem;
}

.info-card-icon svg {
  width: 100%;
  height: 100%;
}

.info-card-title {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #2d2d2d;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.info-time-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-time-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.info-time-list li:last-child {
  border-bottom: none;
}

.info-time-day {
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #666;
}

.info-time-value {
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2d2d2d;
}

.info-time-closed .info-time-value {
  color: #C4736A;
}

.info-tel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(196, 115, 106, 0.06);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.info-tel-label {
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #888;
}

.info-tel-value {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #C4736A;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.info-tel-value:hover {
  text-decoration: underline;
}

.info-parking-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.info-parking-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-parking-type {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #C4736A;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.info-parking-desc {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}

.info-parking-notice {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.5rem;
}

/* ========================
   푸터
======================== */

.footer {
  width: 100%;
  background-color: #1a1a1a;
  padding: 4rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-logo {
  width: 200px;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.footer-copyright {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
  width: 100%;
  text-align: center;
}

/* ========================
   반응형
======================== */

@media (max-width: 768px) {
  .care-item,
  .care-item--reverse {
    flex-direction: column;
  }

  .care-image {
    width: 100%;
    height: 280px;
  }

  .care-content {
    padding: 2.5rem 1.5rem;
  }

  .doctor-sticky-wrap,
  .doctor .doctor-sticky-wrap {
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 2rem 4rem;
  }

  .doctor-photo-wrap {
    position: relative;
    height: auto;
    flex: none;
    width: 100%;
    align-items: center;
  }

  .doctor-photo {
    width: 100%;
    height: 400px;
  }

  .gallery-controls {
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .gallery-btn {
  display: none;
  }


  .gallery-slide {
    flex: 0 0 88vw;
  }

  .gallery-slide img {
    height: 280px;
  }
}

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

@media (max-width: 560px) {
  .features {
    padding: 6rem 5%;
  }

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