/*
Theme Name: Astra Willings Child
Theme URI: https://yoursite.com
Description: 윌링스 태양광 에너지 솔루션 - Astra Child Theme
Author: Willings
Template: astra
Version: 1.0.1
Text Domain: astra-willings-child
*/

/* ============================================
   페이지 타이틀 숨김 (홈·전체 페이지 상단)
   ============================================ */
.ast-page-title-wrap,
.entry-title,
.page-title,
.ast-archive-title,
.page .entry-header,
.page .entry-title,
h1.entry-title,
.elementor-page .entry-header {
  display: none !important;
}

/* 홈 페이지 상단 여백 제거 */
.home .site-content,
.page .site-content {
  padding-top: 0 !important;
}

/* Elementor 섹션 기본 패딩 초기화 */
.elementor-section.elementor-top-section:first-child {
  margin-top: 0 !important;
}

/* 전체 콘텐츠 중앙 정렬 보정 */
.elementor-widget-container {
  text-align: left;
}

/* ============================================
   브랜드 컬러 변수
   ============================================ */
:root {
  --willings-blue: #185FA5;
  --willings-blue-dark: #0C447C;
  --willings-blue-light: #E6F1FB;
  --willings-green: #3B6D11;
  --willings-green-dark: #27500A;
  --willings-green-light: #EAF3DE;
  --willings-teal: #0F6E56;
  --willings-text: #1a1a2e;
  --willings-gray: #f8f9fa;
}

/* ============================================
   전체 폰트 & 기본 스타일
   ============================================ */
body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  color: var(--willings-text);
}

/* ============================================
   헤더 / 네비게이션
   ============================================ */
.site-header,
#masthead {
  background-color: var(--willings-blue) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .site-title a,
.site-header .site-title {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.3px;
}

/* 네비 메뉴 링크 */
.main-header-menu .menu-item > a,
.main-header-bar .main-header-menu .menu-item > a {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 8px 14px !important;
  transition: color 0.2s, background 0.2s;
}

.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
  color: #ffffff !important;
  background: rgba(255,255,255,0.15) !important;
  border-radius: 6px;
}

/* 로고 텍스트 옆 아이콘 느낌 */
.site-header .ast-site-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   히어로 섹션 (Home 페이지)
   ============================================ */
.willings-hero {
  background: linear-gradient(135deg, var(--willings-blue-dark) 0%, var(--willings-blue) 55%, var(--willings-teal) 100%);
  padding: 80px 20px 70px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.willings-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.willings-hero .hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.willings-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
  color: #ffffff;
}

.willings-hero .hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

.willings-btn-primary {
  display: inline-block;
  background: var(--willings-green);
  color: #ffffff !important;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  margin: 4px;
}

.willings-btn-primary:hover {
  background: var(--willings-green-dark);
  transform: translateY(-1px);
}

.willings-btn-outline {
  display: inline-block;
  background: transparent;
  color: #ffffff !important;
  padding: 12px 28px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
  margin: 4px;
}

.willings-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
}

/* ============================================
   통계 바
   ============================================ */
.willings-stats {
  background: var(--willings-blue-light);
  padding: 28px 20px;
}

.willings-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  gap: 12px;
}

.willings-stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--willings-blue);
  line-height: 1.2;
}

.willings-stat-label {
  font-size: 0.78rem;
  color: #555;
  margin-top: 4px;
}

/* ============================================
   섹션 공통
   ============================================ */
.willings-section {
  padding: 56px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.willings-section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--willings-text);
  margin-bottom: 6px;
  text-align: center;
}

.willings-section-sub {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-bottom: 32px;
}

/* ============================================
   특징 카드 (서비스)
   ============================================ */
.willings-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.willings-feat-card {
  background: #ffffff;
  border: 0.5px solid #e0e6ef;
  border-radius: 12px;
  padding: 24px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.willings-feat-card:hover {
  box-shadow: 0 6px 24px rgba(24,95,165,0.1);
  transform: translateY(-2px);
}

.willings-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.willings-feat-icon.blue {
  background: var(--willings-blue-light);
  color: var(--willings-blue);
}

.willings-feat-icon.green {
  background: var(--willings-green-light);
  color: var(--willings-green);
}

.willings-feat-icon.teal {
  background: #E1F5EE;
  color: var(--willings-teal);
}

.willings-feat-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--willings-text);
}

.willings-feat-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.65;
}

/* ============================================
   제품 카드
   ============================================ */
.willings-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.willings-prod-card {
  background: #ffffff;
  border: 0.5px solid #e0e6ef;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.willings-prod-card:hover {
  box-shadow: 0 8px 28px rgba(24,95,165,0.12);
}

.willings-prod-img {
  height: 160px;
  background: var(--willings-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--willings-blue);
}

.willings-prod-img.green {
  background: var(--willings-green-light);
  color: var(--willings-green);
}

.willings-prod-info {
  padding: 18px;
}

.willings-prod-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.willings-prod-info p {
  font-size: 0.83rem;
  color: #666;
  margin-bottom: 10px;
}

.willings-badge {
  display: inline-block;
  background: var(--willings-blue-light);
  color: var(--willings-blue-dark);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
}

.willings-badge.green {
  background: var(--willings-green-light);
  color: var(--willings-green-dark);
}

/* ============================================
   AS 섹션
   ============================================ */
.willings-as-bg {
  background: var(--willings-green-light);
  padding: 56px 20px;
}

.willings-as-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.willings-as-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 0.5px solid #c8e6c9;
}

.willings-as-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #E1F5EE;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--willings-teal);
}

.willings-as-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--willings-text);
}

.willings-as-card p {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
}

/* ============================================
   About 페이지
   ============================================ */
.willings-about-hero {
  background: linear-gradient(135deg, var(--willings-blue) 0%, var(--willings-teal) 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.willings-about-hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.willings-about-hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

.willings-timeline {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.willings-timeline li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 0.5px solid #e8ecf0;
}

.willings-timeline-year {
  min-width: 70px;
  font-weight: 600;
  color: var(--willings-blue);
  font-size: 0.95rem;
}

.willings-timeline-text {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.65;
}

/* ============================================
   찾아오는길 페이지
   ============================================ */
.willings-map-section {
  padding: 48px 20px;
}

.willings-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .willings-contact-grid { grid-template-columns: 1fr; }
  .willings-hero h1 { font-size: 1.6rem; }
  .willings-stat-num { font-size: 1.4rem; }
}

.willings-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 10px;
}

.willings-contact-item .icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--willings-blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--willings-blue);
}

.willings-contact-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: #333;
}

.willings-contact-item p {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
}

/* ============================================
   푸터
   ============================================ */
.site-footer,
#colophon {
  background: #042C53 !important;
  color: rgba(255,255,255,0.72) !important;
}

.site-footer a,
#colophon a {
  color: rgba(255,255,255,0.72) !important;
}

.site-footer a:hover,
#colophon a:hover {
  color: #ffffff !important;
}

.site-footer .ast-footer-copyright,
#colophon .ast-footer-copyright {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.8rem;
}

/* ============================================
   히어로 슬라이더 (Swiper)
   ============================================ */
.willings-hero-swiper {
  width: 100%;
  height: 560px;
  position: relative;
}

@media (max-width: 768px) {
  .willings-hero-swiper { height: 400px; }
}

@media (max-width: 480px) {
  .willings-hero-swiper { height: 320px; }
}

.willings-slide {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.willings-slide-overlay {
  display: none !important;
}

.willings-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 0 24px;
  max-width: 760px;
}

.slide-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.slide-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .slide-title { font-size: 1.6rem; }
}

.slide-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* 슬라이더 화살표 */
.willings-hero-swiper .swiper-button-prev,
.willings-hero-swiper .swiper-button-next {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.willings-hero-swiper .swiper-button-prev:hover,
.willings-hero-swiper .swiper-button-next:hover {
  background: rgba(255,255,255,0.3);
}

.willings-hero-swiper .swiper-button-prev::after,
.willings-hero-swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

/* 슬라이더 페이지네이션 */
.willings-hero-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.5);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: all 0.2s;
}

.willings-hero-swiper .swiper-pagination-bullet-active {
  background: #ffffff;
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   제품 카드 슬라이더
   ============================================ */
.willings-product-swiper {
  width: 100%;
  padding: 10px 0 48px;
}

.willings-product-swiper .swiper-slide {
  height: auto;
}

.wprod-card {
  background: #ffffff;
  border: 0.5px solid #e0e6ef;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.wprod-card:hover {
  box-shadow: 0 10px 32px rgba(24,95,165,0.13);
  transform: translateY(-3px);
}

.wprod-img {
  height: 200px;
  overflow: hidden;
  background: #f0f5fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wprod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.wprod-card:hover .wprod-img img {
  transform: scale(1.04);
}

.wprod-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wprod-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.wprod-badge.blue {
  background: var(--willings-blue-light);
  color: var(--willings-blue-dark);
}

.wprod-badge.green {
  background: var(--willings-green-light);
  color: var(--willings-green-dark);
}

.wprod-badge.teal {
  background: #E1F5EE;
  color: #085041;
}

.wprod-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.wprod-body p {
  font-size: 0.83rem;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}

.wprod-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--willings-blue) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.wprod-link:hover {
  color: var(--willings-blue-dark) !important;
}

/* 제품 슬라이더 페이지네이션 */
.willings-prod-pagination .swiper-pagination-bullet {
  background: #b0bec5;
  opacity: 1;
}

.willings-prod-pagination .swiper-pagination-bullet-active {
  background: var(--willings-blue);
}

/* 슬라이더 섹션 래퍼 */
.willings-slider-section {
  padding: 56px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.willings-slider-section .section-header {
  text-align: center;
  margin-bottom: 32px;
}

.willings-slider-section .section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.willings-slider-section .section-header p {
  font-size: 0.9rem;
  color: #666;
}
