/* ============================================
   PETBALANCE — Main Sections
   Hero / Brand Story / Product / ESG / News / Contact / Footer
   ============================================ */

/* ---- 1. Hero (풀스크린) ---- */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0F2340 0%, #1B3A5C 60%, #2A5280 100%);
}

/* 배경 이미지 사용 시: class="section-hero has-bg" + inline style background-image */
.section-hero.has-bg {
  background-size: cover;
  background-position: center;
}

.section-hero.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.section-hero.has-bg .hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.hero__bg-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.08;
}

.hero__bg-circle--1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -150px;
}

.hero__bg-circle--2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -60px;
  background: var(--color-accent);
}

.hero__content {
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--size-md);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-size: var(--size-hero);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.hero__sub {
  font-size: var(--size-md);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-md);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: var(--size-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---- 2. Brand Story (수치 4개 + 문구) ---- */
.section-stats {
  background: #1B3A5C;
  color: white;
  padding: 5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.stat-number {
  font-family: var(--font-en);
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: var(--size-sm);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

.stats-phrase {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: var(--size-sm);
  letter-spacing: 0.1em;
}

/* ---- 3. Pet Product (3열 카드) ---- */
.section-product {
  padding: var(--space-xl) 0;
  background: var(--color-white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.product-card__img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-section);
  margin-bottom: var(--space-sm);
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-card__img img {
  transform: scale(1.06);
}

.product-card__title {
  font-size: var(--size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.product-card__desc {
  font-size: var(--size-sm);
  color: var(--color-text-sub);
}

/* ---- 4. ESG & NGO (좌우 2단 + 슬라이드) ---- */
.section-esg {
  background: #F5F0E8;
  padding: 6rem 0;
}

.esg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.esg-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.esg-stat-number {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  color: #2E7D4F;
}

.esg-stat-label {
  font-size: var(--size-xs);
  color: var(--color-text-sub);
}

.esg-swiper {
  padding-bottom: 2.5rem;
}

.shelter-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.shelter-card__img {
  height: 220px;
  background: var(--color-border);
}

.shelter-card__name {
  padding: 1rem 1.25rem 0.25rem;
  font-weight: 700;
  font-size: var(--size-md);
  color: var(--color-text);
}

.shelter-card__region {
  padding: 0 1.25rem 1.25rem;
  font-size: var(--size-sm);
  color: var(--color-text-sub);
}

.esg-swiper .swiper-pagination-bullet-active {
  background: #2E7D4F;
}

/* ---- 5. News & Community (좌우 6:4) ---- */
.section-news {
  background: #F7F8FA;
  padding: 6rem 0;
}

.news-layout {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 4rem;
}

.news-col__title {
  font-family: var(--font-en);
  font-size: var(--size-lg);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-base);
  cursor: pointer;
}

.news-item:hover .news-title {
  color: var(--color-primary);
}

.news-date {
  font-family: var(--font-en);
  font-size: var(--size-xs);
  color: var(--color-text-light);
  white-space: nowrap;
}

.news-title {
  font-size: var(--size-sm);
  color: var(--color-text);
  transition: color var(--transition-base);
}

.news-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.news-more:hover {
  color: var(--color-primary-dark);
}

.instagram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.instagram-placeholder {
  aspect-ratio: 1;
  background: var(--color-border);
  border-radius: var(--radius-sm);
}

/* ---- 6. Contact (CTA) ---- */
.section-contact {
  padding: var(--space-xl) 0;
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
}

.section-contact .section-title,
.section-contact .section-desc {
  color: var(--color-white);
}

.section-contact .section-desc {
  color: rgba(255, 255, 255, 0.8);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: var(--space-md);
}

.contact-link {
  padding: 0.9rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--color-white);
  transition: var(--transition-base);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-links .btn-accent {
  background: #C8202E;
  color: white;
  border-color: #C8202E;
}

.contact-links .btn-accent:hover {
  background: #A01820;
  border-color: #A01820;
}

/* ---- Footer (5컬럼 그리드, 다크 배경) ---- */
.footer {
  background: #111;
  color: var(--color-dark-text);
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 3px solid var(--color-accent);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand-name {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer__brand-desc {
  font-size: var(--size-sm);
  line-height: 1.7;
}

.footer__col-title {
  font-size: var(--size-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col-link {
  font-size: var(--size-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-base);
}

.footer__col-link:hover {
  color: var(--color-accent);
}

.footer__company-info p,
.footer__hours p {
  font-size: var(--size-xs);
  color: rgba(255, 255, 255, 0.45);
  line-height: 2.2;
}

.footer__phone {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.25rem;
  font-size: var(--size-xs);
  color: rgba(255, 255, 255, 0.25);
}

/* 법적 고지 강조 */
.footer__legal {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.75rem;
  line-height: 1.8;
}

/* ---- Subpage Template (pages/_template.html) ---- */
.page-header {
  padding: calc(var(--nav-height) + var(--space-lg)) 0 var(--space-lg);
  background: var(--color-bg-section);
  text-align: center;
}

.page-header__breadcrumb {
  font-size: var(--size-xs);
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.page-header__breadcrumb a:hover {
  color: var(--color-primary);
}

.page-header__title {
  font-size: var(--size-2xl);
  font-weight: 700;
  color: var(--color-text);
}

.page-content {
  min-height: 40vh;
  padding: var(--space-xl) 0;
}

/* ============================================
   Responsive
   1024px / 768px
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

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

  .esg-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .news-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .esg-stats {
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }

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