/* Jaram responsive design system — 2026-07-20 */
:root {
  --jaram-blue: #005098;
  --jaram-navy: #123f65;
  --jaram-sky: #eaf7fc;
  --jaram-sky-2: #f5fbfd;
  --jaram-slate: #50677a;
  --jaram-ink: #172633;
  --jaram-line: #dce9ef;
  --jaram-green: #00a040;
  --jaram-orange: #e85018;
  --jaram-shadow: 0 24px 70px rgba(19, 63, 94, .12);
  --jaram-shadow-soft: 0 10px 34px rgba(19, 63, 94, .08);
  --jaram-radius: 24px;
  --jaram-radius-sm: 16px;
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  overflow-x: hidden;
  color: var(--jaram-ink) !important;
  background: #fff !important;
  -webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif !important;
}
img { max-width: 100%; }
a, button, input, select, textarea { border-radius: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(0, 80, 152, .28) !important;
  outline-offset: 3px;
}
.site-shell, .shell { width: min(1180px, calc(100vw - 48px)) !important; margin-inline: auto !important; }

/* Header: expansive desktop nav, compact accessible mobile drawer. */
.site-header, body > header {
  position: sticky !important;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(220, 233, 239, .8) !important;
  background: rgba(255, 255, 255, .9) !important;
  backdrop-filter: blur(18px) saturate(150%);
}
.nav, body > header nav {
  min-height: 82px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 28px !important;
  padding: 10px 0 !important;
}
.brand { grid-column: auto !important; justify-self: auto !important; flex: 0 0 auto; }
.brand img, .brand-logo-img { height: 48px !important; max-width: min(250px, 55vw) !important; object-fit: contain; }
.menu-wrap { grid-column: auto !important; justify-self: auto !important; margin-left: auto; position: relative; }
.menu-toggle { display: none !important; }
.nav-links {
  position: static !important;
  display: flex !important;
  align-items: center;
  width: auto !important;
  min-width: 0 !important;
  gap: 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.nav-links a {
  position: relative;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 11px 13px !important;
  color: #355166 !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav-links a:hover { color: var(--jaram-blue) !important; background: var(--jaram-sky-2); transform: translateY(-1px); }
.nav-links a:last-child { color: #fff !important; background: var(--jaram-blue) !important; padding-inline: 17px !important; }

/* Home hero. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 0 !important;
  overflow: hidden;
  border-bottom: 0 !important;
  background:
    radial-gradient(circle at 84% 22%, rgba(92, 190, 224, .22), transparent 30%),
    linear-gradient(135deg, #f7fcfe 0%, #eaf7fc 54%, #f9fcfd 100%) !important;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 440px;
  height: 440px;
  right: -160px;
  bottom: -230px;
  border-radius: 50%;
  border: 68px solid rgba(0, 80, 152, .055);
}
.hero-inner {
  min-height: 620px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr) !important;
  align-items: center !important;
  gap: clamp(36px, 6vw, 78px) !important;
  padding: 74px 0 !important;
}
.hero-copy { width: auto !important; padding: 0 !important; }
.hero-copy::before, .hero-inner > div:first-child::before {
  content: "YONGIN · SUJI  |  JARAM CENTER";
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 80, 152, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  padding: 8px 13px;
  color: var(--jaram-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
}
.hero h1, .hero-copy h1 {
  margin: 0 !important;
  color: var(--jaram-ink) !important;
  font-size: clamp(44px, 5vw, 68px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.055em !important;
  font-weight: 900 !important;
  word-break: keep-all;
}
.hero h1 span, .hero-copy h1 span { color: var(--jaram-blue) !important; }
.hero p, .hero-copy p, .lead {
  max-width: 620px;
  margin-top: 22px !important;
  color: var(--jaram-slate) !important;
  font-size: clamp(16px, 1.6vw, 20px) !important;
  line-height: 1.75 !important;
  font-weight: 600 !important;
  word-break: keep-all;
}
.hero-media {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 440px;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, .88);
  border-radius: 32px !important;
  background: #fff;
  box-shadow: var(--jaram-shadow);
  transform: rotate(1.2deg);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .65s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100% !important; object-fit: cover !important; }
.slider-dots { position: absolute !important; right: 32px !important; bottom: 34px !important; z-index: 4; }
.slider-dots i { width: 8px !important; height: 8px !important; border-radius: 999px !important; background: rgba(255,255,255,.7) !important; transition: width .2s ease; }
.slider-dots i.is-active { width: 26px !important; background: #fff !important; }

/* Shared content rhythm and cards. */
.center-band, .front-photo-section, .photo-story-section, .parent-lounge-section,
.program-section, .consult-section, .home-grid, .tile-grid, .therapist-section,
.service-visual, .content-grid { padding-top: clamp(58px, 7vw, 92px) !important; padding-bottom: clamp(58px, 7vw, 92px) !important; }
.center-band, .photo-story-section, .program-section, .therapist-section { background: #fff !important; }
.front-photo-section, .parent-lounge-section, .consult-section { background: var(--jaram-sky-2) !important; }
.center-intro, .front-photo, .photo-story, .parent-lounge { gap: clamp(28px, 5vw, 72px) !important; align-items: center !important; }
.intro-box, .notice-card, .tile, .program-card, .consult-card, .panel, .visual-card, .therapist-card, .hero-card {
  border: 1px solid var(--jaram-line) !important;
  border-radius: var(--jaram-radius) !important;
  box-shadow: var(--jaram-shadow-soft) !important;
}
.intro-box, .notice-card, .tile, .program-card, .panel { padding: clamp(24px, 3vw, 34px) !important; }
.intro-box, .program-card, .tile, .notice-card { transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.intro-box:hover, .program-card:hover, .tile:hover, .notice-card:hover { transform: translateY(-5px); box-shadow: var(--jaram-shadow) !important; border-color: #bfd9e6 !important; }
.section-title, .center-intro h2, .front-photo-copy h2, .photo-copy h2, .parent-lounge-copy h2,
.consult-info strong, .panel h2, .visual-copy strong {
  color: var(--jaram-ink) !important;
  font-size: clamp(27px, 3.1vw, 40px) !important;
  line-height: 1.22 !important;
  letter-spacing: -.035em;
  font-weight: 880 !important;
  word-break: keep-all;
}
.section-title::before {
  content: "PROGRAM";
  display: block;
  margin-bottom: 10px;
  color: var(--jaram-blue);
  font-size: 12px;
  letter-spacing: .14em;
}
.section-lead, .center-intro p, .front-photo-copy p, .photo-copy p, .parent-lounge-copy p,
.consult-info span, .panel p, .visual-copy span {
  color: var(--jaram-slate) !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}
.front-photo-frame, .photo-frame, .parent-lounge-photo, .consult-photo, .hero-card, .profile-photo {
  overflow: hidden;
  border-radius: var(--jaram-radius) !important;
}
.front-photo-frame img, .photo-frame img, .parent-lounge-photo img, .consult-photo img {
  width: 100%; height: 100% !important; min-height: 280px; object-fit: cover !important;
}
.program-cards { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 18px !important; }
.program-card { min-height: 230px !important; display: flex; flex-direction: column; background: #fff !important; }
.program-card b { color: var(--jaram-blue) !important; font-size: 12px !important; letter-spacing: .12em; }
.program-card strong { margin-top: auto; color: var(--jaram-ink) !important; font-size: 21px !important; }
.program-card span { color: var(--jaram-slate) !important; line-height: 1.65 !important; }
.consult-card { padding: clamp(22px, 4vw, 44px) !important; gap: clamp(24px, 5vw, 60px) !important; }
.consult-form input, .consult-form select, .consult-form textarea {
  border-color: var(--jaram-line) !important; border-radius: 12px !important; background: #fff !important; padding-inline: 14px !important;
}
.consult-form input, .consult-form select { min-height: 50px !important; }
.consult-form textarea { min-height: 130px !important; padding-block: 13px !important; }
.submit-btn, .cta.primary { min-height: 50px !important; border-radius: 13px !important; background: var(--jaram-blue) !important; transition: transform .2s ease, box-shadow .2s ease; }
.submit-btn:hover, .cta.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,80,152,.22); }
.tile-grid { gap: 18px !important; }
.tile { min-height: 180px !important; background: #fff !important; color: var(--jaram-ink) !important; }
.tile.blue { color: #fff !important; background: linear-gradient(135deg, var(--jaram-blue), #1973ad) !important; }

/* Service pages. */
.eyebrow { color: var(--jaram-blue) !important; font-weight: 850 !important; letter-spacing: .08em; }
.hero-card { transform: rotate(1deg); }
.hero-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover !important; }
.hero-card-body { padding: 22px !important; }
.cta-row { gap: 10px !important; margin-top: 26px !important; }
.cta { min-height: 48px !important; border-radius: 13px !important; padding-inline: 18px !important; }
.service-nav { display: flex; gap: 10px !important; padding-top: 28px !important; padding-bottom: 0 !important; overflow-x: auto; scrollbar-width: none; }
.service-link { flex: 0 0 auto; border-radius: 999px !important; padding: 10px 15px !important; }
.service-link.is-active { border-color: var(--jaram-blue) !important; background: var(--jaram-sky) !important; color: var(--jaram-blue) !important; }
.visual-card { overflow: hidden; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important; background: #fff !important; }
.visual-card img { width: 100%; height: 100% !important; min-height: 340px; object-fit: cover !important; }
.visual-copy { padding: clamp(28px, 5vw, 56px) !important; }
.content-grid { gap: 20px !important; }
.panel { min-height: 100%; }
.panel h2 { font-size: clamp(22px, 2.3vw, 29px) !important; }
.panel ul, .panel ol { color: var(--jaram-slate) !important; line-height: 1.75; }
.panel.wide { background: linear-gradient(135deg, var(--jaram-sky), #f8fcfd) !important; }
details { border-color: var(--jaram-line) !important; }
summary { color: var(--jaram-ink) !important; }

/* Therapist depth only: portraits stay isolated to /therapists/. */
.therapist-hero { background: linear-gradient(135deg, #f5fbfd, var(--jaram-sky)) !important; }
.therapist-hero h1 { color: var(--jaram-ink) !important; font-size: clamp(40px, 5vw, 64px) !important; letter-spacing: -.05em; }
.therapist-grid { gap: 24px !important; }
.therapist-card { padding: clamp(24px, 4vw, 44px) !important; background: #fff !important; }
.therapist-layout { grid-template-columns: 250px minmax(0, 1fr) !important; gap: clamp(28px, 5vw, 58px) !important; }
.profile-photo { aspect-ratio: 4/5; box-shadow: var(--jaram-shadow-soft); }
.profile-photo img { width: 100%; height: 100% !important; object-fit: cover !important; }
.role-badge { border-radius: 999px !important; background: var(--jaram-sky) !important; color: var(--jaram-blue) !important; }
.therapist-card h2 { color: var(--jaram-ink) !important; font-size: clamp(26px, 3vw, 36px) !important; }
.profile-label { border-radius: 999px !important; background: #edf6fa !important; color: var(--jaram-blue) !important; }
.profile-list { color: var(--jaram-slate) !important; }

footer { background: #18364d !important; }
.footer-inner { min-height: 150px !important; color: #c8d9e5 !important; }
.footer-inner strong { color: #fff !important; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-media, .intro-box, .program-card, .therapist-card { animation: jaram-rise .65s both; }
  .hero-media { animation-delay: .08s; }
  .program-card:nth-child(2), .therapist-card:nth-child(2) { animation-delay: .06s; }
  .program-card:nth-child(3), .therapist-card:nth-child(3) { animation-delay: .12s; }
  .program-card:nth-child(4), .therapist-card:nth-child(4) { animation-delay: .18s; }
  @keyframes jaram-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
  .hero-media, .hero-card { animation-name: jaram-rise-tilt; }
  @keyframes jaram-rise-tilt { from { opacity:0; transform:translateY(18px) rotate(1.2deg); } to { opacity:1; transform:translateY(0) rotate(1.2deg); } }
}

@media (max-width: 900px) {
  .site-shell, .shell { width: min(100% - 32px, 760px) !important; }
  .nav, body > header nav { min-height: 72px !important; }
  .brand img, .brand-logo-img { height: 42px !important; }
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px !important;
    border: 1px solid var(--jaram-line) !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: transparent !important;
    font-size: 0 !important;
    cursor: pointer;
  }
  .menu-toggle::before { content: "☰"; color: var(--jaram-navy); font-size: 22px; line-height: 1; }
  .menu-wrap.is-open .menu-toggle::before { content: "×"; font-size: 30px; }
  .nav-links {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: min(330px, calc(100vw - 32px)) !important;
    display: grid !important;
    gap: 2px !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    pointer-events: none;
    border: 1px solid var(--jaram-line) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: var(--jaram-shadow) !important;
    padding: 10px !important;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  body .menu-wrap.is-open .nav-links {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .nav-links a { padding: 13px 14px !important; }
  .hero-inner { min-height: 0 !important; grid-template-columns: 1fr !important; padding: 56px 0 62px !important; }
  .hero-media { min-height: 390px; transform: none; }
  .hero-card { transform: none; }
  .program-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .therapist-layout { grid-template-columns: 210px minmax(0, 1fr) !important; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 76px; }
  .site-shell, .shell { width: min(100% - 28px, 480px) !important; }
  .nav, body > header nav { min-height: 68px !important; padding: 8px 0 !important; }
  .brand img, .brand-logo-img { height: 38px !important; max-width: 210px !important; }
  .menu-toggle { min-width: 44px; min-height: 44px !important; }
  .hero-inner { gap: 34px !important; padding: 42px 0 48px !important; }
  .hero-copy::before, .hero-inner > div:first-child::before { margin-bottom: 14px; font-size: 10px; padding: 7px 10px; }
  .hero h1, .hero-copy h1 { font-size: clamp(38px, 11vw, 48px) !important; line-height: 1.1 !important; }
  .hero p, .hero-copy p, .lead { margin-top: 17px !important; font-size: 16px !important; }
  .hero-media { min-height: 300px; border-width: 5px; border-radius: 24px !important; transform: none; }
  .slider-dots { right: 20px !important; bottom: 22px !important; }
  .center-band, .front-photo-section, .photo-story-section, .parent-lounge-section,
  .program-section, .consult-section, .home-grid, .tile-grid, .therapist-section,
  .service-visual, .content-grid { padding-top: 52px !important; padding-bottom: 52px !important; }
  .center-intro, .front-photo, .photo-story, .parent-lounge, .consult-card, .visual-card,
  .content-grid, .therapist-layout, .profile-row { grid-template-columns: 1fr !important; }
  .section-title, .center-intro h2, .front-photo-copy h2, .photo-copy h2, .parent-lounge-copy h2,
  .consult-info strong, .visual-copy strong { font-size: 28px !important; }
  .program-cards { grid-template-columns: 1fr !important; }
  .program-card { min-height: 190px !important; }
  .photo-stack, .photo-stack.room-gallery { grid-template-columns: 1fr !important; }
  .room-gallery .photo-frame:first-child { grid-column: auto !important; }
  .photo-frame:nth-child(2) { margin-top: 0 !important; }
  .front-photo-frame img, .photo-frame img, .parent-lounge-photo img, .consult-photo img { min-height: 230px; }
  .visual-card img { min-height: 240px; }
  .visual-copy { padding: 26px !important; }
  .service-nav { width: calc(100vw - 14px) !important; margin-left: 14px !important; padding-right: 14px !important; }
  .content-grid { padding-top: 30px !important; }
  .panel { padding: 24px 21px !important; }
  .therapist-hero { padding: 54px 0 !important; }
  .therapist-layout { gap: 24px !important; }
  .profile-photo { width: min(250px, 100%); margin-inline: auto; }
  .therapist-head { text-align: center; align-items: center !important; }
  .footer-inner { display: grid !important; min-height: 0 !important; padding: 34px 0 !important; gap: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
