/* G PLUS KOREA — shared styles for the public pages (index / products / about) and admin.html. */

:root {
  --accent: #0072BC;

  --ink: #0F172A;
  --ink-strong: #0B1220;
  --text: #334155;
  --muted: #4B5563;
  --subtle: #64748B;
  --faint: #94A3B8;

  --border: #E5E9EF;
  --border-strong: #D7DEE6;
  --bg: #FFFFFF;
  --bg-tint: #F6F9FC;
  --bg-section: #F5F7FA;

  --dark-bg: #0F172A;
  --dark-border: #27324A;
  --dark-eyebrow: #7FB8E8;
  --dark-muted: #B6C2D4;

  --success-bg: #E7F6EC;
  --success: #1B7A3D;
  --danger-bg: #FDEBEC;
  --danger: #C0392B;
  --danger-border: #F3B4B4;

  --font: 'Inter', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; }
.section { padding: 80px 48px; }
.section--tint { background: var(--bg-tint); }
.section--grey { background: var(--bg-section); }
.center { text-align: center; }

.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; margin-bottom: 12px; }
.h2 { font-size: 28px; font-weight: 800; margin: 0 0 12px; color: var(--ink-strong); }
.h2--sm { font-size: 22px; }
.h2--caps { font-size: 24px; letter-spacing: 1px; }
.lead { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-size: 15px; font-weight: 600; padding: 14px 26px; border-radius: 8px; white-space: nowrap; }
.btn--sm { font-size: 14px; padding: 12px 22px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { opacity: 0.92; }
.btn--outline { color: var(--ink); border: 1px solid var(--border-strong); background: #fff; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--border); padding: 18px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-header__logo { height: 80px; width: auto; }
.navlist { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.navlink { color: var(--text); font-size: 14px; font-weight: 600; }
.navlink:hover, .navlink[aria-current="page"] { color: var(--accent); }

/* ---------- Page hero / title ---------- */
.hero { background: var(--bg-tint); padding: 96px 48px; }
.hero__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero__eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: 18px; letter-spacing: 1.2px; margin-bottom: 16px; }
.hero__title { font-size: 42px; line-height: 1.3; font-weight: 800; margin: 0 0 20px; color: var(--ink-strong); }
.hero__subtitle { font-size: 16px; color: var(--muted); margin: 0 0 32px; }

.page-title { background: var(--bg-tint); padding: 72px 48px; }
.page-title__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.page-title .eyebrow { margin-bottom: 16px; }
.page-title__h1 { font-size: 34px; line-height: 1.3; font-weight: 800; margin: 0 0 16px; color: var(--ink-strong); }

/* ---------- Home: about teaser ---------- */
.about-teaser { padding: 80px 48px; max-width: 900px; margin: 0 auto; text-align: center; }
.about-teaser__en { font-size: 14px; color: var(--subtle); margin: 0 0 20px; }
.about-teaser__p1 { font-size: 15px; color: var(--muted); margin: 0 auto 14px; max-width: 620px; }
.about-teaser__p2 { font-size: 14px; color: var(--subtle); margin: 0 auto 24px; max-width: 680px; }

/* ---------- Home: product teaser ---------- */
.teaser { max-width: 900px; margin: 0 auto; text-align: center; }
.teaser .h2 { margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.tag { font-size: 13px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; }

/* ---------- Home: G Selection ---------- */
.selection { max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.selection .h2 { font-size: 26px; }
.selection p { font-size: 14px; color: var(--muted); margin: 0; }
.qr-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.qr-card img { margin: 0 auto 10px; border-radius: 4px; }
.qr-card span { display: block; font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- Home: contact ---------- */
.contact { padding: 88px 48px; max-width: 760px; margin: 0 auto; text-align: center; }
.contact .h2 { margin-bottom: 16px; }
.contact .lead { margin-bottom: 28px; }
.contact__lines { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.contact__lines p { margin: 0; font-size: 15px; color: var(--ink); }

/* ---------- Cards ---------- */
.dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dcard { border: 1px solid var(--border); border-radius: 12px; padding: 28px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.dcard h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink-strong); }
.dcard__models { margin: 0; font-size: 13px; color: var(--accent); font-weight: 700; }
.dcard p { margin: 0; font-size: 14px; color: var(--muted); }

.group-head { margin: 0 0 28px; }
.group-head .h2 { margin-bottom: 8px; }
.group-head p { font-size: 14px; color: var(--subtle); margin: 0; max-width: 620px; }

/* ---------- Products: strengths ---------- */
.strengths { padding: 64px 48px 16px; box-shadow: 0 2px 8px 0 rgba(0,0,0,0.2); position: relative; }
.fgrid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 56px; }
.fgrid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ficon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.ficon svg { width: 56px; height: 56px; color: var(--ink-strong); }
.ficon h3, .fphoto h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink-strong); }
.fphoto h3 { font-weight: 700; }
.ficon p, .fphoto p { margin: 0; font-size: 13px; color: var(--subtle); }
.fphoto { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.fphoto img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; }
.fphoto p { max-width: 260px; }
.planetary { padding: 56px 48px 72px; }

/* ---------- About ---------- */
.about-intro { max-width: 820px; margin: 0 auto; text-align: center; }
.about-intro .eyebrow { margin-bottom: 16px; }
.about-intro h1 { font-size: 30px; line-height: 1.4; font-weight: 800; margin: 0 0 24px; color: var(--ink-strong); }
.about-intro p { font-size: 15px; color: var(--muted); margin: 0 0 10px; text-align: left; }
.about-intro .about-intro__last { margin-bottom: 20px; }
.about-intro .about-intro__sign { font-size: 14px; color: var(--subtle); margin: 0; font-weight: 600; }

.service { max-width: 980px; margin: 0 auto; }
.service .h2 { margin-bottom: 8px; }
.srow { display: flex; gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.srow:last-child { border-bottom: none; }
.slabel { flex: 0 0 160px; }
.slabel__num { margin: 0; font-size: 13px; color: var(--accent); font-weight: 700; }
.slabel__name { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink-strong); }
.scontent { flex: 1 1 auto; min-width: 0; }
.scontent p { margin: 0; font-size: 14px; color: var(--muted); }
.values { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--text); font-weight: 600; }

.history .dcard h3 { font-size: 22px; }
.history .dcard__facts { font-size: 13px; color: var(--text); }

.news { padding: 56px 48px; }
.news .h2 { font-size: 20px; letter-spacing: 1px; margin-bottom: 20px; }
.news-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.news-row__title { margin: 0; font-size: 14px; color: var(--ink); font-weight: 600; }
.news-row__date { margin: 0; font-size: 13px; color: var(--faint); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-bg); padding: 56px 48px 32px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.site-footer__col { flex: 1 1 240px; min-width: 0; }
.site-footer__col p { margin: 0 0 4px; font-size: 13px; color: var(--dark-muted); }
.site-footer__col p:last-child { margin-bottom: 0; }
.site-footer__label { font-size: 12px !important; font-weight: 700; color: var(--dark-eyebrow) !important; letter-spacing: 0.6px; margin-bottom: 8px !important; }
.site-footer__name { font-size: 14px !important; color: #fff !important; font-weight: 600; }
.site-footer__copy { margin: 0; font-size: 12px; color: var(--subtle); border-top: 1px solid var(--dark-border); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer__admin { color: var(--subtle); }
.site-footer__admin:hover { color: var(--dark-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgrid2, .fgrid3 { grid-template-columns: 1fr; }
  .fgrid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .history .dgrid { grid-template-columns: 1fr; }
  .srow { flex-direction: column; gap: 14px; }
  .slabel { flex: 0 0 auto; }
}
@media (max-width: 560px) {
  .dgrid, .fgrid4 { grid-template-columns: 1fr; }
  .site-header, .hero, .page-title, .section, .about-teaser, .contact, .strengths, .planetary, .news, .site-footer { padding-left: 16px; padding-right: 16px; }
  .site-header__logo { height: 56px; }
  .navlist { gap: 20px; }
  .hero__title { font-size: 32px; }
}

/* ================= Admin ================= */
.admin { background: var(--bg-tint); min-height: 100vh; }
.admin-header { background: #fff; border-bottom: 1px solid var(--border); padding: 18px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.admin-header__left { display: flex; align-items: center; gap: 16px; }
.admin-header__left img { height: 48px; width: auto; }
.admin-header__title { font-size: 15px; font-weight: 800; color: var(--ink-strong); }
.admin-header__link { color: var(--text); font-size: 13px; font-weight: 600; }
.admin-header__link:hover { color: var(--accent); }

.admin-main { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.panel { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 28px 32px; margin-bottom: 24px; }
.panel h2 { margin: 0 0 20px; font-size: 17px; font-weight: 800; color: var(--ink-strong); }
.panel--error { border-color: var(--danger-border); background: var(--danger-bg); }
.panel--error p { margin: 0; font-size: 13px; color: var(--danger); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 700; color: var(--subtle); letter-spacing: 0.3px; }
.field input, .field textarea { font-family: var(--font); font-size: 14px; color: var(--ink-strong); border: 1px solid var(--border-strong); border-radius: 8px; padding: 10px 12px; width: 100%; outline: none; }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.save-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.btn-save { background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-family: inherit; }
.btn-save:hover { opacity: 0.9; }
.pill { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.pill-ok { background: var(--success-bg); color: var(--success); }
.pill-err { background: var(--danger-bg); color: var(--danger); }

@media (max-width: 560px) {
  .admin-header { padding-left: 16px; padding-right: 16px; }
  .admin-main { padding-left: 16px; padding-right: 16px; }
  .panel { padding: 24px 20px; }
}
