/* ===== 라온유 심리상담센터 - 공통 스타일 ===== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap');

:root {
  --color-teal: #2C5F5D;
  --color-moss: #8FA998;
  --color-gold: #C99B4E;
  --color-bg: #F5F3EF;
  --color-bg-alt: #FFFFFF;
  --color-text: #2B3A3A;
  --color-text-soft: #6B7B78;
  --font-display: 'Gowun Batang', Georgia, serif;
  --font-body: 'Pretendard', 'Malgun Gothic', sans-serif;
  --max-width: 1080px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-teal);
  line-height: 1.35;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 20px; }

p { margin: 0 0 1em; max-width: 68ch; }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid #E4E0D8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.logo-link img { height: 64px; width: auto; }

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark { height: 48px; width: auto; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text-main {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 30px;
  color: var(--color-teal);
  letter-spacing: 1px;
}

.logo-text-sub {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-soft);
  letter-spacing: 1.5px;
  margin-top: 1px;
}

.site-footer .logo-text-main,
.site-footer .logo-text-sub {
  color: #E9EFEC;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 15px;
  color: var(--color-text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-teal);
  border-color: var(--color-gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-teal);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--color-gold);
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.hero-visual {
  background: var(--color-bg-alt);
  border: 1px solid #E4E0D8;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  background: var(--color-teal);
  color: #fff;
  font-size: 15px;
  border: 1px solid var(--color-teal);
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover { background: #244b49; }

.btn-outline {
  background: transparent;
  color: var(--color-teal);
}

.btn-outline:hover { background: var(--color-teal); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--color-bg-alt); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid #E4E0D8;
  border-radius: var(--radius);
  padding: 28px;
}

section.alt .card { background: var(--color-bg); }

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-moss);
  margin-bottom: 16px;
}

img.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: none;
}

/* ---------- Counselor cards ---------- */
.counselor-card {
  text-align: center;
}

.counselor-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--color-moss);
  margin: 0 auto 18px;
}

.counselor-title {
  color: var(--color-gold);
  font-size: 14px;
  margin-bottom: 10px;
}

/* ---------- Story list ---------- */
.story-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #E4E0D8;
}

.story-thumb {
  width: 160px;
  min-width: 160px;
  aspect-ratio: 4/3;
  background: var(--color-moss);
  border-radius: var(--radius);
}

img.story-thumb {
  object-fit: cover;
  background: var(--color-bg);
  border: 1px solid #E4E0D8;
}

.story-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--color-teal);
  background: rgba(143,169,152,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ---------- Forms ---------- */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--color-text-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D8D3C8;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--color-bg-alt);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-top: 24px;
}

#form-status {
  margin-top: 16px;
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-teal);
  color: #E9EFEC;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.site-footer a { color: #E9EFEC; }
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 32px;
}

/* ---------- Page header (sub pages) ---------- */
.page-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid #E4E0D8;
}

/* ---------- Process steps (희망나무) ---------- */
.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid #E4E0D8;
}

.process-step:last-child { border-bottom: none; }

.process-number {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-content h3 { margin-bottom: 6px; }
.process-content p { margin: 0; }

@media (max-width: 560px) {
  .process-step { gap: 16px; }
  .process-number { width: 36px; height: 36px; font-size: 15px; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid #E4E0D8;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .story-item { flex-direction: column; }
  .story-thumb { width: 100%; }
}
