/* ===================================
   Firestone Investment Management
   Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #E53935;
    --primary-dark: #C62828;
    --secondary-color: #1565C0;
    --accent-yellow: #FFC107;
    --accent-green: #4CAF50;
    --accent-cyan: #00BCD4;
    --text-dark: #222222;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #F8F9FA;
    --bg-dark: #1a1a1a;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
}

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ===================================
   Header & Navigation
   =================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 50px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ===================================
   Page Hero Section
   =================================== */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-hero .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.page-hero .breadcrumb span {
    color: var(--primary-color);
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Section Dark */
.section-dark {
    background: var(--bg-dark);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

/* Section Gray */
.section-gray {
    background: var(--bg-light);
}

/* ===================================
   Company Overview Section
   =================================== */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.overview-item {
    display: flex;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.overview-item:nth-child(2n) {
    border-right: none;
}

.overview-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.overview-label {
    flex: 0 0 120px;
    font-weight: 600;
    color: var(--text-dark);
}

.overview-value {
    flex: 1;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===================================
   Vision Section
   =================================== */
.vision-statement {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2d2d2d 100%);
    border-radius: 20px;
    margin-bottom: 60px;
}

.vision-statement p {
    font-size: 1.6rem;
    line-height: 2;
    color: var(--white);
    margin-bottom: 0;
}

.vision-statement p strong {
    color: var(--primary-color);
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mission-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.mission-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
}

.mission-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.mission-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

/* ===================================
   CEO Message Section
   =================================== */
.ceo-message {
    display: flex;
    gap: 60px;
    align-items: center;
}

.ceo-content {
    flex: 1;
}

.ceo-content .greeting {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.8;
}

.ceo-content .message {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 30px;
}

.ceo-content .message p {
    margin-bottom: 20px;
}

.ceo-content .signature {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.ceo-content .signature span {
    color: var(--text-gray);
    font-weight: 400;
    margin-left: 10px;
}

/* ===================================
   Organization Chart
   =================================== */
.org-chart {
    max-width: 900px;
    margin: 0 auto;
}

.org-level {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.org-level::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 2px;
    height: 15px;
    background: var(--border-color);
}

.org-level:last-child::after {
    display: none;
}

.org-box {
    padding: 15px 40px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    min-width: 150px;
}

.org-box.ceo {
    background: var(--primary-color);
    color: var(--white);
}

.org-branches {
    display: flex;
    justify-content: center;
    gap: 60px;
    position: relative;
}

.org-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--border-color);
}

.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

.org-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 15px;
    background: var(--border-color);
}

.org-branch .org-box {
    border-color: var(--border-color);
}

.org-sub {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.org-sub .org-box {
    padding: 10px 25px;
    font-size: 0.9rem;
    border-color: #f0a000;
    background: #fff9e6;
}

/* ===================================
   Team Section
   =================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-member .photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
    overflow: hidden;
}

.team-member .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-member .position {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===================================
   Philosophy Section
   =================================== */
.philosophy-hero {
    text-align: center;
    padding: 80px 60px;
    background: var(--bg-dark);
    border-radius: 20px;
    margin-bottom: 60px;
}

.philosophy-hero h2 {
    font-size: 2rem;
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 0;
}

.philosophy-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 60px 0;
}

.philosophy-side {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.philosophy-item {
    text-align: center;
}

.philosophy-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.philosophy-item h4 {
    font-size: 1rem;
    color: var(--text-dark);
}

.philosophy-core {
    text-align: center;
    padding: 50px;
    background: var(--bg-light);
    border-radius: 20px;
}

.philosophy-core h3 {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.philosophy-core h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.philosophy-core .logo {
    justify-content: center;
}

.philosophy-core .logo img {
    height: 50px;
}

/* ===================================
   Process Section
   =================================== */
.process-flow {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 30px;
    font-size: 1.5rem;
    color: var(--text-light);
}

.process-step:last-child::after {
    display: none;
}

.process-step .number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.process-step h4 {
    font-size: 1rem;
    max-width: 120px;
}

/* Strategy Cards */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.strategy-card {
    padding: 40px 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.strategy-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.strategy-card p {
    color: var(--text-gray);
    margin: 0;
}

/* ===================================
   Contact Section
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    padding: 40px 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-card h4 {
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-gray);
    margin: 0;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================================
   Board/Notice Section
   =================================== */
.notice-list {
    border-top: 2px solid var(--text-dark);
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.notice-item:hover {
    background: var(--bg-light);
    padding-left: 15px;
}

.notice-item .category {
    flex: 0 0 100px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.notice-item .title {
    flex: 1;
    font-size: 1rem;
}

.notice-item .date {
    flex: 0 0 100px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===================================
   Footer
   =================================== */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 35px;
}

.footer-info {
    display: flex;
    gap: 40px;
}

.footer-info p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .copyright {
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--white);
}

.registration-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    text-align: center;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===================================
   Utilities
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 30px;
    }

    .mission-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .strategy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

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

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu > li > a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    section {
        padding: 60px 0;
    }

    .page-hero {
        padding: 120px 0 60px;
    }

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

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .overview-item {
        border-right: none;
    }

    .overview-item:last-child {
        border-bottom: none;
    }

    .ceo-message {
        flex-direction: column;
    }

    .mission-cards {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .org-branches {
        flex-direction: column;
        gap: 30px;
    }

    .org-branches::before {
        display: none;
    }

    .philosophy-center {
        flex-direction: column;
    }

    .philosophy-side {
        flex-direction: row;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
    }

    .process-step::after {
        content: '↓';
        right: auto;
        bottom: -25px;
        top: auto;
    }

    .strategy-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-info {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .vision-statement {
        padding: 40px 20px;
    }

    .vision-statement p {
        font-size: 1.2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-side {
        flex-direction: column;
    }
}
