/* ======================================================
   울산다음세대교회 (Ulsan Next Generation Church)
   Theme: Royal Blue + Warm Yellow
   ====================================================== */

:root {
  --blue-900: #1E3A8A;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-50:  #EFF6FF;

  --yellow-500: #FACC15;
  --yellow-400: #FDE047;
  --yellow-100: #FEF9C3;

  --ink-900: #0F172A;
  --ink-700: #334155;
  --ink-500: #64748B;
  --ink-300: #CBD5E1;
  --bg-soft: #F8FAFC;
  --white:   #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 48px rgba(15,23,42,.12);

  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-900); }

/* ============ Layout ============ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
section.compact { padding: 56px 0; }

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-700);
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--blue-50);
  border-radius: 99px;
  margin-bottom: 14px;
}

.lead { font-size: 18px; color: var(--ink-700); max-width: 720px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #eef2f7;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; }

.menu {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
}
.menu a {
  display: inline-block; padding: 8px 4px;
  color: var(--ink-700); font-weight: 600; font-size: 15px;
  border-bottom: 2px solid transparent;
}
.menu a:hover, .menu a.active {
  color: var(--blue-700); border-bottom-color: var(--yellow-500);
}

.menu-toggle {
  display: none; background: none; border: 0; width: 42px; height: 42px;
  cursor: pointer; color: var(--ink-900);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  border: 0;
}
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-900); color:#fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent  { background: var(--yellow-500); color: var(--ink-900); }
.btn-accent:hover  { background: var(--yellow-400); transform: translateY(-1px); }
.btn-ghost   { background: transparent; color: var(--blue-700); border: 2px solid var(--blue-700); }
.btn-ghost:hover { background: var(--blue-700); color: #fff; }

/* ============ Hero ============ */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, #DBEAFE 0%, transparent 60%),
    radial-gradient(800px 400px at 0% 100%, #FEF3C7 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
  padding: 100px 0 120px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero h1 span { color: var(--blue-700); }
.hero h1 em { font-style: normal; background: linear-gradient(180deg, transparent 60%, var(--yellow-400) 60%); padding: 0 4px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.hero-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #eef2f7;
}
.hero-card h3 { color: var(--blue-700); margin-bottom: 16px; }
.service-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px dashed #e2e8f0;
}
.service-row:last-child { border-bottom: 0; }
.service-row .name { font-weight: 700; }
.service-row .time { color: var(--blue-700); font-weight: 700; font-variant-numeric: tabular-nums; }
.service-row .note { display:block; font-size: 13px; color: var(--ink-500); margin-top: 4px; }

/* ============ Generic card grid ============ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid #eef2f7; border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  display: inline-flex; width: 56px; height: 56px; border-radius: 14px;
  background: var(--blue-50); color: var(--blue-700);
  align-items: center; justify-content: center; margin-bottom: 16px;
  font-size: 26px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-700); margin: 0 0 14px; }
.card .more { font-weight: 700; color: var(--blue-700); }

/* ============ Sermon cards ============ */
.sermon {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid #eef2f7; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.sermon:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sermon .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 900; letter-spacing: -.02em;
  position: relative;
}
.sermon .thumb::after {
  content: ""; position: absolute; right: -30px; bottom: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--yellow-400); opacity: .25;
}
.sermon .body { padding: 22px; }
.sermon .meta { font-size: 13px; color: var(--ink-500); margin-bottom: 8px; }
.sermon h3 { font-size: 19px; margin-bottom: 10px; }
.sermon p { color: var(--ink-700); font-size: 15px; margin: 0 0 16px; }
.sermon .verse { display: inline-block; background: var(--blue-50); color: var(--blue-700); padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; }

/* ============ Section heading ============ */
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .lead { margin-left: auto; margin-right: auto; }

/* ============ Vision banner ============ */
.vision {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff; border-radius: var(--radius-lg); padding: 64px 48px;
  position: relative; overflow: hidden;
}
.vision::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: var(--yellow-400); opacity: .22;
}
.vision::after {
  content: ""; position: absolute; left: -60px; bottom: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: #fff; opacity: .06;
}
.vision .eyebrow { background: rgba(255,255,255,.18); color: var(--yellow-400); }
.vision h2 { color: #fff; }
.vision p { color: #DBEAFE; font-size: 18px; max-width: 780px; margin: 0; position: relative; z-index: 1; }
.vision blockquote {
  margin: 0 0 20px; font-size: clamp(22px, 3vw, 30px); font-weight: 800;
  color: #fff; position: relative; z-index: 1; line-height: 1.4;
}
.vision blockquote span { background: linear-gradient(180deg, transparent 60%, rgba(250,204,21,.5) 60%); padding: 0 6px; }

/* ============ Contact / Map ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid #eef2f7;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { width: 80px; font-weight: 700; color: var(--blue-700); flex-shrink: 0; }
.contact-list .value { color: var(--ink-900); }
.map-box {
  background: var(--blue-50); border-radius: var(--radius-md); min-height: 320px;
  display: flex; align-items: center; justify-content: center; color: var(--blue-700);
  font-weight: 700; text-align: center; padding: 24px;
  background-image:
    linear-gradient(135deg, var(--blue-50) 25%, transparent 25%),
    linear-gradient(225deg, var(--blue-50) 25%, transparent 25%),
    linear-gradient(45deg,  var(--blue-50) 25%, transparent 25%),
    linear-gradient(315deg, var(--blue-50) 25%, #DBEAFE 25%);
  background-position: 10px 0, 10px 0, 0 0, 0 0;
  background-size: 20px 20px;
}

/* ============ Page hero (inner pages) ============ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff; padding: 80px 0 72px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(250,204,21,.2) 0%, transparent 60%),
    radial-gradient(400px 200px at 5% 90%, rgba(250,204,21,.15) 0%, transparent 60%);
}
.page-hero h1 { color: #fff; position: relative; }
.page-hero .lead { color: #DBEAFE; margin: 0 auto; position: relative; }

/* ============ Content block ============ */
.content-block { max-width: 880px; margin: 0 auto; }
.content-block p { font-size: 17px; color: var(--ink-700); margin: 0 0 20px; }
.content-block h2 { margin-top: 48px; color: var(--blue-900); }
.content-block h3 { margin-top: 32px; color: var(--blue-700); }
.content-block blockquote {
  margin: 28px 0; padding: 20px 24px; background: var(--blue-50);
  border-left: 4px solid var(--blue-700); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-900); font-weight: 600; font-size: 17px;
}
.content-block ul { padding-left: 22px; }
.content-block ul li { margin-bottom: 10px; color: var(--ink-700); }

/* ============ Pastor card ============ */
.pastor {
  display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center;
  background: #fff; border: 1px solid #eef2f7; border-radius: var(--radius-md);
  padding: 28px; margin: 24px 0;
}
.pastor .avatar {
  width: 160px; height: 160px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 48px; font-weight: 900;
}
.pastor h3 { margin-bottom: 8px; }
.pastor .title { color: var(--blue-700); font-weight: 700; margin-bottom: 12px; }

/* ============ Feature/program cards ============ */
.program {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center;
  background: #fff; border: 1px solid #eef2f7; border-radius: var(--radius-md);
  padding: 28px; margin-bottom: 20px;
}
.program .visual {
  aspect-ratio: 1/1; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: 900; position: relative; overflow: hidden;
}
.program .visual::after {
  content: ""; position: absolute; right: -20px; bottom: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--yellow-400); opacity: .3;
}
.program h3 { color: var(--blue-900); margin-bottom: 8px; }
.program .meta { font-size: 14px; color: var(--blue-700); font-weight: 700; margin-bottom: 12px; }

/* ============ Posts list ============ */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid #eef2f7;
}
.post-list li:last-child { border-bottom: 0; }
.post-list .post-title { font-weight: 700; color: var(--ink-900); }
.post-list .post-title:hover { color: var(--blue-700); }
.post-list .post-cat {
  display: inline-block; padding: 4px 10px; font-size: 12px; font-weight: 700;
  background: var(--blue-50); color: var(--blue-700); border-radius: 6px; margin-right: 10px;
}
.post-list .post-date { font-size: 13px; color: var(--ink-500); white-space: nowrap; }

/* ============ Footer ============ */
.site-footer {
  background: #0B1220; color: #CBD5E1; padding: 56px 0 24px; margin-top: 80px;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer p, .site-footer li { color: #94A3B8; font-size: 14px; line-height: 1.8; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: var(--yellow-400); }
.foot-brand img { height: 52px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.foot-bottom {
  border-top: 1px solid #1E293B; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: #64748B;
}
.koshin-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: rgba(255,255,255,.06);
  border-radius: 999px; font-size: 12px;
}

/* ============ Responsive ============ */
@media (max-width: 880px) {
  section { padding: 60px 0; }
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .pastor { grid-template-columns: 1fr; text-align: center; }
  .pastor .avatar { margin: 0 auto; }
  .program { grid-template-columns: 1fr; }
  .program .visual { max-width: 240px; margin: 0 auto; }
  .vision { padding: 44px 28px; }

  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 12px 16px; border-bottom: 1px solid #eef2f7;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 8px; border-bottom: 1px solid #f1f5f9; }
  .menu li:last-child a { border-bottom: 0; }
  .brand img { height: 40px; }
}
