/* 
  오포상회 (Opo Sanghoe) - Extraordinary Modern 3.3 (Balanced Typo + Elevated)
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700;900&family=Montserrat:wght@900&display=swap');

:root {
    --bg: #0c0c0c;
    --card: #161616;
    --accent: #1a4d2e;
    --accent-light: #2d6b41;
    --accent-red: #a52a2a; 
    --text: #ffffff;
    --text-dim: #999999;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Noto Sans KR', sans-serif; -webkit-text-size-adjust: 100%; }
body { background-color: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.5; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }

/* Animations */
.reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* Header */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 30px 0; transition: 0.4s; }
header.scrolled { padding: 15px 0; background: rgba(12, 12, 12, 0.98); border-bottom: 1px solid var(--glass-border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 30px; text-decoration: none; color: var(--text); letter-spacing: -1px; }
.logo .red { color: var(--accent-red); }
.logo .green { color: var(--accent-light); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--accent-light); font-size: 16px; font-weight: 900; transition: 0.3s; }
.nav-links a:hover { color: white; filter: drop-shadow(0 0 10px var(--accent-light)); }

/* Hero - Elevated & Balanced Gap */
.hero { 
    height: 85vh; 
    display: flex; 
    align-items: center; 
    padding-top: 60px;
    background: radial-gradient(circle at 80% 20%, rgba(26,77,46,0.15), transparent 45%); 
}

.hero-title { 
    font-size: clamp(65px, 14vw, 155px); 
    font-weight: 900; 
    line-height: 0.92; /* Adjusted from 0.82 for better overlap balance */
    letter-spacing: -10px; 
    margin-bottom: 30px; 
    text-transform: uppercase;
}

/* Sharp Line Typo (Matching Reference Image) */
.hero-title .outline { 
    color: transparent; 
    -webkit-text-stroke: 1.2px var(--accent-light);
    animation: line-flicker 3s infinite alternate;
}

@keyframes line-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        -webkit-text-stroke: 1.2px var(--accent-light);
        filter: drop-shadow(0 0 2px var(--accent-light));
    }
    20%, 24%, 55% {
        opacity: 0.4;
        -webkit-text-stroke: 1.2px rgba(45, 107, 65, 0.4);
        filter: none;
    }
}

.btn-modern { padding: 20px 48px; border-radius: 100px; text-decoration: none; font-weight: 900; font-size: 15px; display: inline-block; transition: 0.4s; }
.btn-primary { background: var(--accent); color: white; border: 1px solid var(--accent-light); }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(26,77,46,0.5); }
.btn-outline { border: 2px solid var(--accent-light); color: var(--accent-light); margin-left: 20px; }
.btn-outline:hover { background: var(--accent-light); color: white; }

/* Photos */
.grid-photos { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 350px); gap: 30px; margin-top: 50px; }
.photo-item { border-radius: 32px; overflow: hidden; position: relative; border: 1px solid var(--glass-border); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; opacity: 0.8; }
.photo-item:hover img { transform: scale(1.08); opacity: 1; }
.photo-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 35px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); }
.price-text { color: var(--accent-light); font-weight: 900; font-family: 'Montserrat', sans-serif; }

/* Compact Banner */
.banner-compact { padding: 60px; background: linear-gradient(135deg, var(--accent), var(--accent-light)); border-radius: 40px; text-align: center; margin: 60px 0; border: 1px solid rgba(255,255,255,0.2); }
.banner-compact h2 { font-size: 32px; font-weight: 900; margin-bottom: 10px; }
.banner-compact p { opacity: 0.8; margin-bottom: 25px; }
.btn-compact-banner { padding: 12px 30px; background: white; color: black; border-radius: 50px; text-decoration: none; font-weight: 900; transition: 0.3s; }
.btn-compact-banner:hover { transform: scale(1.05); }

/* Compact Menu */
.menu-compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.glass-panel-compact { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 24px; padding: 30px; }
.menu-cat-title { color: var(--accent-light); font-size: 16px; font-weight: 900; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; margin-bottom: 20px; letter-spacing: 1px; }
.menu-row-compact { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.menu-row-compact span:last-child { color: var(--accent-light); font-weight: 900; font-family: 'Montserrat', sans-serif; }
.menu-row-compact.special { color: var(--accent-light); font-weight: 900; border-top: 1px dashed var(--glass-border); padding-top: 15px; margin-top: 15px; }

/* Contact Side-by-Side */
.contact-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; margin: 80px 0; align-items: stretch; }
.contact-info-compact { padding: 60px; height: 100%; display: flex; flex-direction: column; justify-content: center; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 40px; }
.section-title-small { font-size: 30px; font-weight: 900; margin-bottom: 40px; }
.info-group-compact { margin-bottom: 25px; }
.info-group-compact .label { font-size: 12px; font-weight: 900; color: var(--accent-light); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.info-group-compact .value { font-size: 20px; font-weight: 700; }
.contact-btns-compact { display: flex; gap: 15px; margin-top: 35px; }
.btn-sm-primary { flex: 1; padding: 18px; background: var(--accent); color: white; border-radius: 16px; text-align: center; text-decoration: none; font-weight: 900; transition: 0.3s; }
.btn-sm-outline { flex: 1; padding: 18px; border: 2px solid var(--accent-light); color: var(--accent-light); border-radius: 16px; text-align: center; text-decoration: none; font-weight: 900; transition: 0.3s; }

.map-wrapper-compact { border-radius: 40px; overflow: hidden; height: 100%; min-height: 500px; border: 1px solid var(--glass-border); }
.map-wrapper-compact iframe { filter: contrast(1.1) brightness(0.9); }

/* Floating Menu */
.floating-contact-menu { position: fixed; right: 40px; bottom: 40px; display: flex; flex-direction: column; gap: 15px; z-index: 1002; }
.f-item { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.4s; box-shadow: 0 10px 40px rgba(0,0,0,0.6); position: relative; }
.f-item:hover { transform: scale(1.1) rotate(5deg); }
.tool-tip { position: absolute; right: 80px; background: white; color: black; padding: 8px 15px; border-radius: 8px; font-size: 12px; font-weight: 900; opacity: 0; pointer-events: none; transition: 0.3s; }
.f-item:hover .tool-tip { opacity: 1; transform: translateX(-5px); }

/* Footer */
.site-footer { padding: 80px 0; border-top: 1px solid var(--glass-border); text-align: center; background: #000; }
.footer-logo { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 28px; margin-bottom: 12px; letter-spacing: -1px; }
.footer-logo .red { color: var(--accent-red); }
.footer-copy { font-size: 13px; color: var(--text-dim); letter-spacing: 2px; }

@media (max-width: 900px) {
    .container { padding: 0 4%; }
    header { padding: 20px 0; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(12, 12, 12, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        backdrop-filter: blur(10px);
        border-left: 1px solid var(--glass-border);
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 24px; }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1002;
    }
    .mobile-toggle span {
        display: block;
        width: 28px;
        height: 2px;
        background: white;
        transition: 0.3s;
    }
    .mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .menu-compact-grid, .contact-split { grid-template-columns: 1fr; gap: 20px; }
    .grid-photos { grid-template-columns: 1fr; grid-template-rows: auto; gap: 15px; }
    .photo-item { border-radius: 20px; height: 300px !important; }
    
    .hero { min-height: 70vh; display: flex; align-items: center; padding: 100px 0 60px; }
    .hero-title { 
        font-size: clamp(68px, 20vw, 110px); 
        letter-spacing: -5px; 
        line-height: 0.85; 
        word-break: keep-all;
        width: 100%;
        display: block;
    }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; width: 100%; }
    .btn-outline { margin-left: 0; }
    .btn-modern { width: 100%; text-align: center; padding: 18px; }

    .section-title { font-size: 32px; }
    .section-info { margin-bottom: 30px; }
    .banner-compact { padding: 40px 25px; border-radius: 24px; }
    .banner-compact h2 { font-size: 24px; }

    .contact-info-compact, .map-wrapper-compact { padding: 30px; border-radius: 24px; }
    .map-wrapper-compact { min-height: 350px; }
    .contact-btns-compact { flex-direction: column; }
    
    .floating-contact-menu { right: 20px; bottom: 20px; gap: 10px; }
    .f-item { width: 50px; height: 50px; font-size: 14px; }
    .tool-tip { display: none; } /* Hide tooltips on mobile */
}

@media (max-width: 480px) {
    .hero-title { font-size: 20vw; letter-spacing: -3px; }
    .logo { font-size: 24px; }
}
