/* ============================================
   BNI Omega Chapter — Main Stylesheet
   ============================================ */

/* ─── Variables ─── */
:root {
    --red:        #C8102E;
    --red-dark:   #a00e25;
    --red-light:  #f8e8eb;
    --gold:       #B8962E;
    --gold-light: #f5eddb;
    --black:      #111111;
    --gray-900:   #1a1a2e;
    --gray-700:   #374151;
    --gray-500:   #6b7280;
    --gray-200:   #e5e7eb;
    --gray-100:   #f3f4f6;
    --white:      #ffffff;
    --font-main:  'Pretendard',sans-serif;
    --font-head:  'Pretendard',sans-serif;
    --radius:     12px;
    --radius-sm:  6px;
    --shadow:     0 4px 24px rgba(0,0,0,.09);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
    --transition: .25s ease;
    --container:  1200px;
    --header-h:   72px;
}

/* ─── Reset / Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-head);
    color: var(--black);
    line-height: 1.3;
    font-weight: 700;
}

/* ─── Layout ─── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.section-pad { padding: 80px 0; }
.bg-light { background: var(--gray-100); }
.text-center { text-align: center; }

/* ─── Section Labels ─── */
.section-label {
    display: inline-block;
    background: var(--red-light);
    color: var(--red);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 99px;
    margin-bottom: 12px;
}
.section-header { margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-header p { color: var(--gray-500); max-width: 540px; margin: 0 auto; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }

.btn-white {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}
.btn-white:hover { background: var(--gray-100); }

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--red); }

.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* ─── Header ─── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo-link { text-decoration: none; }
.site-logo-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.logo-bni {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--red);
    letter-spacing: -.02em;
}
.logo-omega {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .04em;
}
.logo-chapter {
    font-family: var(--font-head);
    font-size: .65rem;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: .15em;
    text-transform: uppercase;
}

.site-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-menu li a {
    display: block;
    padding: 8px 14px;
    color: var(--gray-700);
    font-size: .9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a { color: var(--red); background: var(--red-light); }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}
.mobile-menu-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ─── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-h);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gray-900) 0%, #2d1a1e 50%, #1a1a2e 100%);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(200,16,46,.25) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(184,150,46,.15) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 60px;
    padding-bottom: 100px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(200,16,46,.2);
    border: 1px solid rgba(200,16,46,.4);
    color: #f9a0b0;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}
.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.75);
    margin-bottom: 40px;
    line-height: 1.9;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.hero-scroll-indicator span {
    display: block;
    width: 24px; height: 36px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 12px;
    position: relative;
}
.hero-scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: rgba(255,255,255,.6);
    border-radius: 2px;
    animation: scroll-dot 1.8s ease infinite;
}
@keyframes scroll-dot {
    0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* ─── Stats ─── */
.stats-section {
    background: var(--red);
    padding: 48px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-item { color: var(--white); }
.stat-number {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
}
.stat-unit {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
}
.stat-label {
    display: block;
    margin-top: 8px;
    font-size: .85rem;
    opacity: .85;
}

/* ─── About Section ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.about-text p { color: var(--gray-500); margin-bottom: 16px; }
.feature-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--gray-700);
}
.feature-list li svg {
    width: 20px; height: 20px;
    fill: var(--red);
    flex-shrink: 0;
}

.about-card-stack {
    position: relative;
    height: 340px;
}
.about-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    width: 220px;
    transition: transform var(--transition);
}
.about-card:hover { transform: translateY(-4px); }
.about-card-1 { top: 0; left: 0; z-index: 3; border-top: 4px solid var(--red); }
.about-card-2 { top: 80px; left: 100px; z-index: 2; border-top: 4px solid var(--gold); }
.about-card-3 { top: 160px; left: 50px; z-index: 1; border-top: 4px solid var(--gray-200); }
.about-card-icon { font-size: 2rem; margin-bottom: 12px; }
.about-card h4 { font-size: 1rem; margin-bottom: 6px; }
.about-card p { font-size: .83rem; color: var(--gray-500); }

/* ─── Meeting Section ─── */
.meeting-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.meeting-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: transform var(--transition), box-shadow var(--transition);
}
.meeting-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.meeting-card-highlight {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}
.meeting-card-highlight h3,
.meeting-card-highlight p { color: var(--white); }
.meeting-card-icon { font-size: 2rem; margin-bottom: 16px; }
.meeting-card h3 { font-size: 1rem; margin-bottom: 12px; }
.meeting-main { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.meeting-agenda { display: flex; flex-direction: column; gap: 6px; }
.meeting-agenda li {
    font-size: .85rem;
    padding: 6px 10px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
}
.meeting-card-highlight .meeting-agenda li {
    background: rgba(255,255,255,.2);
    color: var(--white);
}

/* ─── Members Grid ─── */
.bni-members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.bni-member-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.bni-member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.bni-member-photo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.bni-member-photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bni-member-photo-placeholder span {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
}

.bni-member-info { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.bni-member-name { font-size: 1.05rem; margin-bottom: 4px; }
.bni-member-title { font-size: .83rem; color: var(--gray-500); }
.bni-member-company { font-size: .9rem; }
.bni-member-category {
    display: inline-block;
    background: var(--red-light);
    color: var(--red);
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    margin-top: 4px;
}

.bni-member-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}
.bni-member-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--gray-500);
    transition: color var(--transition);
}
.bni-member-contact a:hover { color: var(--red); }
.bni-member-contact svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* ─── CTA Section ─── */
.cta-section {
    background: linear-gradient(135deg, var(--gray-900) 0%, #2d1a1e 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(200,16,46,.2) 0%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.7); margin-bottom: 36px; font-size: 1.05rem; line-height: 1.9; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Page Header ─── */
.page-header {
    background: var(--gray-900);
    padding: calc(var(--header-h) + 48px) 0 48px;
    margin-bottom: 60px;
}
.page-header h1 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: rgba(255,255,255,.4); }

.page-content-wrap { padding-bottom: 80px; }
.page-content { max-width: 820px; }
.page-content h2 { font-size: 1.6rem; margin: 32px 0 16px; }
.page-content h3 { font-size: 1.2rem; margin: 24px 0 12px; }
.page-content p { margin-bottom: 16px; color: var(--gray-700); }

/* ─── Member Profile Page ─── */
.member-profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}
.member-profile-photo img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.member-photo-placeholder-lg {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-photo-placeholder-lg span {
    font-family: var(--font-head);
    font-size: 6rem;
    font-weight: 800;
    color: var(--white);
}
.member-profile-info h2 { font-size: 2rem; margin-bottom: 24px; }
.profile-field {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}
.field-label {
    min-width: 80px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.profile-bio { margin-top: 32px; }
.profile-bio h3 { font-size: 1.1rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; }

/* ─── Footer ─── */
.site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,.7);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.footer-logo .logo-bni { font-size: 1.8rem; }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.5); line-height: 1.8; font-style: italic; }

.footer-col h4 {
    font-family: var(--font-head);
    color: var(--white);
    font-size: .9rem;
    letter-spacing: .05em;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-meeting-info li { font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-meeting-info strong { color: rgba(255,255,255,.85); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.3);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .meeting-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .bni-members-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        padding: 16px 24px;
        display: none;
        box-shadow: var(--shadow-lg);
    }
    .site-nav.open { display: block; }
    .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-menu li a { padding: 12px 16px; font-size: 1rem; }

    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-card-stack { display: none; }
    .meeting-grid { grid-template-columns: 1fr; }
    .bni-members-grid { grid-template-columns: 1fr; }
    .member-profile-grid { grid-template-columns: 1fr; }
    .member-profile-photo { max-width: 300px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .cta-actions { flex-direction: column; align-items: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
