/* COBYUS — 따뜻한 교육 공간: 크림 바탕, 우드 프레임, 아치·물결 곡선, 실제 수업 사진 중심 */
:root {
  --bg: #F2EFE6;        /* 크림 (메인) */
  --paper: #FAF8F2;     /* 밝은 면 */
  --sand: #E7E0D2;      /* 구분 면 */
  --wood: #71594B;      /* 우드 브라운 (보조) */
  --olive: #3F483B;     /* 딥올리브 (포인트) */
  --wine: #813F49;      /* 레드와인 (포인트) */
  --ink: #2C2723;       /* 본문 */
  --muted: #6B5F55;
  --line: #D9D0BF;
  --logo: #52451B;
  --on-main: #FAF8F2;
  --f-display: "Gowun Batang", "Noto Serif KR", "AppleMyungjo", serif;
  --f-body: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-en: "Cormorant Garamond", "Gowun Batang", Georgia, serif;
  --r: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1916; --paper: #24201C; --sand: #2C2722; --wood: #C9AE98; --olive: #AFBEA3; --wine: #E09AA5;
    --ink: #EEE7DC; --muted: #B6A99C; --line: #3D362F; --logo: #DCCCAA; --on-main: #1C1916; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1916; --paper: #24201C; --sand: #2C2722; --wood: #C9AE98; --olive: #AFBEA3; --wine: #E09AA5;
  --ink: #EEE7DC; --muted: #B6A99C; --line: #3D362F; --logo: #DCCCAA; --on-main: #1C1916; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.8 var(--f-body); word-break: keep-all; overflow-wrap: break-word; padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; color: var(--olive); line-height: 1.35; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.18rem; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--olive); color: var(--on-main); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.min0 { min-width: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.wrap.narrow { max-width: 780px; }
.sec { padding-block: clamp(72px, 10vw, 128px); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.eyebrow { font-family: var(--f-body); font-size: 0.82rem; letter-spacing: 0.16em; color: var(--wine); text-transform: uppercase; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.lead p + p { margin-top: 0.8em; }
.note { margin-top: 28px; font-size: 0.92rem; color: var(--muted); padding: 16px 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); max-width: 70ch; }

/* 버튼 */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-main { background: var(--olive); color: var(--on-main); }
.btn-main:hover { background: var(--wine); }
.btn-line { border: 1.5px solid var(--wood); color: var(--wood); }
.btn-line:hover { background: var(--wood); color: var(--on-main); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

/* 헤더 */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon, .logo-word { display: block; background: var(--logo); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }
.logo-icon { width: 40px; height: 29px; -webkit-mask-image: var(--logo-icon); mask-image: var(--logo-icon); }
.logo-icon.big { width: 96px; height: 69px; }
.logo-word { width: 110px; height: 24px; -webkit-mask-image: var(--logo-word); mask-image: var(--logo-word); }
.menu { display: flex; gap: 22px; margin-left: auto; font-size: 0.95rem; }
.menu a { text-decoration: none; color: var(--muted); }
.menu a:hover { color: var(--olive); }
@media (max-width: 960px) { .menu { display: none; } .top-cta { margin-left: auto; } }

/* 첫 화면 */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 112px); }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-text .eyebrow { margin-bottom: 20px; }
.slogan-en { font-family: var(--f-en); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--wood); margin-top: 14px; }
.hero-lead { margin-top: 26px; color: var(--muted); max-width: 52ch; }
.hero-lead p + p { margin-top: 0.7em; }
.arch { margin: 0; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; border: 10px solid var(--paper); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(60, 40, 25, .35); aspect-ratio: 4 / 5.2; max-width: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .hero-in { grid-template-columns: 1fr; } .hero-photo { max-width: 420px; justify-self: center; width: 100%; } }

/* 이런 고민 */
.fit { background: var(--paper); border-radius: clamp(28px, 6vw, 64px) clamp(28px, 6vw, 64px) 0 0; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split h2 { margin-bottom: 14px; }
.blob-photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 58% 42% 46% 54% / 44% 52% 48% 56%; }
.blob-photo img { width: 100%; height: 100%; object-fit: cover; }
.check { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.check li { position: relative; padding: 14px 18px 14px 50px; background: var(--bg); border-radius: 14px; }
.check li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--wine); background: radial-gradient(circle, var(--wine) 0 3.5px, transparent 4px); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .blob-photo { max-width: 360px; } }

/* 방식 */
.ways { background: var(--paper); }
.flow { margin-top: 12px; font-family: var(--f-display); color: var(--wood); font-size: 1.1rem; }
.ways-list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.ways-list li { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1.5px solid var(--wood); }
.ways-list .num { font-family: var(--f-en); font-style: italic; font-size: 1.5rem; color: var(--wine); line-height: 1; }
.ways-list p { color: var(--muted); }
@media (max-width: 820px) { .ways-list { grid-template-columns: 1fr; } }

/* 클래스 */
.class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.class-card { display: flex; flex-direction: column; gap: 14px; background: var(--paper); border-radius: var(--r); padding: 28px; border: 1px solid var(--line); min-width: 0; }
.class-card header { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.class-card .when { font-size: 0.9rem; color: var(--wood); }
.class-card dl { margin: 0; font-size: 0.93rem; color: var(--muted); }
.class-card dt { font-weight: 700; color: var(--ink); font-size: 0.85rem; margin-bottom: 2px; }
.class-card dd { margin: 0; }
.price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 6px; }
.price strong { font-family: var(--f-display); font-size: 1.45rem; color: var(--olive); font-variant-numeric: tabular-nums; }
.price span { font-size: 0.85rem; color: var(--wine); }

/* 밸런스 케어 */
.care { background: var(--sand); }
.care-head { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(28px, 5vw, 64px); align-items: end; margin-bottom: 40px; }
.care-head h2 { margin: 10px 0 16px; letter-spacing: 0.04em; }
.care-photo { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.4; max-width: 100%; border: 8px solid var(--paper); }
.care-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { background: var(--paper); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); display: grid; gap: 10px; align-content: start; min-width: 0; }
.plan h3 { letter-spacing: 0.06em; font-size: 1.3rem; }
.plan-sub { color: var(--wine); font-size: 0.95rem; }
.plan > p:not(.plan-sub) { color: var(--muted); font-size: 0.95rem; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 11px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.price-table thead th { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; border-bottom: 1.5px solid var(--wood); }
.price-table td { text-align: right; color: var(--olive); font-weight: 600; }
.care .note { background: var(--paper); }
@media (max-width: 820px) { .care-head, .plans { grid-template-columns: 1fr; } }

/* 관찰 포인트 */
.observe-list { list-style: none; counter-reset: o; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 40px; }
.observe-list li { counter-increment: o; padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; }
.observe-list li::before { content: counter(o); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-en); font-style: italic; font-size: 1.15rem; color: var(--on-main); background: var(--wood); }
.observe-list p, .senior-list p { color: var(--muted); font-size: 0.96rem; }

/* 진행 단계 */
.process { background: var(--paper); }
.process-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.step-no { font-family: var(--f-en); font-style: italic; color: var(--wine); font-size: 1.05rem; padding-top: 2px; white-space: nowrap; }
.steps p { color: var(--muted); font-size: 0.96rem; margin-top: 4px; }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: sticky; top: 96px; }
.photo-stack figure { margin: 0; overflow: hidden; border-radius: var(--r); aspect-ratio: 3 / 4; max-width: 100%; }
.photo-stack figure:first-child { grid-column: span 2; aspect-ratio: 4 / 3; border-radius: 999px 999px var(--r) var(--r); }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .process-in { grid-template-columns: 1fr; } .photo-stack { position: static; } .steps li { grid-template-columns: 1fr; gap: 4px; } }

/* 시작한 이유 */
.story h2 { margin-bottom: 32px; }
.story-text { display: grid; gap: 1.1em; font-size: 1.06rem; }
.story-text p:first-child::first-line { color: var(--olive); }

/* 대표 */
.founder { background: #3F483B; color: #EEE9DF; } /* 대표 소개는 두 테마 모두 딥올리브 */
.founder h2, .founder h3 { color: #FAF8F2; }
.founder .eyebrow { color: #E7B9C0; }
.founder-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.founder-photo { margin: 0; position: relative; }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px var(--r) var(--r); }
.founder-photo figcaption { display: grid; margin-top: 16px; font-size: 0.9rem; color: #CFC6B8; }
.founder-photo figcaption strong { font-family: var(--f-display); font-size: 1.3rem; color: #FAF8F2; }
.founder h2 { margin: 12px 0 26px; }
.founder-text { display: grid; gap: 1em; color: #DDD6CA; }
.cv { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(250, 248, 242, .2); }
.cv h3 { font-size: 1rem; margin-bottom: 10px; }
.cv ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.92rem; color: #D6CFC3; }
@media (max-width: 820px) { .founder-in, .cv { grid-template-columns: 1fr; } .founder-photo { max-width: 380px; } }

/* 노령견 */
.senior blockquote { margin: 6px 0 4px; font-family: var(--f-display); font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--wine); line-height: 1.6; }
.senior-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.senior-list li { background: var(--paper); border-radius: var(--r); padding: 24px; display: grid; gap: 8px; align-content: start; }
@media (max-width: 900px) { .senior-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .senior-list { grid-template-columns: 1fr; } }

/* 공간 */
.gallery { background: var(--paper); }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal figure { margin: 0; position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 3 / 4; }
.gal figure:nth-child(1) { border-radius: 999px 999px 16px 16px; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gal figure:hover img { transform: scale(1.03); }
.gal figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(28, 25, 22, .62); color: #FAF8F2; font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; }
@media (max-width: 820px) { .gal { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: 16px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative; font-weight: 600; color: var(--olive); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; font-family: var(--f-en); font-style: italic; color: var(--wine); margin-right: 8px; font-size: 1.1rem; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--wood); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 22px; color: var(--muted); }

/* 상담 */
.contact { background: var(--sand); border-radius: clamp(28px, 6vw, 64px) clamp(28px, 6vw, 64px) 0 0; }
.contact-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); }
.contact h2 { margin: 12px 0 20px; }
.info { background: var(--paper); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; }
.info h3 { font-size: 1rem; color: var(--wood); }
.info h3:not(:first-child) { margin-top: 12px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.hours th { width: 38%; color: var(--olive); font-weight: 600; padding-right: 10px; }
.links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.92rem; }
.links a { color: var(--wine); }
@media (max-width: 820px) { .contact-in { grid-template-columns: 1fr; } }

/* 푸터 */
.foot { background: var(--sand); padding-block: 48px 120px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.foot-in { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 28px; }
.foot-slogan { font-family: var(--f-en); font-style: italic; font-size: 1.15rem; color: var(--wood); margin-top: 10px; }
.biz { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 6px 24px; }
.biz div { display: flex; gap: 10px; min-width: 0; }
.biz dt { color: var(--ink); white-space: nowrap; }
.biz dd { margin: 0; min-width: 0; }
.copy { grid-column: 1 / -1; }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr; } }
@media (min-width: 821px) { .foot { padding-bottom: 48px; } }

/* 모바일 하단 상담 바 */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.dock a { flex: 1; text-align: center; padding: 13px 0; border-radius: 999px; text-decoration: none; font-weight: 600; }
.dock a:first-child { background: var(--olive); color: var(--on-main); }
.dock a:nth-child(2) { border: 1.5px solid var(--wood); color: var(--wood); }
@media (max-width: 820px) { .dock { display: flex; } }
