/* Infrastructure Services — soft teal minimal theme */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f8f6;
  --bg-mist: #e8f2ee;
  --ink: #15241f;
  --ink-muted: #5a6e66;
  --accent: #1e5a4e;
  --accent-soft: #7bc4a8;
  --accent-deep: #0f3d34;
  --line: #d5e4de;
  --danger: #b42318;
  --ok: #1a7a4c;
  --radius: 4px;
  --shadow: 0 18px 40px rgba(21, 36, 31, 0.07);
  --font-display: "Noto Serif KR", "Georgia", serif;
  --font-body: "Noto Sans KR", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.02rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

#main {
  flex: 1;
}

/* Header */

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

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.35rem;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-soft) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -5px;
}

.nav-toggle-bar::after {
  top: 5px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--space) 1.1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.55rem;
  }
}

/* Layout helpers */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-mist {
  background:
    radial-gradient(circle at 12% 20%, rgba(123, 196, 168, 0.18), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(30, 90, 78, 0.08), transparent 36%),
    var(--bg);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-muted);
  max-width: 40rem;
}

.muted {
  color: var(--ink-muted);
}

.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 880px) {
  .split-2 {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split-2-rev {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split-2-rev > :first-child {
    order: 2;
  }
}

.stack > * + * {
  margin-top: 1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — brand-led full-bleed visual */

.hero-home {
  position: relative;
  min-height: min(92vh, 780px);
  display: grid;
  align-items: end;
  color: #f7fffb;
  overflow: hidden;
  isolation: isolate;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 61, 52, 0.35) 0%, rgba(15, 61, 52, 0.78) 62%, rgba(15, 61, 52, 0.92) 100%),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  z-index: -1;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.hero-home-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 7rem) var(--space) clamp(3rem, 8vw, 5rem);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  animation: riseIn 0.8s ease both;
}

.hero-home h1 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  max-width: 22ch;
  color: rgba(244, 251, 248, 0.95);
  margin-bottom: 0.85rem;
  animation: riseIn 0.8s ease 0.12s both;
}

.hero-home .hero-text {
  max-width: 34rem;
  color: rgba(244, 251, 248, 0.82);
  animation: riseIn 0.8s ease 0.22s both;
}

.hero-home .btn-primary {
  background: #f4fbf8;
  color: var(--accent-deep);
  animation: riseIn 0.8s ease 0.32s both;
}

.hero-home .btn-primary:hover {
  background: #fff;
  color: var(--accent-deep);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero {
  padding: clamp(2.8rem, 7vw, 4.5rem) 0 2rem;
  background:
    linear-gradient(180deg, var(--bg-mist), transparent 70%);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: 18ch;
}

/* Trust strip */

.trust-strip {
  display: grid;
  gap: 1rem;
  padding: 1.6rem 0;
  border-block: 1px solid var(--line);
}

@media (min-width: 720px) {
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--accent);
}

.trust-item span {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* Cards / media */

.media-frame {
  overflow: hidden;
  border-radius: 0.6rem;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.media-frame:hover img {
  transform: scale(1.03);
}

.course-grid,
.blog-grid,
.price-grid,
.review-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 720px) {
  .course-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .course-grid.three,
  .blog-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-card,
.blog-card,
.price-card,
.review-card,
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover,
.blog-card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
}

.course-card img,
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.card-body h3 a {
  text-decoration: none;
  color: inherit;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.55rem;
}

/* Benefits list */

.benefit-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .benefit-list {
    grid-template-columns: 1fr 1fr;
  }
}

.benefit {
  padding: 1.2rem 1.25rem;
  border-left: 3px solid var(--accent-soft);
  background: rgba(255, 255, 255, 0.7);
}

.benefit h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* Quotes */

.quote {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.quote:last-child {
  border-bottom: 1px solid var(--line);
}

.quote p {
  font-size: 1.05rem;
}

.quote footer {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

/* Pricing */

.price-card {
  padding: 1.5rem 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(123, 196, 168, 0.12), transparent 40%),
    #fff;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-deep);
}

.price-amount span {
  font-size: 0.95rem;
  color: var(--ink-muted);
  font-family: var(--font-body);
}

.price-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.4rem 0 1rem;
  flex: 1;
}

.price-card li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.price-card li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent-soft);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.note-box {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* Forms */

.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.94rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(30, 90, 78, 0.25);
  border-color: var(--accent);
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 400;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-ok {
  display: block;
  background: #e8f6ee;
  color: var(--ok);
  border: 1px solid #b7e0c6;
}

.form-status.is-err {
  display: block;
  background: #fef3f2;
  color: var(--danger);
  border: 1px solid #f3c4bf;
}

.contact-panel {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .contact-panel {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.contact-aside {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 1.4rem 1.3rem;
}

.contact-aside address {
  font-style: normal;
  margin-bottom: 1rem;
}

/* Legal / prose */

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.4rem;
  font-size: 1.1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1em 1.2rem;
  padding: 0;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  font-weight: 600;
}

/* Modules / FAQ */

.module-list {
  display: grid;
  gap: 0.85rem;
}

.module {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: #fff;
}

.module h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin-top: 0.6rem;
  color: var(--ink-muted);
}

.instructor {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

@media (min-width: 640px) {
  .instructor {
    grid-template-columns: 140px 1fr;
  }
}

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 420px;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: riseIn 0.35s ease both;
}

.cookie-banner p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inline-error {
  margin: 0.75rem var(--space);
  padding: 0.75rem 1rem;
  background: #fef3f2;
  color: var(--danger);
  border: 1px solid #f3c4bf;
  border-radius: var(--radius);
}

/* Footer */

.site-footer {
  margin-top: auto;
  background: var(--accent-deep);
  color: rgba(244, 251, 248, 0.88);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.footer-tag {
  color: rgba(244, 251, 248, 0.7);
  max-width: 28rem;
  margin-bottom: 2rem;
}

.footer-cols {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

.site-footer h2 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.7rem;
}

.site-footer a {
  color: rgba(244, 251, 248, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  display: grid;
  gap: 0.4rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(244, 251, 248, 0.55);
  margin: 0;
}

/* 404 */

.error-page {
  text-align: center;
  padding: clamp(5rem, 14vw, 8rem) var(--space);
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  color: var(--accent);
  margin-bottom: 0.2rem;
}

/* Misc */

.tag {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-mist);
  color: var(--accent);
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.cta-band {
  background: var(--accent);
  color: #f4fbf8;
  padding: clamp(2.5rem, 6vw, 3.8rem) 0;
}

.cta-band h2 {
  color: #fff;
  max-width: 18ch;
}

.cta-band p {
  color: rgba(244, 251, 248, 0.82);
  max-width: 36rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--accent-deep);
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0.55rem;
  margin: 1.5rem 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.list-check {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.5rem;
}

.list-check li {
  padding-left: 1.25rem;
  position: relative;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent-soft);
  border-radius: 1px;
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
