/* ==========================================================================
   IPDA — 국방·안보 전문 컨설팅 그룹 홈페이지
   ========================================================================== */

:root {
  --navy: #0B1E36;
  --slate: #14203A;
  --steel: #2E6FA3;
  --bronze: #C9A45C;
  --bg: #F7F8FA;
  --white: #FFFFFF;

  --font-sans: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;

  --container-w: 1200px;
  --header-h: 76px;

  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 4px 16px rgba(11, 30, 54, 0.06);
  --shadow-card-hover: 0 14px 32px rgba(11, 30, 54, 0.14);

  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section[id],
main#top {
  scroll-margin-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

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

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--bronze);
  color: var(--navy);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 164, 92, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 30, 54, 0.15);
  backdrop-filter: blur(6px);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.is-scrolled {
  background: rgba(11, 30, 54, 0.96);
  box-shadow: 0 4px 20px rgba(11, 30, 54, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--white);
}

.main-nav ul {
  display: flex;
  gap: 36px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 8px 2px;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--bronze);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--slate) 65%, #0d2440 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-pattern {
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  text-align: center;
  max-width: 820px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

.hero-marquees {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 68px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 12px;
  will-change: transform;
}

.marquee-to-left .marquee-track {
  animation: marquee-scroll 34s linear infinite;
}

.marquee-to-right .marquee-track {
  animation: marquee-scroll 34s linear infinite reverse;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.marquee-to-right .marquee-item {
  background: rgba(201, 164, 92, 0.07);
  border-color: rgba(201, 164, 92, 0.22);
  color: rgba(255, 255, 255, 0.85);
}

.marquee-item-image {
  display: inline-flex;
  flex-shrink: 0;
  width: 320px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.marquee-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-to-left .marquee-track,
  .marquee-to-right .marquee-track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
  }
}

/* ---------- About ---------- */

.about {
  background: var(--white);
  padding: 110px 0;
}

.about-inner {
  max-width: 1040px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--slate);
  margin-bottom: 24px;
}

.about-fullname {
  display: inline;
  font-size: 0.7em;
  font-weight: 500;
  color: var(--steel);
  margin-left: 4px;
}

.about-mission {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--steel);
  border-left: 3px solid var(--bronze);
  padding-left: 18px;
}

/* ---------- Cards (services / why) ---------- */

.services {
  background: var(--bg);
  padding: 110px 0;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-body {
  padding: 28px 24px 32px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(46, 111, 163, 0.1);
  color: var(--steel);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card-desc {
  color: #445168;
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ---------- Why ---------- */

.why {
  background: linear-gradient(rgba(11, 30, 54, 0.92), rgba(11, 30, 54, 0.92)), url('images/why-bg.jpg') center/cover no-repeat;
  padding: 110px 0;
}

.why .section-title,
.why .section-eyebrow {
  color: var(--white);
}

.why .section-eyebrow {
  color: var(--bronze);
}

.why-grid {
  grid-template-columns: repeat(4, 1fr);
}

.why-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform var(--transition), background var(--transition);
}

.why-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
}

.card-icon-alt {
  background: rgba(201, 164, 92, 0.15);
  color: var(--bronze);
}

.why-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Process ---------- */

.process {
  background: var(--white);
  padding: 110px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border-top: 3px solid var(--bronze);
}

.step-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bronze);
  margin-bottom: 14px;
}

.step-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.step-en {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.step-desc {
  font-size: 0.94rem;
  color: #445168;
  line-height: 1.7;
}

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

.contact {
  background: var(--bg);
  padding: 110px 0;
}

.contact-inner .section-title {
  max-width: 640px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  margin-top: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--slate);
}

.contact-info-item .card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-info-item a:hover {
  color: var(--steel);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
}

.form-field input,
.form-field textarea {
  border: 1.5px solid #DDE2EA;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--slate);
  resize: vertical;
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--steel);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 6px;
}

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

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-brand .logo-footer {
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}

.footer-fullname {
  font-size: 0.82rem;
  color: var(--bronze);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--bronze);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ==========================================================================
   반응형
   ========================================================================== */

@media (max-width: 992px) {
  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 480px;
    margin: 0 auto;
  }

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

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

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(11, 30, 54, 0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .main-nav.is-open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link {
    display: block;
    padding: 16px 0;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .card-grid,
  .why-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .about,
  .services,
  .why,
  .process,
  .contact {
    padding: 72px 0;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-marquees {
    margin-top: 44px;
    gap: 10px;
  }

  .marquee-item {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
