/* ============================================================
   브니엘재가복지센터 — style.css  (v1.0.0)
   원프레임(단일 세로 흐름) 레이아웃 · 어르신 가독성 우선
   ============================================================ */

/* ---------- 디자인 토큰 ---------- */
:root {
  --brand:        #1f6f5c;   /* 딥그린 – 신뢰·돌봄 */
  --brand-dark:   #16513f;
  --brand-soft:   #e8f1ed;   /* 섹션 틴트 */
  --accent:       #df824a;   /* 살구 – 따뜻함 */
  --accent-soft:  #fbeee2;
  --ivory:        #fbf8f2;   /* 배경 */
  --white:        #ffffff;
  --ink:          #26302b;   /* 본문 */
  --ink-soft:     #5c6862;   /* 보조 */
  --line:         #e4e7e2;

  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 6px 24px rgba(31, 111, 92, .08);
  --shadow-lg:    0 16px 48px rgba(31, 111, 92, .14);

  --font-body: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-head: "Gowun Batang", "Pretendard", serif;

  --wrap: 1160px;
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;            /* 어르신 가독성 기준 */
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.35; margin: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* 접근성: 키보드 포커스 */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 상단 유틸 바 ---------- */
.topbar {
  background: var(--brand-dark);
  color: #d8e6e0;
  font-size: 14px;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  height: 40px; gap: 16px;
}
.topbar a { color: #eaf3ef; }
.topbar .t-right { display: flex; gap: 20px; }
.topbar .t-right span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 헤더 / 네비게이션 ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 22px;
  box-shadow: var(--shadow);
}
.brand .b-text b { font-family: var(--font-head); font-size: 21px; color: var(--brand-dark); display: block; letter-spacing: -.02em; }
.brand .b-text small { font-size: 12.5px; color: var(--ink-soft); letter-spacing: .04em; }

.gnb { display: flex; gap: 4px; }
.gnb a {
  padding: 10px 18px; border-radius: 999px; font-weight: 600; color: var(--ink);
  transition: background .18s, color .18s;
}
.gnb a:hover { background: var(--brand-soft); color: var(--brand-dark); }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(223,130,74,.32);
}
.header-cta:hover { background: #cc7038; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, var(--brand-soft) 0%, transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, #fff 100%);
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line);
  color: var(--brand); font-weight: 700; font-size: 14px;
  padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  color: var(--brand-dark); margin: 22px 0 18px; letter-spacing: -.02em;
}
.hero h1 .em { color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 30em; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 17px;
  border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }

/* 히어로 카드(전화/시간) */
.hero-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 34px;
}
.hero-card .hc-top { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.hero-card .hc-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hero-card .hc-top small { color: var(--ink-soft); font-size: 14px; }
.hero-card .hc-top .tel { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--brand-dark); letter-spacing: -.01em; }
.hero-card ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 15.5px; }
.hero-card li b { color: var(--brand-dark); min-width: 66px; }

/* 히어로 대문 일러스트 */
.hero-visual { position: relative; }
.hero-illust {
  width: 100%; height: auto; display: block;
  border-radius: 32px; box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: -14px; bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 20px 14px 16px; box-shadow: var(--shadow-lg);
}
.hero-badge .hb-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.hero-badge .hb-txt small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.hero-badge .hb-txt a { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--brand-dark); letter-spacing: -.01em; }

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section-tint { background: var(--brand-soft); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 5vw, 60px); }
.sec-head .kicker { color: var(--accent); font-weight: 800; letter-spacing: .04em; font-size: 15px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--brand-dark); margin: 12px 0 14px; }
.sec-head p { color: var(--ink-soft); font-size: 17.5px; margin: 0; }

/* ---------- 소개(About) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--brand-dark); margin-bottom: 20px; }
.about-copy p { color: var(--ink-soft); margin: 0 0 18px; }
.about-points { display: grid; gap: 16px; margin-top: 26px; }
.about-points .pt { display: flex; gap: 14px; align-items: flex-start; }
.about-points .pt .dot { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 15px; }
.about-points .pt b { color: var(--ink); }
.about-visual {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #eaf3ef; padding: 48px 40px; min-height: 340px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-visual .quote { font-family: var(--font-head); font-size: 26px; line-height: 1.6; color: #fff; }
.about-visual .sig { margin-top: 22px; font-size: 15px; color: #bcd6cc; }
.about-visual .stats { display: flex; gap: 32px; margin-top: 34px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 26px; }
.about-visual .stats .n { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: #fff; }
.about-visual .stats .l { font-size: 13.5px; color: #bcd6cc; }

/* ---------- 서비스 카드 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card .ico { width: 60px; height: 60px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.svc-card h3 { font-size: 22px; color: var(--brand-dark); margin-bottom: 10px; }
.svc-card p { color: var(--ink-soft); font-size: 16px; margin: 0 0 16px; }
.svc-card ul { margin: 0; padding-left: 18px; color: var(--ink); font-size: 15px; }
.svc-card ul li { margin-bottom: 6px; }

/* ---------- 이용 절차(스텝) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; box-shadow: var(--shadow); position: relative;
}
.step .num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
}
.step h3 { font-size: 19px; color: var(--brand-dark); margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- 공지사항 ---------- */
.notice-wrap { max-width: 860px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.notice-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 28px; border-bottom: 1px solid var(--line); transition: background .15s; }
.notice-item:last-child { border-bottom: 0; }
.notice-item:hover { background: var(--ivory); }
.notice-item .badge { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.badge.pin { background: var(--accent-soft); color: var(--accent); }
.badge.new { background: var(--brand-soft); color: var(--brand); }
.notice-item .n-body { flex: 1; min-width: 0; }
.notice-item .n-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.notice-item .n-desc { color: var(--ink-soft); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.notice-item .n-date { flex: 0 0 auto; color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.notice-empty { padding: 40px; text-align: center; color: var(--ink-soft); }

/* ---------- 상담 신청 폼 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #eaf3ef; border-radius: var(--radius); padding: 44px 40px; box-shadow: var(--shadow-lg); }
.contact-info h3 { color: #fff; font-size: 26px; margin-bottom: 14px; }
.contact-info p { color: #cfe3db; margin: 0 0 28px; }
.contact-info .ci-row { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.16); }
.contact-info .ci-row .ci-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.contact-info .ci-row small { display: block; color: #a9cabe; font-size: 13px; }
.contact-info .ci-row b { color: #fff; font-size: 17px; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 20px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-size: 15.5px; }
.form-row label .req { color: var(--accent); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 14px 16px; font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--ivory); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--brand); background: #fff; outline: none; }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 22px; }
.form-agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.form-submit { width: 100%; padding: 16px; font-size: 18px; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: var(--radius-sm); transition: background .15s; }
.form-submit:hover { background: #cc7038; }
.form-submit:disabled { opacity: .6; cursor: default; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; display: none; }
.form-msg.ok { display: block; background: var(--brand-soft); color: var(--brand-dark); }
.form-msg.err { display: block; background: #fdecec; color: #b3261e; }

/* ---------- 오시는 길 ---------- */
.map-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: stretch; }
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 360px; background: #eef2ef; }
.map-box iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-info { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.map-info .mi-row { display: flex; gap: 14px; align-items: flex-start; }
.map-info .mi-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.map-info .mi-row small { color: var(--ink-soft); font-size: 13.5px; display: block; }
.map-info .mi-row b { font-size: 17px; color: var(--ink); }

/* ---------- 푸터 ---------- */
.footer { background: var(--brand-dark); color: #bcd6cc; padding: 56px 0 30px; margin-top: 0; }
.footer .f-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .f-brand b { font-family: var(--font-head); color: #fff; font-size: 20px; display: block; margin-bottom: 10px; }
.footer .f-brand p { margin: 4px 0; font-size: 14.5px; }
.footer .f-links { display: flex; gap: 40px; }
.footer .f-links h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer .f-links a { display: block; font-size: 14.5px; margin-bottom: 8px; color: #bcd6cc; }
.footer .f-links a:hover { color: #fff; }
.footer .f-bottom { padding-top: 22px; font-size: 13.5px; color: #8fb3a6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 플로팅 퀵버튼 ---------- */
.quick { position: fixed; right: 20px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.quick a { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); transition: transform .15s; }
.quick a:hover { transform: scale(1.06); }
.quick .q-tel { background: var(--accent); }
.quick .q-top { background: var(--brand); }

/* ---------- 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-grid, .contact-grid, .map-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gnb, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .topbar .t-left { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .hero-badge { position: static; margin: -18px auto 0; width: max-content; left: auto; bottom: auto; }
  .hero-illust { border-radius: 24px; }
  .form-row.two { grid-template-columns: 1fr; }
  .footer .f-top { flex-direction: column; }
  .quick a { width: 54px; height: 54px; }
}

/* ---------- 모바일 슬라이드 메뉴 ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 90; background: rgba(22,81,63,.4); opacity: 0; visibility: hidden; transition: .25s; }
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav .panel { position: absolute; right: 0; top: 0; height: 100%; width: min(80%, 320px); background: #fff; padding: 28px 24px; transform: translateX(100%); transition: transform .28s; box-shadow: var(--shadow-lg); }
.mobile-nav.open .panel { transform: none; }
.mobile-nav .panel a { display: block; padding: 15px 8px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav .panel .m-close { text-align: right; border: 0; background: none; font-size: 26px; color: var(--ink); margin-bottom: 10px; }
.mobile-nav .panel .m-cta { margin-top: 20px; text-align: center; background: var(--accent); color: #fff; border-radius: 999px; padding: 14px; font-weight: 700; }
