/* ===
AI Future Partners - Style Starter Kit
=== */

/* === 1. 글로벌 설정 및 폰트 === */
:root {
    /* 대표 색상 (확정안) */
    --color-primary: #0A2B5C; /* AFP Deep Blue */
    --color-accent: #00B4D8;  /* AFP Future Cyan */
    
    /* 중립색 (확정안) */
    --color-text: #333333;
    --color-text-light: #777777;
    --color-bg-white: #FFFFFF;
    --color-bg-gray: #E8EAED;
    --color-border: #EEEEEE;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for sticky navbar height */
}

body {
    /* 대표 폰트 (확정안) */
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-gray {
    background-color: var(--color-bg-gray);
}

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--color-primary); /* H1, H2, H3 색상을 대표 남색으로 */
}

h1 {
    font-size: 3rem; /* 48px */
    font-weight: 800; /* ExtraBold */
}

h2 {
    font-size: 2.25rem; /* 36px */
    font-weight: 700; /* Bold */
    text-align: center;
}

h3 {
    font-size: 1.5rem; /* 24px */
    font-weight: 700; /* Bold */
}

p {
    font-size: 1rem; /* 16px */
    font-weight: 400; /* Regular */
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--color-accent);
}

/* === 2. 버튼 스타일 === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700; /* Bold */
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-primary {
    background-color: var(--color-accent); /* 대표 청록색 */
    color: var(--color-bg-white);
}
.btn-primary:hover {
    opacity: 0.8;
}

.btn-secondary {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary); /* 대표 남색 테두리 */
}
.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.btn-primary-outline {
    display: table;
    margin: 30px auto 0 auto;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-primary-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.button-group {
    margin-top: 30px;
}

/* === 3. 네비게이션 (GNB) === */
.navbar {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    height: 32px;
    width: auto;
    transform: translateY(-1px);
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}
.nav-menu {
    list-style: none;
    display: flex;
}
.nav-menu li {
    margin-left: 30px;
}
.nav-menu a {
    color: var(--color-text);
    font-weight: 700;
    font-size: 1rem;
}
.nav-menu a.active, .nav-menu a:hover {
    color: var(--color-accent);
}

/* Hamburger menu (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* === 4. Hero 섹션 (1) === */
.hero {
    background-color: var(--color-bg-gray);
    padding: 100px 0;
    text-align: center;
}
.hero h1 {
    margin-bottom: 25px;
}
.hero h2 {
    font-size: 1.25rem; /* 20px */
    font-weight: 400; /* Regular */
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* === 5. 섹션별 그리드 (2, 3, 4, 5) === */
.problem-grid, .why-us-grid, .insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.problem-card, .why-us-card, .service-card, .insight-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
}
.problem-card:hover, .why-us-card:hover, .service-card:hover, .insight-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transform: translateY(-5px);
}
.why-us-grid h3 { color: var(--color-accent); } /* 'Why Us'의 소제목은 강조색 */
.insight-card span {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.insight-card h4 {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 700;
}
.service-card a {
    font-weight: 700;
}


/* === 6. Final CTA & Footer (6, 7) === */
.cta {
    background-color: var(--color-primary);
    text-align: center;
}
.cta h2, .cta p {
    color: var(--color-bg-white);
}
.cta .btn-secondary { /* CTA의 2차 버튼은 반전 */
    background-color: transparent;
    border-color: var(--color-bg-white);
    color: var(--color-bg-white);
}
.cta .btn-secondary:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
}

/* Tally Form Embed */
.tally-form-container {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: var(--color-bg-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.tally-form-container iframe {
    border-radius: 5px;
}

.footer {
    background-color: #222;
    color: var(--color-text-light);
    padding: 40px 0;
    text-align: center;
}
.footer .logo-text {
    color: var(--color-bg-white);
}
.footer p {
    font-size: 0.875rem;
    margin-bottom: 5px;
}

/* ===
    7. '팀 소개' 페이지 전용 스타일
=== */

/* '팀 소개' 페이지의 상단 Hero */
.page-hero {
    background-color: var(--color-primary); /* 대표 남색 배경 */
    padding: 60px 0;
    text-align: center;
}
.page-hero h1 {
    color: var(--color-bg-white);
    margin-bottom: 10px;
}
.page-hero h2 {
    color: var(--color-accent); /* 대표 청록색 */
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0;
}

/* '팀 소개' 페이지의 인트로 섹션 */
.team-intro .section-subtitle,
.value-proposition .section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

/* '창업 파트너' 2단 그리드 */
.founder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.founder-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    text-align: left;
}

/* 프로필 사진 임시 영역 */
.img-placeholder {
    width: 100%;
    height: 250px;
    background-color: var(--color-border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-weight: 700;
    margin-bottom: 25px;
}

.founder-card h3 {
    font-size: 1.75rem; /* 28px */
    color: var(--color-primary);
}
.founder-card h4 {
    font-size: 1.1rem; /* 18px */
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 20px;
}
.profile-details {
    list-style: none;
    padding-left: 0;
}
.profile-details li {
    font-size: 0.95rem; /* 15px */
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.5;
}
.profile-details li strong {
    color: var(--color-primary);
    margin-right: 5px;
}

/* === 8. Responsive Design === */

/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2.25rem; /* 36px */
    }

    h2 {
        font-size: 1.75rem; /* 28px */
    }

    h3 {
        font-size: 1.25rem; /* 20px */
    }

    /* Layout adjustments */
    .section-padding {
        padding: 60px 0;
    }

    .hero {
        padding: 60px 0;
    }

    /* Navigation with hamburger menu */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    /* Grid to 2 columns */
    .problem-grid, .why-us-grid, .insights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    /* Team page responsive */
    .page-hero {
        padding: 50px 0;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem; /* 28px */
    }

    h2 {
        font-size: 1.5rem; /* 24px */
    }

    h3 {
        font-size: 1.125rem; /* 18px */
    }

    .hero h2 {
        font-size: 1rem; /* 16px */
    }

    /* Layout adjustments */
    .container {
        width: 95%;
    }

    .section-padding {
        padding: 40px 0;
    }

    .hero {
        padding: 40px 0;
    }

    /* Navigation with hamburger menu */
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo-img {
        height: 32px;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    /* Show hamburger button on mobile */
    .hamburger {
        display: flex;
    }

    /* Hide menu by default on mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    /* All grids to single column */
    .problem-grid, .why-us-grid, .service-grid, .insights-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }

    /* Cards padding */
    .problem-card, .why-us-card, .service-card, .insight-card {
        padding: 20px;
    }

    /* Buttons */
    .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }

    .btn-primary-outline {
        display: block;
        width: calc(100% - 40px);
        margin: 20px auto 0 auto;
    }

    .button-group {
        margin-top: 20px;
    }

    /* Footer */
    .footer p {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    /* Tally form responsive */
    .tally-form-container {
        padding: 20px;
        margin-top: 30px;
    }

    /* Team page responsive */
    .page-hero {
        padding: 40px 0;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero h2 {
        font-size: 1rem;
    }

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

    .founder-card h3 {
        font-size: 1.5rem;
    }

    .founder-card h4 {
        font-size: 1rem;
    }
}
