
/* ========================================
   CONTACT PAGE
======================================== */

.contact-page {
  width: 100%;
  background: var(--color-black);
  color: var(--color-white);
  overflow: hidden;
}

.contact-inner {
  width: 100%;
  max-width: var(--inner);
  margin: 0 auto;
 
}

/* ========================================
   CONTACT SUB VISUAL
======================================== */

.sub-contact {
  background-image: url('../images/sub_contact.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* 탭 메뉴 없는 Contact 페이지 하단 파란 라인 */

.contact-visual-line {
  width: 100%;
  height: 12px;
  background: var(--color-blue-nav);
}

/* ========================================
   LOCATION SECTION
======================================== */

.contact-location {
  padding: 85px 0 100px;
  background: var(--color-black);
}

/* SECTION TITLE */

.contact-section-title {
  margin: 0 0 45px;

  text-align: center;
  font-size: var(--font-visual);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

/* ========================================
   GOOGLE MAP
======================================== */

.contact-map {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 15px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 기존 이미지 지도를 사용할 경우 */

.contact-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   HEAD OFFICE
======================================== */

.contact-office {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;

  padding: 40px 0 45px;
}

.contact-office h4 {
  flex-shrink: 0;
  margin: 0;

  font-size: var(--font-title-md);
  font-weight: 600;
  line-height: 1.4;
}

.contact-office p {
  max-width: 750px;
  margin: 0;

  text-align: right;
  font-size: var(--font-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   CONTACT CARDS
======================================== */

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
}

/* CARD */

.contact-card {
  position: relative;
  display: flex;
  align-items: center;

  min-height: 230px;
  padding: 35px 40px;

  overflow: hidden;

  border: 1px solid rgba(50, 130, 210, 0.4);
  border-radius: 16px;

  background: linear-gradient(
    120deg,
    var(--color-blue-nav) 0%,
    var(--color-blue-panel) 65%,
    var(--color-blue-dark) 100%
  );
}

/* ========================================
   CARD CONTENT
======================================== */

.contact-card-content {
  position: relative;
  z-index: 2;
}

.contact-card-content h4 {
  margin: 0 0 25px;

  font-size: var(--font-title-sm);
  font-weight: 700;
  line-height: 1.4;
}

.contact-card-content dl {
  margin: 0;
}

.contact-card-content dl > div {
  margin-bottom: 20px;
}

.contact-card-content dl > div:last-child {
  margin-bottom: 0;
}

.contact-card-content dt {
  margin-bottom: 5px;

  font-size: var(--font-base);
  font-weight: 600;
}

.contact-card-content dd {
  margin: 0;

  font-size: var(--font-base);
  line-height: 1.5;
}

.contact-card-content dd a {
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-card-content dd a:hover {
  opacity: 0.7;
}

/* ========================================
   CARD ICON
======================================== */

.contact-card-icon {
  position: absolute;
  right: 30px;
  bottom: 25px;

  width: 110px;
  height: auto;
  object-fit: contain;

  pointer-events: none;
}

/* ========================================
   COMPANY RESOURCES
======================================== */

.contact-resources {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 320px;
  padding: 75px 30px;

  background-image:
    linear-gradient(
      rgba(0, 20, 45, 0.65),
      rgba(0, 20, 45, 0.65)
    ),
    url('../images/contact_resources_bg.png');

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.contact-resources-inner {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1000px;
  margin: 0 auto;

  text-align: center;
}

.contact-resources h3 {
  margin: 0 0 18px;

  font-size: var(--font-title-md);
  font-weight: 600;
  line-height: 1.4;
}

.contact-resources p {
  margin: 0 0 30px;

  font-size: var(--font-base);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   RESOURCES BUTTON
   시안 스타일 적용
======================================== */

.contact-resources-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0px;

  width: 230px;
  min-height: 48px;
  padding: 12px 22px;

  border: 1px solid var(--color-blue-nav);
  border-radius: 12px;

  background: linear-gradient(
    180deg,
    var(--color-blue-dark) 0%,
    var(--color-blue-nav) 100%
  );

  color: var(--color-white);
  font-size: var(--font-sm);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;

  box-sizing: border-box;
  cursor: pointer;

  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

/* HOVER */

.contact-resources-button:hover {
  background: linear-gradient(
    180deg,
    var(--color-blue-panel) 0%,
    var(--color-blue-nav) 100%
  );

  border-color: var(--color-blue-bright);
  color: var(--color-white);
}

/* 오른쪽 삼각형 화살표 */

.contact-resources-button .arrow {
  display: block;
  flex-shrink: 0;

  width: 0;
  height: 0;

  font-size: 0;
  line-height: 0;

  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 9px solid var(--color-white);
}

/* ========================================
   TABLET - 1024px
======================================== */

@media (max-width: 1024px) {

  .contact-location {
    padding: 70px 0 85px;
  }

  .contact-section-title {
    font-size: var(--font-title-md);
  }

  /* MAP */

  .contact-map {
    height: 350px;
  }

  /* HEAD OFFICE */

  .contact-office h4 {
    font-size: var(--font-title-sm);
  }

  .contact-office p {
    font-size: var(--font-sm);
  }

  /* CONTACT CARDS */

  .contact-card-grid {
    gap: 25px;
  }

  .contact-card {
    padding: 30px;
  }

  .contact-card-content h4 {
    font-size: var(--font-lg);
  }

  .contact-card-icon {
    width: 90px;
    right: 20px;
  }

}

/* ========================================
   MOBILE - 767px
======================================== */

@media (max-width: 767px) {

  .contact-inner {
    padding: 0 20px;
  }

  /* SUB VISUAL LINE */

  .contact-visual-line {
    height: 8px;
  }

  /* LOCATION */

  .contact-location {
    padding: 55px 0 65px;
  }

  .contact-section-title {
    margin-bottom: 30px;
    font-size: var(--font-title-sm);
  }

  /* GOOGLE MAP */

  .contact-map {
    height: 300px;
    border-radius: 10px;
  }

  /* HEAD OFFICE */

  .contact-office {
    flex-direction: column;
    gap: 15px;
    padding: 30px 0 35px;
  }

  .contact-office h4 {
    font-size: var(--font-lg);
  }

  .contact-office p {
    max-width: 100%;
    text-align: left;
    font-size: var(--font-sm);
  }

  .contact-office p br {
    display: none;
  }

  /* CONTACT CARDS */

  .contact-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card {
    min-height: 210px;
    padding: 28px;
    border-radius: 12px;
  }

  .contact-card-content h4 {
    margin-bottom: 20px;
    font-size: var(--font-lg);
  }

  .contact-card-content dt {
    font-size: var(--font-sm);
  }

  .contact-card-content dd {
    font-size: var(--font-sm);
  }

  .contact-card-icon {
    width: 85px;
    right: 20px;
    bottom: 20px;
  }

  /* COMPANY RESOURCES */

  .contact-resources {
    min-height: 280px;
    padding: 65px 20px;
  }

  .contact-resources h3 {
    font-size: var(--font-title-sm);
  }

  .contact-resources p {
    font-size: var(--font-sm);
  }

  /* RESOURCES BUTTON */

  .contact-resources-button {
    width: 210px;
    min-height: 46px;
    padding: 11px 20px;

    border-radius: 10px;
    font-size: var(--font-sm);
  }

  .contact-resources-button .arrow {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 8px;
  }

}

/* ========================================
   SMALL MOBILE - 380px
======================================== */

@media (max-width: 380px) {

  .contact-card {
    padding: 24px 20px;
  }

  .contact-card-icon {
    width: 70px;
    right: 12px;
  }

  .contact-card-content dd {
    font-size: var(--font-xs);
  }

  .contact-resources h3 {
    font-size: var(--font-lg);
  }

  .contact-resources-button {
    width: 200px;
    padding: 10px 18px;
  }

}

/* ========================================
   SUBPAGE SCROLL REVEAL (ADDED ONLY)
   Existing layout / hover / responsive styles preserved.
======================================== */
@media (prefers-reduced-motion: no-preference) {
  .cs-motion-ready .cs-reveal {
    opacity: 0;
    translate: 0 32px;
    transition: opacity .85s ease, translate .85s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--cs-delay, 0ms);
  }
  .cs-motion-ready .cs-reveal.cs-from-left { translate: -48px 0; }
  .cs-motion-ready .cs-reveal.cs-from-right { translate: 48px 0; }
  .cs-motion-ready .cs-reveal.cs-from-scale { scale: .96; transition-property: opacity, translate, scale; }
  .cs-motion-ready .cs-reveal.cs-visible {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cs-reveal { opacity: 1 !important; translate: none !important; scale: 1 !important; }
}
