:root {
  --bg: #ffffff;
  --fg: #1b2430;
  --muted: #64748b;
  --primary: #2f68b5;
  --primary-fg: #ffffff;
  --primary-soft: #e6eefb;
  --accent: #0f9d76;
  --accent-fg: #ffffff;
  --accent-soft: #e0f5ee;
  --border: #dfe6ef;
  --surface: #f6f9fc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(47, 104, 181, 0.06), 0 12px 32px -18px rgba(47, 104, 181, 0.35);
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--primary); }
h3 { font-size: 1.05rem; }
p { margin: 0.6rem 0 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 0; }
.section-muted { background: var(--surface); }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.plain { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.plain a { color: var(--muted); text-decoration: none; }
.plain a:hover { color: var(--accent); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.brand strong { display: block; font-family: var(--font-display); color: var(--primary); font-size: 1rem; }
.brand small { display: block; color: var(--muted); font-size: 0.72rem; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.desktop-nav { display: none; gap: 0.15rem; }
.desktop-nav a { text-decoration: none; padding: 0.5rem 0.7rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: #334155; }
.desktop-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.lang { display: flex; background: #eef2f7; border-radius: 999px; padding: 2px; }
.lang button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: 0.3rem 0.6rem; font-size: 0.75rem; font-weight: 700; color: #475569; font-family: inherit;
}
.lang button.is-active { background: var(--primary); color: #fff; }
.call-cta {
  display: none; align-items: center; gap: 0.4rem; text-decoration: none;
  background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 0.85rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
}
.menu-btn { width: 40px; height: 40px; border: 1px solid var(--border); background: #fff; border-radius: 8px; font-size: 1.1rem; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--border); padding: 0.4rem 1rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 0.7rem 0.2rem; text-decoration: none; font-weight: 600; font-size: 0.92rem; }

/* hero */
.hero { background: linear-gradient(160deg, #eef4fb 0%, #e3eefa 45%, #e4f5ee 100%); }
.hero-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; align-items: center; }
.badge {
  display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.75rem; font-weight: 700;
  color: var(--accent); background: rgba(255,255,255,0.75); border: 1px solid rgba(15,157,118,0.3);
  padding: 0.3rem 0.75rem; border-radius: 999px;
}
.hero h1 { margin-top: 1.1rem; font-size: clamp(1.9rem, 5vw, 3rem); color: var(--primary); line-height: 1.15; }
.name-gu { display: block; margin-top: 0.4rem; font-size: 1.25rem; color: #334155; }
.tagline { color: var(--accent); font-weight: 700; font-size: 1.05rem; margin-top: 1rem; }
.lead { max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 999px; padding: 0.75rem 1.4rem; font-weight: 700; font-size: 0.88rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.92; }
.btn-outline { background: #fff; color: var(--primary); border-color: rgba(47,104,181,0.3); }
.hero-meta { display: grid; gap: 0.6rem; margin: 1.8rem 0 0; font-size: 0.9rem; }
.hero-meta div { display: flex; gap: 0.5rem; }
.hero-meta dt { margin: 0; }
.hero-meta dd { margin: 0; color: var(--muted); }
.hero-card { text-align: center; max-width: 22rem; margin: 0 auto; padding: 2rem; }
.hero-card img { width: 128px; height: 128px; border-radius: 16px; object-fit: cover; margin: 0 auto; }
.hero-card-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--primary); margin-top: 1.2rem; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.4rem; text-align: left; }
.stat { border-radius: 10px; padding: 0.75rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.stat span { font-size: 0.72rem; color: var(--muted); }
.soft-blue { background: var(--primary-soft); } .soft-blue strong { color: var(--primary); }
.soft-green { background: var(--accent-soft); } .soft-green strong { color: var(--accent); }

/* about */
.about-grid { display: grid; gap: 2.5rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; align-self: start; }
.stat-card dt { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-card dd { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* grids */
.grid-3 { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.service-card .icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); font-size: 1.1rem; }
.service-card h3 { margin-top: 0.8rem; font-size: 1.05rem; }
.link-accent { display: inline-block; margin-top: 0.7rem; color: var(--accent); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.link-accent:hover { text-decoration: underline; }
.board .member { text-align: center; }
.board img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.board h3 { margin-top: 0.75rem; font-size: 0.98rem; }
.board p { font-size: 0.8rem; margin-top: 0.15rem; }

/* schedule */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.chip { border: 0; cursor: pointer; font-family: inherit; border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.82rem; font-weight: 700; background: #eef2f7; color: #334155; }
.chip.is-active { background: var(--primary); color: #fff; }
.depts { margin-top: 2rem; display: grid; gap: 2.5rem; }
.dept[hidden] { display: none; }
.dept-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.dept-head h3 { font-size: 1.2rem; color: var(--primary); }
.pill { background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.82rem; padding: 0.25rem 0.75rem; border-radius: 999px; text-decoration: none; }
.table-wrap { display: none; margin-top: 0.8rem; padding: 0; overflow-x: auto; }
table { width: 100%; min-width: 52rem; border-collapse: collapse; font-size: 0.84rem; text-align: left; }
thead th { background: var(--primary-soft); color: var(--primary); padding: 0.6rem 0.75rem; font-weight: 700; }
tbody th { font-weight: 700; white-space: nowrap; }
tbody th, tbody td { padding: 0.6rem 0.75rem; border-top: 1px solid var(--border); vertical-align: top; }
.none { color: #94a3b8; }
.slots { display: grid; gap: 0.75rem; margin-top: 0.8rem; }
.slot-time { font-weight: 700; color: var(--primary); margin: 0; }
.slot-day { font-size: 0.85rem; color: var(--muted); margin: 0.35rem 0 0; }
.slot-day span { display: inline-block; min-width: 2.4rem; font-weight: 700; color: var(--fg); }

/* reviews */
.reviews { margin-top: 2rem; text-align: center; display: grid; justify-items: center; gap: 0.75rem; padding: 2rem; }
.stars { color: var(--accent); font-size: 1.8rem; letter-spacing: 0.2rem; }
.reviews p { max-width: 34rem; font-size: 0.9rem; }
.review-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* contact */
.contact-grid { display: grid; gap: 2rem; }
form { margin-top: 1.5rem; display: grid; gap: 0.35rem; }
label { font-size: 0.82rem; font-weight: 700; margin-top: 0.7rem; }
input, select, textarea {
  font: inherit; font-size: 0.92rem; padding: 0.6rem 0.75rem; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
form .btn { margin-top: 1.2rem; justify-content: center; }
.err, .ok { display: none; font-size: 0.78rem; margin: 0.15rem 0 0; }
.err { color: #c0392b; }
.ok { color: var(--accent); font-weight: 600; }
.err.show, .ok.show { display: block; }
.contact-info h3 { color: var(--primary); margin-top: 1.2rem; font-size: 0.95rem; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info address { font-style: normal; color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }

/* footer */
.site-footer { border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
.site-footer h3 { color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.site-footer address { font-style: normal; color: var(--muted); font-size: 0.85rem; margin-top: 1rem; }
.copyright { border-top: 1px solid var(--border); text-align: center; font-size: 0.75rem; color: var(--muted); padding: 1rem; margin: 0; }

/* floating call */
.float-call {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 0.9rem;
  padding: 0.85rem 1.2rem; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(15, 157, 118, 0.6);
}
.float-call:hover { transform: translateY(-2px); transition: transform 0.2s; }

@media (min-width: 640px) {
  .call-cta { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .section { padding: 5.5rem 0; }
  .table-wrap { display: block; }
  .slots { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .menu-btn { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.15fr 1fr; padding-top: 5rem; padding-bottom: 5rem; }
}

/* header brand: keep one line on narrow screens */
.brand span { min-width: 0; overflow: hidden; }
.brand strong, .brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 0.86rem; }
  .brand small { font-size: 0.66rem; }
  .lang button { padding: 0.28rem 0.45rem; font-size: 0.7rem; }
}
