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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 모든 이미지 반응형 기본 설정 */
img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    cursor: pointer;
}

.nav-logo img {
    height: 70px;
    width: auto;
    background: transparent;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 5px;
}

.nav-logo img:hover {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #d4491f;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4491f;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(212, 73, 31, 0.3));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    opacity: 0.95;
}

.cta-button {
    background: linear-gradient(135deg, #d4491f, #ff6b3d);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 73, 31, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 73, 31, 0.4);
    background: linear-gradient(135deg, #ff6b3d, #d4491f);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

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

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #d4491f, #ff6b3d);
    border-radius: 2px;
}

/* Brand Story Section */
.brand-story {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.brand-story-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.story-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-item.reverse {
    direction: rtl;
}

.story-item.reverse > * {
    direction: ltr;
}

.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-item:hover .story-image img {
    transform: scale(1.05);
}

.story-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #d4491f;
    margin-bottom: 1.5rem;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

/* Business Section */
.business {
    background: #ffffff;
}

.business-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-button {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button.active,
.tab-button:hover {
    background: linear-gradient(135deg, #d4491f, #ff6b3d);
    border-color: #d4491f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 73, 31, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.business-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: #f8f9fa;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.business-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.business-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.business-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #d4491f;
    margin-bottom: 2rem;
}

.business-text h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.5rem 0;
}

.business-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

/* Competitiveness Section */
.competitiveness {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 120px 0;
}

.competitiveness .section-title {
    color: #2c3e50;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.competitiveness-content {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.taste-differences h3,
.objective-indicators h3 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #2c3e50;
    letter-spacing: -0.3px;
    position: relative;
}

.taste-differences h3::after,
.objective-indicators h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #2c3e50;
}

.taste-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.taste-item {
    background: white;
    padding: 50px 40px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.taste-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.taste-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-family: 'Times New Roman', serif;
}

.taste-item h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    letter-spacing: -0.3px;
}

.taste-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
    font-weight: 400;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.indicator-item {
    background: white;
    padding: 50px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.indicator-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.indicator-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-family: 'Times New Roman', serif;
    letter-spacing: -1px;
}

.indicator-number .unit {
    font-size: 1.2rem;
    font-weight: 500;
    color: #6c757d;
    margin-left: 2px;
}

.indicator-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    letter-spacing: -0.3px;
}

.indicator-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #495057;
    font-weight: 400;
}

.difference-image {
    text-align: center;
    margin-top: 40px;
}

.difference-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-form {
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4491f;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 73, 31, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #d4491f, #ff6b3d);
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 73, 31, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 73, 31, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4491f;
    margin-bottom: 1rem;
}

.info-item p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.map-container {
    margin-top: 20px;
}

.map-placeholder {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    color: #999;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
}

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

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 5px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .nav-container {
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .story-item,
    .business-card {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .story-item.reverse {
        direction: ltr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .nav-container {
        padding: 0 30px;
    }
    
    .nav-logo img {
        height: 60px;
    }
    
    .taste-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
    }
    
    .indicators-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 40px;
    }
    
    .competitiveness {
        padding: 80px 0;
    }
    
    .competitiveness-content {
        gap: 80px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .story-text h3,
    .business-text h3 {
        font-size: 1.8rem;
    }
    
    .story-text p,
    .business-text p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 30px;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        min-height: 500px;
        padding: 100px 0 50px 0;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .business-card,
    .contact-form {
        padding: 40px 30px;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .tab-button {
        width: 250px;
        text-align: center;
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .taste-grid,
    .indicators-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .taste-item,
    .indicator-item {
        padding: 40px 30px;
    }
    
    .taste-differences h3,
    .objective-indicators h3 {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
    
    .competitiveness {
        padding: 60px 0;
    }
    
    .competitiveness-content {
        gap: 60px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    /* 이미지 최적화 */
    .story-image img,
    .business-image img {
        height: 300px;
        object-fit: cover;
    }
    
    /* 폼 최적화 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* iOS 줌 방지 */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: 450px;
        padding: 80px 0 40px 0;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.95rem;
        border-radius: 25px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .business-card,
    .contact-form {
        padding: 25px 15px;
    }
    
    .tab-button {
        width: 200px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .taste-item,
    .indicator-item {
        padding: 25px 15px;
    }
    
    .indicator-number {
        font-size: 1.8rem;
    }
    
    .taste-differences h3,
    .objective-indicators h3 {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
    
    .story-image img,
    .business-image img {
        height: 250px;
    }
    
    /* 네비게이션 최적화 */
    .nav-logo img {
        height: 50px;
    }
    
    .nav-container {
        height: 70px;
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    /* 텍스트 크기 조정 */
    .story-text h3,
    .business-text h3 {
        font-size: 1.5rem;
    }
    
    .story-text p,
    .business-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* 경쟁력 섹션 최적화 */
    .taste-item h4,
    .indicator-text h4 {
        font-size: 1.1rem;
    }
    
    .taste-item p,
    .indicator-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* 푸터 최적화 */
    .footer {
        padding: 30px 0;
    }
    
    .footer-logo img {
        height: 35px;
    }
    
    .footer-info p {
        font-size: 0.9rem;
    }
}

/* History Button Styles */
.history-button {
    display: inline-block;
    background: linear-gradient(135deg, #d4491f, #ff6b3d);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 73, 31, 0.3);
}

.history-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 73, 31, 0.4);
    background: linear-gradient(135deg, #ff6b3d, #d4491f);
}

/* Utility Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 극소 화면 (320px 이하) 대응 */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .business-card,
    .contact-form {
        padding: 20px 10px;
    }
    
    .tab-button {
        width: 180px;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .nav-logo img {
        height: 45px;
    }
}

/* 가로 화면 대응 (랜드스케이프 모드) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
        padding: 60px 0 30px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .nav-container {
        height: 60px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
}

/* 터치 장치 최적화 */
@media (pointer: coarse) {
    .nav-link,
    .tab-button,
    .cta-button,
    .submit-button,
    .history-button {
        min-height: 44px; /* 최소 터치 타겟 크기 */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 프린트 스타일 */
@media print {
    .navbar,
    .hamburger,
    .scroll-indicator,
    .cta-button,
    .submit-button {
        display: none !important;
    }
    
    .hero {
        position: relative;
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}