/* 
  초보자를 위한 CSS 주석 설명 
  전체 요소에 대한 기본 여백 및 크기 기준 설정
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
li {
    list-style: none;
    /* 리스트 앞의 기본 점(점 기호) 없애기 */
}

/* 화면 중앙에 콘텐츠를 모아주는 공통 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   1. 네비게이션 바 (공유해주신 상단 메뉴)
   ========================================= */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f1f1;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 네비게이션 바 내부 고정폭 컨테이너 (Tailwind와의 충돌 방지 및 일관성 확보) */
.nav-inner {
    max-width: 1300px;
    /* 메인 컨텐츠와 일치시키거나 살짝 넓게 설정 */
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
}

/* 정중앙 로고 디자인 (G1tlp) 좌측으로 변경 */
.center-logo {
    display: flex;
    align-items: center;
    margin-right: auto;
    /* 로고를 좌측으로 붙이고 남은 공간을 우측 메뉴로 밉니다. */
}

.logo-text-g1tlp {
    font-size: 3rem;
    /* 첨부해주신 이미지에 맞춘 두껍고 큰 폰트 비율 */
    font-weight: 800;
    color: #444444;
    /* 이미지와 비슷한 짙은 회색 */
    letter-spacing: -1.5px;
}

/* 상단 메뉴 리스트 */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* 메뉴 이름이 '로그아/웃'처럼 단어 중간에서 끊기지 않게 */
.nav-links li {
    white-space: nowrap;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #555555;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active-brand {
    color: #9acb9b;
    /* 마우스 올렸을 때 초록색으로 변함 */
}

.nav-links a.active-staff.color-admin { color: #ef4444; }
.nav-links a.active-staff.color-manager { color: #9333ea; }
.user-welcome { font-size: 0.9rem; color: #555; display: flex; align-items: center; }
.role-badge { padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; margin-right: 5px; color: white; display: inline-block; }
.role-badge.admin { background-color: #ef4444; }
.role-badge.manager { background-color: #9333ea; }

/* 햄버거 버튼 기본 숨김 (PC 환경) */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    padding: 0;
    z-index: 1001; /* 메뉴 위로 */
}
.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: #444;
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

/* =========================================
   2. 히어로 섹션 (메인 배경 이미지 영역)
   ========================================= */
.hero-section {
    position: relative;
    /* 배경 이미지는 보유하고 계신 랜딩페이지 1.jpg 사용 */
    background-image: url('랜딩페이지 1.jpg');
    background-size: cover;
    background-position: center;
    /* 헤더(80px)를 제외한 나머지 화면을 채우도록 높이 설정 */
    height: calc(100vh - 80px);
    min-height: 600px;
    display: flex;
    align-items: center;
    /* 수직 중앙 정렬 */
}

/* 글씨가 사진 위에서도 잘 보이도록 왼쪽에 하얀 그라데이션을 깝니다. */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 안쪽 텍스트를 담는 박스 (그라데이션 위로 올라오도록 z-index 설정) */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    /* 수평 중앙 정렬 */
    text-align: center;
    /* 텍스트 중앙 정렬 */
}

/* 히어로 섹션 전체 중앙 정렬 클래스 */
.center-hero {
    justify-content: center;
}

.hero-content h1 {
    font-size: 4rem;
    /* 매우 큰 글씨체 */
    font-weight: 700;
    line-height: 1.2;
    color: #222222;
    margin-bottom: 25px;
    word-break: keep-all;
    /* 단어 단위로 줄바꿈 */
}

.hero-content h1 .highlight {
    color: #9acb9b;
    /* "영양 찾기" 부분만 초록색 포인트 */
}

.hero-content p {
    font-size: 1.15rem;
    color: #444444;
    margin-bottom: 40px;
    word-break: keep-all;
}

/* CTA 시작하기 버튼 */
.cta-button {
    display: inline-block;
    background-color: #9acb9b;
    /* 연초록 */
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 5px;
    /* 약간 둥근 네모 형태 */
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
    /* 부드러운 전환 효과 */
}

.cta-button:hover {
    background-color: #82b984;
    /* 올리면 조금 짙어짐 */
    transform: translateY(-3px);
    /* 위로 살짝 올라가는 애니메이션 */
}


/* =========================================
   3. 어떻게 진행되나요? 섹션 (3개의 카드)
   ========================================= */
.process-section {
    padding: 100px 0;
    background-color: #fdfdfd;
    /* 아주 연한 회백색 테마 */
}

/* 섹션 타이틀 중앙 정렬 및 밑줄 */
.section-header.center {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 15px;
}

.divider {
    width: 50px;
    height: 3px;
    background-color: #9acb9b;
    /* 작은 초록색 선선 */
    margin: 0 auto;
}

/* 3개의 카드를 1줄에 3개씩 나란히 (Grid) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 개별 프로세스 카드 디자인 */
.process-card {
    background-color: #fafafa;
    padding: 50px 30px;
    border-radius: 10px;
    text-align: center;
    /* 카드 안의 글자를 가운데 정렬 */
    border: 1px solid #f0f0f0;
    /* 매우 연한 회색 테두리 */
}

/* 동그란 숫자 뱃지 디자인 (01, 02, 03) */
.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    color: #9acb9b;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    /* 완전한 동그라미 */
    border: 2px solid #efefef;
    margin-bottom: 25px;
}

.process-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 15px;
}

.process-card p {
    font-size: 0.95rem;
    color: #666666;
    word-break: keep-all;
}


/* =========================================
   4. WHY CHOOSE US (왼쪽 사진 / 오른쪽 글)
   ========================================= */
.why-section {
    padding: 120px 0;
    background-color: #f6f7f6;
    /* 약간 다운된 베이지/회색 */
}

/* Flexbox로 사진과 글 부분을 50:50으로 나눕니다. */
.why-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* 왼쪽 이미지 구역 */
.why-image {
    flex: 1;
    height: 500px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    /* 이미지 중앙에 반투명한 박스를 두기 위해 안의 내용을 가운데 정렬합니다 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 사진 가운데 들어가는 투명한 글씨 박스 */
.inner-box {
    border: 1px solid #ffffff;
    padding: 40px 30px;
    text-align: center;
    color: #ffffff;
    background-color: rgba(154, 203, 155, 0.6);
    /* 초록빛 투명 박스 */
}

.inner-box h4 {
    font-size: 1.6rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
}

.inner-box p {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* 오른쪽 설명 구역 */
.why-content {
    flex: 1;
}

.subtitle {
    display: block;
    color: #9acb9b;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.why-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222222;
    line-height: 1.3;
    margin-bottom: 40px;
}

/* 체크리스트 형태의 설명 3가지 */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
    /* 항목 간의 간격 띄우기 */
}

.feature-list li {
    display: flex;
    gap: 20px;
    /* 초록색 점 아이콘과 글자 띄우기 */
}

/* 동그란 초록색 점 표시 */
.feature-icon {
    flex-shrink: 0;
    /* 크기가 작아지지 않게 방지 */
    width: 18px;
    height: 18px;
    background-color: #9acb9b;
    border-radius: 50%;
    /* 완전한 동그라미 */
    margin-top: 5px;
    /* 텍스트 높이와 맞추기 위함 */
}

.feature-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 0.95rem;
    color: #666666;
    word-break: keep-all;
}


/* =========================================
   5. 푸터 & 뉴스레터 (어두운 하단부)
   ========================================= */
.footer {
    background-color: #2E3A2F;
    /* 어두운 올리브그린/블랙 계열 */
    color: #ffffff;
}

/* 뉴스레터 영역 */
.newsletter-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* 하단과 구분선 */
    padding: 80px 0;
}

.newsletter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* 창이 좁아지면 아래로 내려가게 */
    gap: 40px;
}

.newsletter-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.newsletter-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 이메일 입력 폼 */
.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 450px;
    gap: 10px;
}

.email-input {
    flex: 1;
    /* 남은 버튼 옆 공간을 꽉 채움 */
    padding: 15px 20px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* 짙은 배경에 어울리는 투명한 입력창 */
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* 입력시 테두리 색상 강조 */
.email-input:focus {
    outline: none;
    border-color: #9acb9b;
}

.subscribe-button {
    padding: 15px 30px;
    background-color: #9acb9b;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-button:hover {
    background-color: #82b984;
}

/* 푸터 제일 아랫부분 (카피라이트, 링크 모음) */
.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.white-logo .logo-text-g1tlp {
    color: #ffffff;
    /* 하단은 글씨를 하얗게 */
    font-size: 2rem;
    /* 푸터 로고는 헤더보다 약간 작게 조절 */
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

/* 이용약관 등 링크 */
.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #9acb9b;
}


/* =========================================
   모바일 최적화 반응형 디자인
   ========================================= */

@media (max-width: 992px) {

    /* 과정 설명 3칸을 2칸으로, 그담 1칸으로 조절 */
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 왜 우리를 골라야하는지 사진과 글 위아래로 떨어뜨림 */
    .why-container {
        flex-direction: column;
    }

    .why-image {
        width: 100%;
        height: 400px;
    }
}

/* =========================================
   모바일·태블릿 메뉴 (960px 이하: 햄버거)
   관리자·매니저 메뉴는 항목이 많아 905px까지 한 줄에 안 들어가서, 768px이 아니라 960px부터 햄버거로 바꾼다
   ========================================= */
@media (max-width: 960px) {
    .mobile-menu-btn {
        display: flex;
    }

    /* 상단 메뉴를 화면 전체를 덮는 슬라이드 메뉴로 */
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh; /* 휴대폰 주소창 높이를 뺀 실제 화면 높이 (지원하는 브라우저) */
        overflow-y: auto;
        padding: 90px 20px 40px;
        background-color: #ffffff; /* 반투명이면 뒤 화면 글자가 비쳐 보여서 불투명으로 */
        transition: right 0.4s ease, visibility 0s linear 0.4s; /* 닫힐 때는 미끄러져 나간 뒤 숨김 */
        z-index: 1000;
        gap: 28px;
        visibility: hidden; /* 닫힌 메뉴의 링크에 Tab 키로 들어가지 않게 */
    }

    .nav-links.show {
        right: 0;
        visibility: visible;
        transition: right 0.4s ease, visibility 0s;
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    .user-welcome {
        font-size: 1.1rem;
    }

    /* X (닫기) 버튼 애니메이션 */
    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg);
    }
    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg);
    }
}

/* 메뉴가 열린 동안 뒤 화면이 스크롤되지 않게 */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {

    /* 폰트 줄이기 */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* 히어로섹션 그라데이션 필터 진하게 만들어서 글씨 잘보이게 */
    .hero-section::before {
        background: rgba(255, 255, 255, 0.85);
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    /* 뉴스레터 입력창 상하로 배치 */
    .newsletter-container,
    .footer-bottom-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    /* 모바일에서 섹션 상하 여백(padding) 줄이기 */
    .process-section {
        padding: 60px 0;
    }
    
    .why-section {
        padding: 60px 0;
    }

    .why-container {
        gap: 40px;
    }

    .why-content h2 {
        font-size: 1.8rem;
    }

    .newsletter-section {
        padding: 50px 0;
    }

    /* CTA 버튼 글씨 크기와 상하 여백 조절 */
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}