/* WisBus site styles — edit the tokens below to change colors/fonts site-wide. */
:root {
  --brand: #683b93;
  --brand-dark: #4e2b70;
  --brand-soft: #f3eef8;
  --cream: #f5ede1;
  --ink: #1f1d24;
  --muted: #5c5866;
  --line: #e6e1ec;
  --bg: #ffffff;
  --radius: 14px;
  --max: 1180px;
  --font: "Poppins", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; word-break: keep-all; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.ko { color: var(--muted); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--brand-soft); }
.section--cream { background: var(--cream); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lead { font-size: 1.12rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn { display: inline-block; padding: 13px 30px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 500; border: 2px solid var(--brand); cursor: pointer; font: inherit; transition: background .2s, color .2s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 46px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); border-color: var(--brand); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .nav a { display: block; padding: 12px 0; border: 0; font-size: 1.1rem; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { background: var(--cream); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 span { color: var(--brand); }
.hero img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(60, 40, 90, .15); }

/* Page banner (inner pages) */
.banner { position: relative; min-height: 340px; display: flex; align-items: flex-end; color: #fff; background: var(--brand-dark) center/cover no-repeat; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,20,45,.15), rgba(30,20,45,.7)); }
.banner .container { position: relative; padding-top: 80px; padding-bottom: 48px; }
.banner h1 { margin: 0; }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split img { border-radius: var(--radius); }
.split--reverse > :first-child { order: 2; }
@media (max-width: 800px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* Tagline marquee */
.tagline { background: var(--brand); color: #fff; overflow: hidden; white-space: nowrap; padding: 18px 0; font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; }
.tagline__track { display: inline-flex; gap: 64px; animation: marquee 28s linear infinite; padding-left: 64px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tagline__track { animation: none; } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card__body { padding: 26px; }
.card ul { padding-left: 1.1em; margin: 0 0 1em; }
.card li { margin-bottom: .5em; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } .card { max-width: 640px; } }

/* Service detail rows */
.service { padding: 48px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.service ul { padding-left: 1.1em; }

/* Locations */
.offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.office { background: #fff; border-radius: var(--radius); padding: 20px; text-align: center; font-weight: 500; border: 1px solid var(--line); }
.office small { display: block; color: var(--muted); font-weight: 400; }
@media (max-width: 700px) { .offices { grid-template-columns: repeat(2, 1fr); } }

/* Contact */
.form { display: grid; gap: 18px; }
.form label { font-weight: 500; display: block; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; padding: 13px 18px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(104,59,147,.15); }
.form-status { font-weight: 500; color: var(--brand); min-height: 1.5em; }
.contact-info { display: grid; gap: 24px; }
.contact-info h3 { margin-bottom: .3em; }

/* Footer */
.site-footer { background: #1d1726; color: #d9d3e3; padding: 72px 0 32px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; }
.footer-logo img { height: 56px; width: auto; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer address { font-style: normal; }
.site-footer p { margin-bottom: 1.2em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; font-size: .85rem; color: #a79fb4; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
