/* Hero */
.hero{
  min-height:780px;
  display:flex; align-items:center; color:#fff; position:relative; overflow:hidden;
}
.hero:before{
  content:""; position:absolute; inset:-3%; z-index:0;
  background: url('/img/hero.jpg') center / cover no-repeat;
  transform:scale(1.02); animation:hero-image-drift 11s ease-in-out infinite alternate; will-change:transform;
}
.hero:after{
  content:""; position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(to bottom,transparent calc(100% - 140px),var(--bg) 100%),
    linear-gradient(90deg,rgba(10,30,24,.82) 0%,rgba(14,42,33,.5) 46%,rgba(14,42,33,.08) 100%);
}
@keyframes hero-image-drift{
  from{transform:scale(1.02) translate3d(-.6%,0,0)}
  to{transform:scale(1.08) translate3d(.6%,-.5%,0)}
}
.hero-content{position:relative; z-index:2; padding:120px 0 90px; max-width:640px}
.hero .eyebrow{
  display:flex; align-items:center; gap:10px; font-weight:800;
  letter-spacing:.08em; font-size:14px; color:#fff;
}
.hero .eyebrow:before{content:""; width:32px; height:2px; background:var(--primary-soft)}
.hero h1{font-size:clamp(42px,6vw,76px); line-height:1.12; margin:24px 0; letter-spacing:-.045em; color:#fff}
.hero p{font-size:17px; max-width:520px; color:rgba(255,255,255,.85); margin:0}
.hero-buttons{display:flex; gap:12px; margin-top:32px; flex-wrap:wrap}
.hero-buttons .btn.secondary{background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.5)}

/* Quick links */
.quick-wrap{position:relative; z-index:5; margin-top:-56px}
.quick{
  display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:0;
  background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow); overflow:hidden;
}
.quick-item{
  padding:28px 12px; text-align:center;
  font-weight:800; transition:.2s; display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.quick-item:hover{background:var(--primary-soft); color:var(--primary); transform:translateY(-2px)}
.quick-icon{
  display:block; width:34px; height:34px; margin-bottom:9px; background-color:var(--primary);
  mask:var(--quick-icon) center/contain no-repeat; -webkit-mask:var(--quick-icon) center/contain no-repeat;
  transition:background-color .2s, transform .2s;
}
.quick-item:hover .quick-icon{background-color:var(--primary-dark); transform:translateY(-2px)}
.icon-about{--quick-icon:url('/icons/quick-about.svg')}
.icon-benefit{--quick-icon:url('/icons/quick-benefit.svg')}
.icon-store{--quick-icon:url('/icons/quick-store.svg')}
.icon-join{--quick-icon:url('/icons/quick-join.svg')}
.icon-notice{--quick-icon:url('/icons/quick-notice.svg')}
.icon-location{--quick-icon:url('/icons/quick-location.svg')}

/* Sections */
.home-section{padding:80px 0}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:32px}
.section-head h2{margin:8px 0 0; font-size:clamp(26px,3vw,36px); letter-spacing:-.03em}
.section-desc{max-width:420px; color:var(--muted); margin:0}

/* News grid */
.news-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:24px}
.news-feature{
  border-radius:var(--radius-lg); padding:36px; background:var(--primary-soft);
  border:1px solid #d8ebe1; display:flex; flex-direction:column; justify-content:space-between; min-height:260px;
  color:var(--text); text-decoration:none;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.news-feature:hover{transform:translateY(-3px); border-color:var(--primary); box-shadow:0 14px 30px rgba(29,74,58,.12)}
.news-feature-meta{display:flex; align-items:center; gap:9px; flex-wrap:wrap; color:var(--primary); font-size:13px; font-weight:750}
.news-feature-meta time{color:var(--muted); font-weight:600}
.news-feature-badge{padding:5px 9px; border-radius:999px; background:var(--primary); color:#fff; font-size:12px; font-weight:800}
.news-feature h3{font-size:26px; line-height:1.35; margin:12px 0}
.news-feature p{color:var(--muted); margin:0; line-height:1.65; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.news-feature-more{display:flex; align-items:center; justify-content:space-between; margin-top:24px; color:var(--primary); font-size:14px; font-weight:800}
.news-feature-more span{transition:transform .2s ease}
.news-feature:hover .news-feature-more span{transform:translateX(4px)}
.text-link{color:var(--primary); font-weight:800}
.news-list{border-top:2px solid var(--primary)}
.news-item{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 4px; border-bottom:1px solid var(--line)}
.news-item strong{font-size:16px; font-weight:700}
.news-item time{font-size:13px; color:var(--muted); white-space:nowrap}
.notice-empty{color:var(--muted); padding:16px 4px}

/* Member panel */
.member-panel{
  background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:#fff;
  border-radius:var(--radius-xl); padding:52px;
  display:grid; grid-template-columns:1fr auto; gap:28px; align-items:center;
  position:relative; overflow:hidden;
}
.member-panel:after{
  content:"COOP"; position:absolute; right:-20px; bottom:-85px; font-size:170px;
  font-weight:900; color:rgba(255,255,255,.06); pointer-events:none; line-height:1;
}
.member-panel h2{margin:0 0 14px; font-size:clamp(24px,3vw,32px); position:relative; z-index:2}
.member-panel p{margin:0; color:rgba(255,255,255,.78); max-width:600px; position:relative; z-index:2}
.member-actions{display:flex; gap:10px; flex-wrap:wrap; position:relative; z-index:2}
.member-actions .btn.primary{background:#fff; color:var(--primary-dark); border-color:#fff}
.member-actions .btn.secondary{background:transparent; color:#fff; border-color:rgba(255,255,255,.4)}

/* Today's menu */
.menu-board{
  background:var(--primary-soft); border:1px solid #d8ebe1; border-radius:var(--radius-xl);
  padding:40px; display:grid; grid-template-columns:.78fr 1.22fr; gap:28px; align-items:stretch;
}
.menu-intro{
  background:var(--primary); color:#fff; border-radius:var(--radius-lg); padding:32px;
  display:flex; flex-direction:column; justify-content:space-between; min-height:280px;
}
.menu-intro small{font-weight:800; letter-spacing:.12em; color:rgba(255,255,255,.75)}
.menu-intro h3{font-size:28px; line-height:1.3; margin:10px 0}
.menu-intro p{color:rgba(255,255,255,.78); margin:0}
.menu-date{font-size:14px; font-weight:800; margin-top:22px}
.menu-items{display:grid; grid-template-columns:repeat(2,1fr); gap:14px}
.menu-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-md);
  padding:20px; display:flex; flex-direction:column; justify-content:space-between; min-height:128px;
}
.menu-card .place{font-size:13px; color:var(--primary); font-weight:800}
.menu-card strong{font-size:18px; line-height:1.35; margin:8px 0 4px}
.menu-card span{font-size:13px; color:var(--muted)}
.menu-more{
  display:inline-flex; align-items:center; justify-content:center; margin-top:16px;
  padding:12px 18px; border-radius:999px; background:var(--primary); color:#fff; font-weight:800;
}

/* Service cards */
.service-section{background:var(--primary-soft)}
.service-section .section-head{align-items:flex-start; flex-direction:column; gap:12px}
.service-section .section-desc{max-width:none}
.service-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px}
.service-card{
  min-height:340px; border-radius:var(--radius-lg); overflow:hidden; position:relative; color:#fff;
  box-shadow:0 12px 30px rgba(20,60,45,.12); display:block;
  background-color:#b8d2c4; background-position:center; background-size:cover; background-repeat:no-repeat;
}
.service-card:after{content:""; position:absolute; inset:0; background:linear-gradient(transparent 35%,rgba(20,60,45,.9))}
.service-content{position:absolute; z-index:2; left:24px; right:24px; bottom:22px}
.service-content small{opacity:.75; letter-spacing:.1em; font-weight:700}
.service-content h3{font-size:26px; margin:4px 0}
.service-content p{margin:0; color:rgba(255,255,255,.78); font-size:14px}

@media (max-width:1000px){
  .hero{min-height:690px}
  .hero:before{background-position:40% center}
  .quick{grid-template-columns:repeat(3,1fr)}
  .quick-item:nth-child(-n+3){border-bottom:1px solid var(--line)}
  .news-grid{grid-template-columns:1fr}
  .member-panel{grid-template-columns:1fr; text-align:center; padding:36px 26px}
  .member-actions{justify-content:center}
  .menu-board{grid-template-columns:1fr}
  .service-grid{grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px}
  .service-card{min-height:240px}
}

@media (max-width:640px){
  /* 원본이 1920×500이고 주 피사체가 가로 약 40% 지점이라, cover 크롭도 그 지점을 중심으로 잡는다. */
  .hero:before{background-position:40% center; animation-duration:16s}
  .hero-content{padding:90px 0 60px}
  .home-section{padding:56px 0}
  .quick-item{padding:16px 4px; font-size:13px}
  .menu-board{padding:24px}
  .menu-items{grid-template-columns:1fr}
  .service-grid{gap:8px}
  .service-card{min-height:150px; border-radius:12px}
  .service-content{left:10px; right:8px; bottom:12px}
  .service-content small{font-size:9px; letter-spacing:.06em}
  .service-content h3{font-size:17px; margin:3px 0 0}
  .service-content p{display:none}
}

@media (prefers-reduced-motion:reduce){
  .hero:before{animation:none; transform:scale(1.02)}
}
