/*
Theme Name: 대흥 플라스틱 사출
Theme URI: https://daeheung.io.kr
Author: 비랜딩 (blanding.kr)
Author URI: https://blanding.kr
Description: 정밀 플라스틱 사출 제조기업을 위한 단일 페이지 홍보 테마
Version: 1.0.0
Text Domain: daeheung-plastic
*/

:root {
    --ink: #14181b;
    --muted: #6c7479;
    --line: #dfe4e5;
    --paper: #f4f5f3;
    --white: #fff;
    --accent: #df6b2e;
    --accent-dark: #ad481c;
    --navy: #18252a;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    letter-spacing: -0.015em;
}
body, button, input, textarea { font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
    position: fixed;
    z-index: 10;
    inset: 0 0 auto;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,.18);
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.header-container, .container { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }
.header-container { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-area img { max-height: 52px; width: auto; }
.brand-image { display: block; width: 252px; height: auto; }
.site-header:not(.is-scrolled) .brand-image,
.site-header:not(.is-scrolled) .custom-logo { filter: brightness(0) invert(1); }
.site-header.is-scrolled { background: rgba(255,255,255,.97); color: var(--ink); border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(20,24,27,.08); }
.site-header.is-scrolled .main-navigation a { color: var(--ink); }
.site-header.is-scrolled .main-navigation a:hover,
.site-header.is-scrolled .main-navigation a:focus-visible { color: var(--accent); }
.site-header.is-scrolled .header-cta { border-color: var(--line); color: var(--ink); }
.site-header.is-scrolled .header-cta:hover,
.site-header.is-scrolled .header-cta:focus-visible { border-color: var(--accent); color: var(--accent); }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.8); font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.brand-name { font-size: 17px; line-height: 1; font-weight: 800; letter-spacing: .11em; }
.brand-sub { display: block; margin-top: 5px; color: rgba(255,255,255,.62); font-size: 10px; font-weight: 500; letter-spacing: .12em; }
.main-navigation ul { display: flex; align-items: center; gap: 34px; padding: 0; margin: 0; list-style: none; }
.main-navigation a { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; transition: color .2s ease; }
.main-navigation a:hover, .main-navigation a:focus-visible { color: var(--white); }
.header-cta { display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.38); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.header-cta::after { content: "↗"; font-size: 15px; }

.hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; background: #20282b; color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,17,19,.97) 0%, rgba(12,17,19,.82) 36%, rgba(12,17,19,.15) 74%, rgba(12,17,19,.28) 100%), url("assets/hero-injection.png") center / cover no-repeat; transform: scale(1.015); animation: hero-breath 18s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-inner { position: relative; z-index: 1; padding: 154px 0 96px; }
.eyebrow { margin: 0 0 24px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(44px, 5.8vw, 78px); font-weight: 700; letter-spacing: -.065em; line-height: 1.08; }
.hero h1 span { display: block; color: rgba(255,255,255,.68); font-weight: 350; }
.hero-copy { max-width: 500px; margin: 30px 0 0; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 21px; border: 1px solid transparent; font-size: 13px; font-weight: 800; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--white); }
.button-primary:hover, .button-primary:focus-visible { background: var(--accent-dark); }
.button-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.button-ghost:hover, .button-ghost:focus-visible { border-color: var(--white); }
.hero-note { display: flex; align-items: center; gap: 15px; margin-top: 74px; color: rgba(255,255,255,.58); font-size: 12px; }
.hero-note::before { content: ""; width: 44px; height: 1px; background: var(--accent); }
@keyframes hero-breath { from { transform: scale(1.015); } to { transform: scale(1.055); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal-visible { opacity: 1; transform: translateY(0); }
.reveal-visible.reveal { will-change: auto; }

.intro-band { background: var(--accent); color: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.intro-item { min-height: 146px; padding: 28px 30px; border-right: 1px solid rgba(255,255,255,.25); }
.intro-item:last-child { border-right: 0; }
.intro-index { display: block; margin-bottom: 13px; color: rgba(255,255,255,.66); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.intro-item strong { display: block; font-size: 17px; font-weight: 700; }
.intro-item p { margin: 5px 0 0; color: rgba(255,255,255,.75); font-size: 13px; }

.section { padding: 132px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 60px; }
.section-label { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section h2 { max-width: 670px; margin: 0; font-size: clamp(34px, 4.2vw, 57px); font-weight: 650; letter-spacing: -.06em; line-height: 1.15; }
.section-head p { max-width: 310px; margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 88px; align-items: start; }
.about-visual { position: relative; min-height: 520px; background: var(--navy); overflow: hidden; }
.about-visual img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; opacity: .87; }
.about-visual::after { content: "DAEHEUNG / 01"; position: absolute; right: 22px; bottom: 19px; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.about-copy { padding-top: 10px; }
.about-copy h3 { margin: 0 0 22px; font-size: 30px; letter-spacing: -.05em; line-height: 1.25; }
.about-copy > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.about-message { color: var(--muted); font-size: 14px; line-height: 1.9; }
.about-message p { margin: 0 0 14px; }
.about-message strong { color: var(--ink); font-weight: 750; }
.about-message .signature { margin-top: 24px; color: var(--ink); font-weight: 700; text-align: right; }
.about-points { padding: 0; margin: 42px 0 0; list-style: none; border-top: 1px solid var(--line); }
.about-points li { display: grid; grid-template-columns: 86px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.about-points b { color: var(--accent); font-size: 12px; letter-spacing: .1em; }
.about-points span { font-size: 14px; font-weight: 650; }

.process-section { background: #e9ecea; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #bdc5c4; border-bottom: 1px solid #bdc5c4; }
.process-card { position: relative; min-height: 322px; padding: 32px 34px 35px; border-right: 1px solid #bdc5c4; }
.process-card:last-child { border-right: 0; }
.process-no { display: block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.process-card h3 { margin: 76px 0 10px; font-size: 22px; letter-spacing: -.04em; }
.process-card p { max-width: 250px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.process-arrow { position: absolute; top: 30px; right: 32px; color: #8a9695; font-size: 25px; }

.capabilities { background: var(--white); }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.capability-card { min-height: 320px; padding: 28px; background: var(--paper); border-top: 3px solid var(--navy); }
.capability-card:nth-child(2) { background: var(--navy); color: var(--white); border-color: var(--accent); }
.capability-card:nth-child(3) { background: #e9ecea; }
.capability-no { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.capability-card h3 { margin: 78px 0 12px; font-size: 24px; letter-spacing: -.05em; }
.capability-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.capability-card:nth-child(2) p { color: rgba(255,255,255,.65); }
.capability-meta { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.capability-meta::before { content: ""; width: 18px; height: 1px; background: currentColor; }

.gallery-section { padding-bottom: 150px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #eef0ef; }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; cursor: zoom-in; transition: transform .45s ease; }
.product-card:hover img { transform: scale(1.04); }
.product-extra { display: none; }
.product-grid.is-expanded .product-extra { display: block; }
.product-more-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 190px; margin: 34px auto 0; padding: 15px 22px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.product-more-button span { font-size: 17px; line-height: 1; transition: transform .25s ease; }
.product-more-button:hover, .product-more-button:focus-visible { border-color: var(--accent); background: var(--accent); color: var(--white); transform: translateY(-2px); }
.product-more-button.is-expanded span { transform: rotate(180deg); }
.gallery-main img, .gallery-stack img { cursor: zoom-in; }
.image-lightbox { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); background: rgba(7,10,11,.88); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility .22s ease; }
.image-lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.image-lightbox-backdrop { position: absolute; inset: 0; }
.image-lightbox-dialog { position: relative; z-index: 1; display: grid; place-items: center; max-width: min(1400px, 92vw); max-height: 88vh; margin: 0; transform: scale(.96); transition: transform .22s ease; }
.image-lightbox.is-open .image-lightbox-dialog { transform: scale(1); }
.image-lightbox-image { display: block; max-width: min(1400px, 92vw); max-height: 88vh; width: auto; height: auto; object-fit: contain; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.32); }
.image-lightbox-close { position: absolute; top: -18px; right: -18px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(7,10,11,.72); color: var(--white); font-size: 28px; font-weight: 300; line-height: 1; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.image-lightbox-close:hover, .image-lightbox-close:focus-visible { border-color: var(--white); background: var(--accent); transform: rotate(90deg); }
body.lightbox-open { overflow: hidden; }
.gallery-grid { display: grid; grid-template-columns: 1.16fr .84fr; gap: 16px; }
.gallery-main, .gallery-stack > div { position: relative; overflow: hidden; background: var(--navy); }
.gallery-main { min-height: 560px; }
.gallery-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.gallery-main img, .gallery-stack img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-main:hover img, .gallery-stack > div:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; right: 20px; bottom: 17px; left: 20px; display: flex; align-items: end; justify-content: space-between; gap: 15px; color: var(--white); }
.gallery-caption strong { font-size: 16px; }
.gallery-caption span { color: rgba(255,255,255,.68); font-size: 11px; letter-spacing: .1em; }

.contact-section { background: var(--navy); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.contact-section .section-label { color: #f3a26e; }
.contact-section h2 { max-width: 550px; }
.contact-section .section-head { display: block; margin-bottom: 0; }
.contact-copy { max-width: 480px; margin-top: 24px; color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.9; }
.consultation-form { padding: 26px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); }
.consultation-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.consultation-fields label { display: grid; gap: 7px; }
.consultation-fields label span { color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700; }
.consultation-fields label em { color: #f3a26e; font-style: normal; }
.consultation-fields input, .consultation-fields textarea { width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 0; background: rgba(10,18,21,.35); color: var(--white); font: inherit; font-size: 13px; outline: 0; transition: border-color .2s ease, background-color .2s ease; }
.consultation-fields input { min-height: 46px; padding: 0 13px; }
.consultation-fields textarea { min-height: 122px; padding: 12px 13px; resize: vertical; }
.consultation-fields input::placeholder, .consultation-fields textarea::placeholder { color: rgba(255,255,255,.42); }
.consultation-fields input:focus, .consultation-fields textarea:focus { border-color: #f3a26e; background: rgba(10,18,21,.55); }
.consultation-field-wide { grid-column: 1 / -1; }
.consultation-consent { display: flex; align-items: center; gap: 9px; margin-top: 17px; color: rgba(255,255,255,.6); font-size: 12px; }
.consultation-consent input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.consultation-submit { width: 100%; margin-top: 18px; border: 0; cursor: pointer; }
.consultation-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.consultation-notice { margin: 0 0 14px; padding: 13px 15px; border-left: 3px solid #f3a26e; color: rgba(255,255,255,.9); background: rgba(255,255,255,.1); font-size: 13px; }
.consultation-notice-error { border-left-color: #ff8b78; }
.contact-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.24); }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 25px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.24); }
.contact-list b { color: #f3a26e; font-size: 11px; letter-spacing: .12em; }
.contact-list span { color: rgba(255,255,255,.85); font-size: 14px; }
.contact-note { margin: 25px 0 0; color: rgba(255,255,255,.42); font-size: 12px; }

.location-section { background: #f3f5f3; }
.location-head { align-items: end; margin-bottom: 42px; }
.location-head h2 { margin-bottom: 0; }
.location-head > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.location-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); min-height: 430px; background: var(--white); }
.location-map-wrap { min-height: 430px; background: #dfe6e3; }
.location-map { display: block; width: 100%; height: 100%; min-height: 430px; border: 0; filter: grayscale(.15) contrast(.96); }
.location-info { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 64px); border: 1px solid #dfe5e2; border-left: 0; }
.location-kicker { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.location-info h3 { margin: 22px 0 30px; color: var(--ink); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.35; letter-spacing: -.06em; }
.location-info h3 span { color: var(--muted); font-size: .58em; font-weight: 500; letter-spacing: -.04em; white-space: nowrap; }
.location-details { padding: 0; margin: 0; list-style: none; border-top: 1px solid #dfe5e2; }
.location-details li { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid #dfe5e2; }
.location-details b { color: var(--accent); font-size: 10px; letter-spacing: .12em; }
.location-details a { color: var(--ink); font-size: 14px; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.location-actions .button { padding: 13px 16px; font-size: 11px; }
.button-outline-dark { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.button-outline-dark:hover, .button-outline-dark:focus-visible { color: var(--white); background: var(--ink); }

.site-footer { background: #111a1d; color: rgba(255,255,255,.5); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; }
.footer-inner p { margin: 0; font-size: 12px; }
.footer-brand { color: rgba(255,255,255,.8); font-size: 12px; font-weight: 800; letter-spacing: .14em; }

@media (max-width: 900px) {
    .header-container, .container { width: min(var(--max), calc(100% - 40px)); }
    .main-navigation { display: none; }
    .header-cta { padding: 10px 12px; }
    .hero { min-height: 700px; }
    .hero-inner { padding-top: 140px; }
    .section { padding: 92px 0; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
    .location-grid { grid-template-columns: 1fr; }
    .location-info { border: 1px solid #dfe5e2; border-top: 0; }
    .about-visual { min-height: 380px; }
    .about-visual img { min-height: 380px; }
    .section-head { display: block; margin-bottom: 40px; }
    .section-head p { margin-top: 18px; }
    .contact-section .section-head { margin-bottom: 0; }
    .gallery-main { min-height: 390px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 640px) {
    .header-container, .container { width: calc(100% - 32px); }
    .header-container { min-height: 72px; }
    .logo-area img { max-height: 42px; }
    .brand-image { width: 218px; }
    .brand-name { font-size: 15px; }
    .brand-sub { font-size: 9px; }
    .header-cta { font-size: 11px; }
    .hero { min-height: 670px; }
    .hero::before { background-position: 64% center; }
    .hero-inner { padding: 126px 0 72px; }
    .hero h1 { font-size: clamp(39px, 12vw, 58px); }
    .hero-copy { font-size: 15px; }
    .hero-note { margin-top: 55px; }
    .intro-grid, .process-grid, .capability-grid { grid-template-columns: 1fr; }
    .intro-item { min-height: 0; padding: 23px 20px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
    .intro-item:last-child { border-bottom: 0; }
    .section { padding: 76px 0; }
    .section h2 { font-size: 37px; }
    .about-visual, .about-visual img { min-height: 300px; }
    .about-copy h3 { font-size: 26px; }
    .process-card { min-height: 0; padding: 25px 21px 28px; border-right: 0; border-bottom: 1px solid #bdc5c4; }
    .process-card:last-child { border-bottom: 0; }
    .process-card h3, .capability-card h3 { margin-top: 44px; }
    .capability-card { min-height: 260px; padding: 24px; }
    .gallery-grid, .gallery-stack { grid-template-columns: 1fr; grid-template-rows: auto; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gallery-main { min-height: 310px; }
    .gallery-stack { gap: 16px; }
    .gallery-stack > div { min-height: 220px; }
    .contact-grid { gap: 38px; }
    .location-head { margin-bottom: 32px; }
    .location-head > p { margin-top: 18px; }
    .location-map-wrap, .location-map { min-height: 320px; }
    .consultation-form { padding: 20px; }
    .consultation-fields { grid-template-columns: 1fr; }
    .consultation-field-wide { grid-column: auto; }
    .footer-inner { display: block; padding: 27px 0; }
    .footer-inner p { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
