/* Analyticscloudbase — warehouse consulting theme */
:root {
  --color-bg: #e9eee9;
  --color-bg-deep: #d5ddd6;
  --color-surface: #f7f5ef;
  --color-ink: #1a2b26;
  --color-muted: #4f5f58;
  --color-accent: #1e3d36;
  --color-accent-mid: #2f6b5a;
  --color-highlight: #c9a227;
  --color-border: #b7c2ba;
  --color-error: #8b2e2e;
  --color-success: #1e5c45;
  --font-display: "Hahmlet", "Noto Serif KR", serif;
  --font-body: "Noto Sans KR", sans-serif;
  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(26, 43, 38, 0.08);
  --max: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(47, 107, 90, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 162, 39, 0.1), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  min-height: 100vh;
}

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

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

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

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

h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

p {
  margin: 0 0 1rem;
}

.main {
  min-height: 60vh;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(247, 245, 239, 0.88);
  border-bottom: 1px solid rgba(183, 194, 186, 0.7);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-accent);
  text-decoration: none;
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
}

.site-header__toggle span {
  display: block;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

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

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .site-header__toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }

  .site-nav.is-open {
    max-height: 24rem;
  }

  .site-nav__list {
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.75rem;
  }

  .site-header__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .site-header__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

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

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

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

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

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

.btn--ghost:hover {
  background: rgba(30, 61, 54, 0.06);
  color: var(--color-accent);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: calc(100vh - var(--header-h));
  max-height: 52rem;
}

.hero__copy {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(247, 245, 239, 0.95), rgba(233, 238, 233, 0.9));
  animation: rise 0.8s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero__title {
  margin: 0 0 1rem;
  animation: rise 0.9s var(--ease) 0.15s both;
}

.hero__lead {
  color: var(--color-muted);
  font-size: 1.08rem;
  max-width: 34rem;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  animation: rise 0.9s var(--ease) 0.3s both;
}

.hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: slow-zoom 12s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slow-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: auto;
  }

  .hero__visual {
    min-height: 16rem;
    order: -1;
  }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-xl) 1.25rem;
}

.section--tight {
  padding-top: var(--space-lg);
}

.section__intro {
  max-width: 40rem;
  margin-bottom: var(--space-lg);
}

.section__more {
  margin-top: var(--space-md);
}

.section--cta {
  text-align: center;
  padding-bottom: var(--space-2xl);
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-xl) 1.25rem var(--space-md);
}

.page-hero--center {
  text-align: center;
  padding-block: var(--space-2xl);
}

.page-hero--article {
  padding-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-highlight);
  margin: 0 0 0.4rem;
}

.prose-width {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: var(--space-xl);
}

.meta {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.note {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Offer grid */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.offer-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 0.85rem;
  filter: saturate(0.92);
}

.offer-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.offer-card__title a {
  color: inherit;
  text-decoration: none;
}

.offer-card__text {
  color: var(--color-muted);
}

@media (max-width: 700px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
}

/* Band */
.band {
  max-width: none;
  background: var(--color-accent);
  color: #e8efe9;
  padding: var(--space-xl) 0;
}

.band a {
  color: #f3e7b0;
}

.band .btn--primary {
  background: var(--color-highlight);
  color: var(--color-ink);
}

.band__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}

.band__figure {
  margin: 0;
  overflow: hidden;
}

.band__figure img,
.band__figure--alone img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.band__figure--alone {
  margin: 0 0 var(--space-lg);
}

@media (max-width: 800px) {
  .band__grid {
    grid-template-columns: 1fr;
  }
}

/* Quotes */
.quote-stack {
  display: grid;
  gap: 1rem;
}

.quote-stack--wide {
  grid-template-columns: repeat(2, 1fr);
}

.quote-card {
  margin: 0;
  padding: 1.25rem 1.4rem;
  background: var(--color-surface);
  border-left: 3px solid var(--color-highlight);
  box-shadow: var(--shadow);
}

.quote-card p {
  font-size: 1.02rem;
}

.quote-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.quote-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-ink);
}

@media (max-width: 700px) {
  .quote-stack--wide {
    grid-template-columns: 1fr;
  }
}

/* Checklist & steps */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--color-accent-mid);
  border-radius: 1px;
}

.checklist--muted li::before {
  background: var(--color-border);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.steps__num {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: #f7f5ef;
  font-weight: 700;
  border-radius: var(--radius);
}

.steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

/* Services */
.service-list {
  display: grid;
  gap: var(--space-xl);
}

.service-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-lg);
  align-items: start;
}

.service-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 800px) {
  .service-row {
    grid-template-columns: 1fr;
  }
}

.detail__header {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-xl) 1.25rem var(--space-md);
}

.detail__lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 40rem;
}

.detail__hero {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  margin-top: 1.25rem;
}

.detail__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem var(--space-2xl);
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: var(--space-xl);
}

.fact-box {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.fact-box div {
  margin-bottom: 0.75rem;
}

.fact-box dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
}

.fact-box dd {
  margin: 0.15rem 0 0;
}

@media (max-width: 860px) {
  .detail__grid {
    grid-template-columns: 1fr;
  }
}

/* Pricing table */
.rate-table {
  display: grid;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin: 1rem 0 1.25rem;
}

.rate-table__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--color-surface);
}

.rate-table__row--head {
  background: var(--color-accent);
  color: #eef3ef;
  font-weight: 600;
}

@media (max-width: 600px) {
  .rate-table__row {
    grid-template-columns: 1fr;
  }
}

/* People / stories / posts */
.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.people__card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

@media (max-width: 650px) {
  .people {
    grid-template-columns: 1fr;
  }
}

.story-list {
  display: grid;
  gap: var(--space-lg);
}

.story-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border-top: 3px solid var(--color-accent-mid);
}

.story-card__summary {
  font-weight: 600;
}

.story-card__outcome {
  margin-bottom: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.post-card h2 {
  font-size: 1.25rem;
  margin: 0.35rem 0 0.5rem;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.post-detail__body {
  padding-bottom: var(--space-2xl);
}

@media (max-width: 700px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

.contact-layout__aside {
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  height: fit-content;
}

.form__field {
  margin-bottom: 1rem;
}

.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--color-accent-mid);
  outline-offset: 1px;
}

.form__error {
  color: var(--color-error);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.form__status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.form__status.is-success {
  background: rgba(30, 92, 69, 0.12);
  color: var(--color-success);
}

.form__status.is-error {
  background: rgba(139, 46, 46, 0.1);
  color: var(--color-error);
}

.form input.is-invalid,
.form textarea.is-invalid,
.form select.is-invalid {
  border-color: var(--color-error);
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Legal */
.legal h2 {
  margin-top: 1.75rem;
}

/* Footer */
.site-footer {
  background: #142722;
  color: #c9d4ce;
  padding: var(--space-xl) 1.25rem var(--space-lg);
  margin-top: auto;
}

.site-footer a {
  color: #dce6e0;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: var(--space-lg);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #f7f5ef;
  margin: 0 0 0.35rem;
}

.site-footer__tag {
  margin: 0;
  color: #9aaba3;
}

.site-footer__label {
  display: inline-block;
  min-width: 3.2rem;
  color: #9aaba3;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__copy {
  max-width: var(--max);
  margin: var(--space-lg) auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 212, 206, 0.2);
  font-size: 0.88rem;
  color: #8a9a93;
}

@media (max-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  animation: rise 0.45s var(--ease);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 0.92rem;
}

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

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