/*


--- 01 TYPOGRAPHY  SYSTEM

- Font sizes (px):
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font wiehgts:
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700

- Line heights
Default: 1
Small: 1.05
Paragraph default: 1.6

- SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

-- 02 COLORS

- Primary: #e67e22
- Tints: #fdf2e9
- Shades: #cf711f
- Accents:
- Greys
#555
#333

--- 05 SHADOWS

--- 06 BORDER-RADIUS

Default: 9px

--- 07 WHITE


*/

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

html {
    font-size: 62.5%;
}

body {
    font-family: "Rubik", sans-serif;
    line-height: 1;
    font-weight: 400;
    color: #555;
    /*background-color: #fdf2e9;*/
    background-color: #ffffff;
}


/**************************/
/* GENERAL REUSABLE COMPONENTS */
/**************************/

.headingprimary {
    font-size: 5.2rem;
    font-weight: 700;
    line-height: 1.05;
    color: #333;
    letter-spacing: -0.5px;
    margin-bottom: 3.2rem;
}

.btn:link,
.btn:visited {
    display: inline-block;

    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    padding: 1.6rem 3.2rem;
    border-radius: 9px;

    /* Put transition on original "state" */
    transition: background-color 0.3s;
}

.btn--full:link,
.btn--full:visited {
    background-color: #e67e22;
    color: #fff;
}

.btn--full:hover,
.btn--full:active {
    background-color: #cf711f;
}

.btn--outline:link,
.btn--outline:visited {
    background-color: #fff;
    color: #555;
}

.btn--outline:hover,
.btn--outline:active {
    background-color: #fdf2e9;
    box-shadow: inset 0 0 0 3px #fff;
}

.margin-right-sm {
    margin-right: 1.6rem !important;
}

/**************************/
/* HEADER */
/**************************/

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fdf2e9;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    /* Because we want head to be sticky later */
    height: 6rem;
    padding: 0 4.8rem
}

.logo {
    height: 2.2rem;
}


/**************************/
/* NAVIGATION */
/**************************/
.main-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3.2rem;
    
}

.main-nav-link:link,
.main-nav-link:visited {
    display: inline-block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.8rem;
    transition: all 0.3s;
}

.main-nav-link:hover,
.main-nav-link:active {
    color: #cf711f;
}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
    padding: 1.2rem 2.4rem;
    border-radius: 9px;
    color: #fff;
    background-color: #e67e22;

}

.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
    background-color: #cf711f;

}

/* MOBILE */
/*
.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;

  display: none;
}
*/
.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;
  color: #333;
}
/*
.icon-mobile-nav[name="close-outline"] {
  display: none;
}
*/
/* STICKY_NAVIGATION */
/*
.sticky {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 6rem;
    padding-top: 0;
    padding-bottom: 0;
    background-color: rgba(255, 255, 255, 0.97);
    z-index: 999;
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
}
*/


.adsense-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.adsense-banner:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 모달 창 스타일링 */

.modal-container {
    display: none; /* 초기에 숨김 */
    position: fixed; /* 화면에 고정 */
    z-index: 1000; /* 모달보다 높지만 다른 요소보다는 낮게 설정 */
    left: 0;
    top: 0;
    width: 100%; /* 전체 화면을 덮음 */
    height: 100%; /* 전체 화면을 덮음 */
    background-color: rgba(0, 0, 0, 0.4); /* 투명 검은색 배경 */
    overflow: auto; /* 필요한 경우 스크롤 가능 */
}

.modal {
    display: block; /* 초기에 숨김 */
    position: fixed;
    z-index: 999;
    left: 50%;
    top: 20%;
    transform: translate(-50%, -20%);
    width: 45%; /* Could be more or less, depending on screen size */
    height: auto; /* Could be more or less, depending on content */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /*width: 100%;
    height: 100%;*/
    overflow: auto;
    background-color: #fdf2e9;
}



.modal-content {
    /*background-color: #fefefe;*/
    margin: 0; /* 전체 화면에 맞추기 위해 margin 0 */
    border: none; /* 테두리 제거 */
    position: relative;
}

.modal-content h3 {
    font-size: 2.2rem; /* 제목 글씨 크기 늘리기 */
}

.modal-content p {
    font-size: 1.6rem; /* 본문 글씨 크기 늘리기 */
}

.modal-content label {
    font-size: 1.6rem; /* 라벨 글씨 크기 늘리기 */
}

.modal-content input,
.modal-content textarea,
.modal-content button {
    font-size: 1.6rem; /* 입력 필드 글씨 크기 늘리기 */
}

.modal-content .send-button {
    background-color: #e67e22;
    color: #fff;
    font-size: 1.6rem;
}
.modal-content .send-button:hover {
    background-color: #cf711f;
}

.close {
    color: #aaa;
    float: right;
    font-size: 1.8rem;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
    
}

/**************************/
/* BELOW 1200px (Landscape Tablets) */
/**************************/
@media (max-width: 75em) {
    .adsense-banner .adsense_responsive {
        width: 728px;
        height: 90px;
    }

    .modal {
        width: 60%;
    }
}

/**************************/
/* BELOW 800px (Adsense Mid) */
/**************************/
@media (max-width: 50em) {
    .adsense-banner .adsense_responsive {
        width: 468px;
        height: 60px;
    }
    
    .modal {
        width: 70%;
    }
}

/**************************/
/* BELOW 544px (Phones) */
/**************************/
@media (max-width: 34em) {
    .adsense-banner .adsense_responsive {
        width: 320px;
        height: 100px;
    }
    
    .modal {
        width: 90%;
    }
}

/**************************/
/* FOOTER */
/**************************/

.footer {
    padding: 9.6rem 0;
    border-top: 1px solid #eeee;
}

.grid-footer {
    grid-template-columns: 1.5fr 1.5fr 1fr;
}

.logo-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: block;
    margin-bottom: 3.2rem;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 2.4rem;
}

.copyright {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #767676;
    margin-top:auto;
}

.footer-heading {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 4rem;
}

.contacts {
    font-style: normal;
    font-size: 1.6rem;
    line-height: 1.6;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.footer-link:link,
.footer-link:visited {
    text-decoration: none;
    font-size: 1.6rem;
    color: #767676;
    transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
    color: #555;
}

/**************************/
/* GRIDS */
/**************************/




.grid {
    display: grid;
    gap: 9.6rem;
}

.grid--2--cols {
    grid-template-columns: repeat(2, 1fr);
}
.grid--3--cols {
    grid-template-columns: repeat(3, 1fr);
}
.grid--4--cols {
    grid-template-columns: repeat(4, 1fr);
}
.grid--5--cols {
    grid-template-columns: repeat(5, 1fr);
}

/* 다크 모드 스타일 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #f5f5f5;
    }

    .header {
        background-color: #1e1e1e;
    }

    .logo {
        filter: invert(1) brightness(0.9);
    }

    .main-nav-link:link,
    .main-nav-link:visited {
        color: #f5f5f5;
    }

    .main-nav-link:hover,
    .main-nav-link:active {
        color: #e67e22;
    }

    .headingprimary {
        color: #f5f5f5;
    }

    .modal {
        background-color: #1e1e1e;
    }

    .modal-content h3,
    .modal-content label {
        color: #f5f5f5;
    }

    .modal-content input,
    .modal-content textarea {
        background-color: #2d2d2d;
        color: #f5f5f5;
        border-color: #444;
    }

    .modal-content .send-button {
        background-color: #e67e22;
    }

    .btn--outline:link,
    .btn--outline:visited {
        background-color: #1e1e1e;
        color: #f5f5f5;
    }

    .btn--outline:hover,
    .btn--outline:active {
        background-color: #2d2d2d;
    }

    .adsense-banner:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
}



