/* =========================================
   기본 초기화
========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;

  font-family:
    Arial,
    "Noto Sans KR",
    sans-serif;

  background-color: #343447;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.section-container {
  width: min(1440px, 92%);
  margin: 0 auto;
}


/* =========================================
   상단 헤더
========================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background-color: #2f3039;
  border-bottom: 1px solid #5b5c66;
}

.header-inner {
  position: relative;

  width: min(1500px, 94%);
  min-height: 96px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* =========================================
   로고
========================================= */

.logo {
  flex-shrink: 0;

  display: flex;
  align-items: center;

  gap: 12px;
}

.logo-image {
  width: 58px;
  height: 58px;

  object-fit: contain;
  object-position: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: 3px;
}

.logo-text span {
  margin-top: 7px;
  font-size: 12px;
}


/* =========================================
   상단 메뉴
========================================= */

.navigation {
  display: flex;
  align-items: stretch;

  border: 1px solid #72727f;
}

.search-box {
  position: relative;
  display: flex;
}

.search-box input {
  width: 190px;
  min-height: 38px;

  padding: 8px 12px;

  border: 0;
  outline: 0;

  background-color: transparent;
  color: #ffffff;
}

.search-box input::placeholder {
  color: #dddddf;
}

.navigation > a,
.dropdown-button {
  min-width: 90px;
  min-height: 38px;

  padding: 10px 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-left: 1px solid #72727f;

  background-color: transparent;
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.navigation > a:hover,
.dropdown:hover .dropdown-button,
.dropdown.open .dropdown-button {
  background-color: #fbbd24;
  color: #252532;
}


/* =========================================
   검색 자동완성 목록
========================================= */

.search-suggestions {
  position: absolute;
  top: calc(100% + 1px);
  left: -1px;
  z-index: 2000;

  width: 300px;
  max-height: 380px;

  display: none;
  overflow-y: auto;

  border: 1px solid #72727f;
  background-color: #2f3039;

  box-shadow:
    0 14px 30px
    rgba(0, 0, 0, 0.32);
}

.search-suggestions.open {
  display: block;
}

.search-suggestion-item {
  width: 100%;
  min-height: 54px;

  padding: 9px 13px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  gap: 4px;

  border: 0;
  border-bottom: 1px solid #50515c;

  background-color: #2f3039;
  color: #ffffff;

  text-align: left;
  cursor: pointer;
}

.search-suggestion-item:last-child {
  border-bottom: 0;
}

.search-suggestion-item:hover,
.search-suggestion-item.selected {
  background-color: #fbbd24;
  color: #252532;
}

.search-suggestion-name {
  font-size: 14px;
  font-weight: 700;
}

.search-suggestion-category {
  font-size: 11px;
  opacity: 0.72;
}

.search-no-result {
  padding: 17px 14px;

  color: #d9d9dd;

  font-size: 13px;
  text-align: center;
}


/* =========================================
   제품 드롭다운
========================================= */

.dropdown {
  position: relative;
}

.dropdown-button {
  height: 100%;
}

.dropdown-arrow {
  margin-left: 7px;

  font-size: 11px;

  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;

  z-index: 1001;

  width: 180px;
  padding: 5px 0;

  display: none;

  border: 1px solid #72727f;

  background-color: #2f3039;

  box-shadow:
    0 12px 24px
    rgba(0, 0, 0, 0.25);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  width: 100%;
  min-height: 42px;

  padding: 11px 17px;

  display: flex;
  align-items: center;

  border-bottom: 1px solid #52535d;

  color: #ffffff;

  font-size: 13px;
  font-weight: 600;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.dropdown-menu a:last-child {
  border-bottom: 0;
}

.dropdown-menu a:hover {
  background-color: #fbbd24;
  color: #292a33;
}


/* =========================================
   모바일 메뉴 버튼
========================================= */

.mobile-menu-button {
  display: none;

  width: 44px;
  height: 44px;

  border: 1px solid #646570;

  background-color: transparent;
  color: #ffffff;

  font-size: 26px;
  line-height: 1;

  cursor: pointer;
}


/* =========================================
   메인 채석장 이미지
========================================= */

.hero {
  position: relative;

  width: 100%;
  height: clamp(420px, 38vw, 620px);

  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center 46%;
  background-repeat: no-repeat;

  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.13),
      rgba(25, 27, 47, 0.14)
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  width: min(1100px, 86%);
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  align-self: flex-start;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(65px, 9vw, 145px);

  line-height: 1;

  letter-spacing:
    clamp(6px, 1vw, 16px);

  color: #162265;

  text-shadow:
    2px 2px 0 #ffffff,
    5px 7px 10px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  align-self: flex-end;

  margin-top:
    clamp(75px, 9vw, 140px);

  margin-right: 3%;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(30px, 4vw, 62px);

  line-height: 1;

  letter-spacing:
    clamp(3px, 0.7vw, 9px);

  color: #111b68;

  text-shadow:
    2px 2px 0 #ffffff,
    4px 5px 8px rgba(0, 0, 0, 0.28);
}


/* =========================================
   노란색 구분선
========================================= */

.yellow-line {
  width: 100%;
  height: 24px;

  background-color: #fbbd24;
}


/* =========================================
   WELCOME
========================================= */

.welcome-section {
  width: 100%;

  padding-top: 55px;

  background-color: #3b3a55;
}

.welcome-section h2 {
  margin-bottom: 50px;

  text-align: center;

  color: #fbbd24;

  font-size:
    clamp(38px, 4vw, 58px);

  line-height: 1;

  letter-spacing:
    clamp(7px, 0.8vw, 13px);
}

.welcome-image {
  width: 100%;

  height:
    clamp(480px, 47vw, 740px);

  background-image:
    url("images/worker.jpeg");

  background-size: cover;
  background-position: center 54%;
  background-repeat: no-repeat;
}


/* =========================================
   제품 영역
========================================= */

.products-section {
  width: 100%;

  padding: 50px 0 65px;

  background-color: #3b3a55;
}

.products-section h2 {
  margin-bottom: 40px;

  text-align: center;
  font-size: 24px;
}

.product-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 12px;
}

.product-card {
  min-width: 0;
  min-height: 230px;

  display: grid;

  grid-template-columns:
    1.12fr 1fr;

  background-color: #5b5a7a;

  overflow: hidden;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 15px 30px
    rgba(0, 0, 0, 0.22);
}

.product-image {
  width: 100%;
  min-height: 230px;

  display: block;

  background-color: #4d4c68;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transition: transform 0.35s ease;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-card:nth-child(1) .product-image {
  background-image:
    url("images/product1.png");
}

.product-card:nth-child(2) .product-image {
  background-image:
    url("images/product2.png");
}

.product-card:nth-child(3) .product-image {
  background-image:
    url("images/product3.png");
}

.product-card:nth-child(4) .product-image {
  background-image:
    url("images/product4.png");
}

.product-info {
  position: relative;
  z-index: 2;

  padding: 22px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  background-color: #5b5a7a;
}

.product-info small {
  font-size: 12px;
  font-weight: 700;
}

.product-info h3 {
  margin: 12px 0 28px;

  font-size: 17px;
  line-height: 1.35;

  word-break: keep-all;
}

.product-button {
  padding: 10px 16px;

  background-color: #fbbd24;
  color: #49463c;

  font-size: 11px;
  white-space: nowrap;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.product-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}


/* =========================================
   연락처
========================================= */

.contact-section {
  width: 100%;

  padding: 65px 0 80px;

  background-color: #343447;
}

.contact-section h2 {
  margin-bottom: 50px;

  text-align: center;

  font-size: 42px;
  font-weight: 400;
}

.contact-grid {
  width: min(800px, 100%);

  margin: 0 auto 50px;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 60px;
}

.contact-grid h3 {
  margin-bottom: 18px;

  font-size: 17px;
  font-weight: 500;
}

.contact-grid p {
  font-size: 13px;
  line-height: 1.9;
}

.map-placeholder {
  width: min(900px, 100%);
  height: 340px;

  margin: 55px auto 0;

  padding: 0;

  overflow: hidden;

  border: 6px solid #ffffff;

  background-color: #ececef;
  color: #555563;
}

.map-placeholder iframe {
  display: block;

  width: 100%;
  height: 100%;

  border: 0;
}


/* =========================================
   푸터
========================================= */

.footer {
  width: 100%;

  padding: 45px 0 20px;

  background-color: #2f3039;
}

.footer-container {
  width: min(1100px, 90%);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 80px;
}

.footer h3 {
  margin-bottom: 18px;
  font-size: 15px;
}

.footer p {
  margin-bottom: 9px;

  font-size: 13px;
  line-height: 1.5;
}

.footer a:hover {
  color: #fbbd24;
}

.copyright {
  margin-top: 45px;

  text-align: center;
  opacity: 0.6;
}


/* =========================================
   태블릿
========================================= */

@media (max-width: 1100px) {

  html {
    scroll-padding-top: 80px;
  }

  .header-inner {
    min-height: 80px;
  }

  .mobile-menu-button {
    display: block;
  }

  .navigation {
    position: absolute;

    top: 80px;
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;

    border: 1px solid #555661;

    background-color: #2f3039;

    box-shadow:
      0 15px 25px
      rgba(0, 0, 0, 0.25);
  }

  .navigation.active {
    display: flex;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
    min-height: 50px;

    border-bottom:
      1px solid #555661;
  }

  .search-suggestions {
    top: 50px;
    left: 0;

    width: 100%;
    max-height: 320px;
  }

  .navigation > a,
  .dropdown-button {
    width: 100%;
    min-height: 50px;

    justify-content: flex-start;

    border: 0;
    border-bottom:
      1px solid #555661;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu {
    position: static;

    width: 100%;
    padding: 0;

    border: 0;

    background-color: #252630;

    box-shadow: none;
  }

  .dropdown-menu a {
    min-height: 47px;

    padding-left: 35px;

    border-bottom:
      1px solid #474852;
  }

  .product-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 16px;
  }

  .hero-content {
    width: 88%;
  }

}


/* =========================================
   모바일
========================================= */

@media (max-width: 700px) {

  .header-inner {
    width: 90%;
  }

  .logo-image {
    width: 48px;
    height: 48px;
  }

  .logo-text strong {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .hero {
    height: 390px;
    background-position: center center;
  }

  .hero-content h1 {
    font-size:
      clamp(50px, 17vw, 82px);

    letter-spacing: 4px;
  }

  .hero-content p {
    margin-top: 80px;
    margin-right: 0;

    font-size:
      clamp(25px, 8vw, 42px);

    letter-spacing: 3px;
  }

  .yellow-line {
    height: 16px;
  }

  .welcome-section {
    padding-top: 42px;
  }

  .welcome-section h2 {
    margin-bottom: 38px;
  }

  .welcome-image {
    height: 430px;

    background-position:
      center center;
  }

  .product-grid,
  .contact-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-image {
    min-height: 300px;
  }

  .product-info {
    min-height: 180px;

    align-items: center;
    text-align: center;
  }

  .product-info h3 {
    margin-bottom: 22px;
  }

  .contact-grid {
    gap: 30px;
    text-align: center;
  }

  .map-placeholder {
    height: 280px;
    margin-top: 35px;
    border-width: 4px;
  }

  .footer-container {
    gap: 35px;
    text-align: center;
  }

}