/* ==========================================================================
   FRIGUSON site stylesheet
   ========================================================================== */

:root {
  --navy: #14304a;
  --navy-dark: #0b1e30;
  --navy-soft: #24476b;
  --red: #d6473f;
  --blue: #3fa9c9;
  --amber: #ef9f1e;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-navy-soft: #eef2f6;
  --text: #1f2937;
  --text-soft: #5b6472;
  --border: #e3e8ee;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 48, 74, 0.08);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--navy-dark);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--text); }

.text-soft { color: var(--text-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); }

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

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}

.lang-switch {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  margin-left: 8px;
}
.lang-switch:hover { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-dark);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: #fff;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(63, 169, 201, 0.35), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(214, 71, 63, 0.25), transparent 40%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.hero h1 { color: #fff; max-width: 760px; }

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero .btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--navy-dark); }
.hero .btn-primary { background: var(--red); }
.hero .btn-primary:hover { background: #b8342c; }

/* Page (non-home) header banner */
.page-banner {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 64px 0 56px;
}
.page-banner h1 { color: #fff; margin-bottom: 8px; }
.page-banner p { color: rgba(255,255,255,0.8); max-width: 680px; margin: 0; }

/* ---------------------------------------------------------------------- */
/* Sections / cards                                                       */
/* ---------------------------------------------------------------------- */

section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  height: 100%;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-navy-soft);
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link { color: var(--navy); font-weight: 700; font-size: 0.9rem; }

.card ul { padding-left: 20px; margin: 0 0 16px; color: var(--text); }
.card ul li { margin-bottom: 6px; }

/* quote / vision block */
.quote-block {
  border-left: 4px solid var(--red);
  padding: 8px 0 8px 28px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin: 0;
}

/* stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.stat { text-align: left; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--navy); display: block; }
.stat .label { color: var(--text-soft); font-size: 0.9rem; }

/* image frame */
.figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}
.figure img { width: 100%; }
.figure figcaption {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
}

/* timeline / process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: #fff;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* profile block */
.profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}
.profile .avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--bg-navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 3rem;
  font-weight: 800;
  overflow: hidden;
}

/* badges */
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.badge {
  background: var(--bg-navy-soft);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------------------------------------------------------------------- */
/* Experimental World listing / article                                   */
/* ---------------------------------------------------------------------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.article-card .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 2rem;
}
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-card .cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.article-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.article-card .excerpt { color: var(--text-soft); font-size: 0.9rem; flex: 1; }
.article-card .meta { font-size: 0.8rem; color: var(--text-soft); margin-top: 12px; }

.article-header { margin-bottom: 32px; }
.article-header .cat {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-body { max-width: 760px; }
.article-body h2 { margin-top: 40px; }
.article-body img { border-radius: var(--radius); margin: 24px 0; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }

.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; color: var(--navy); }
.back-link::before { content: "← "; }

/* ---------------------------------------------------------------------- */
/* Contact                                                                 */
/* ---------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}
.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-navy-soft); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.contact-item strong { display: block; margin-bottom: 2px; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 32px;
  margin-top: 0;
}
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer img.footer-logo { height: 26px; margin-bottom: 14px; }
.site-footer p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile .avatar { width: 140px; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 14px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .lang-switch { margin-left: 0; }
  .hero { padding: 64px 0 56px; }
}
