/* ===== Base ===== */
:root {
    --bg: #ffffff;
    --muted: #6b7280;
    --card: #ffffff;
    --surface: #ffffff;
    --line: #e5e7eb;
    --ink: #111827;
    --white: #ffffff;
    --accent: #ff5956;
    --accent-2: #ff5956;
    --radius: 16px;
    --container: 1120px;
    --shadow: 0 10px 24px rgba(16, 24, 40, 0.08),
        0 2px 8px rgba(16, 24, 40, 0.06);
}

* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto,
        "Noto Sans KR", sans-serif;
    color: var(--ink);
    background: #f8fafc;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 80px 0;
}
.section-head {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}
.section-head h2 {
    font-size: 40px;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #0f172a;
}
.section-head p {
    color: var(--muted);
    margin: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}
h3 {
    font-size: 22px;
}

p {
    margin: 0 0 12px;
    color: #475569;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
}
.brand {
    display: flex;
    align-items: center;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    display: inline-block;
    margin-right: 8px;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1002;
}
.nav a {
    margin-left: 20px;
    color: #111827;
}
.nav .btn-sm {
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-toggle:hover {
    background: #f9fafb;
    border-color: var(--accent);
}

.lang-toggle i {
    font-size: 16px;
}

.lang-toggle[aria-expanded="true"] .ri-arrow-down-s-line {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 1001;
}

.lang-dropdown:hover .lang-menu,
.lang-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    list-style: none;
    margin: 0;
}

.lang-option {
    display: block;
    padding: 10px 16px;
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    border-radius: 8px;
    margin: 4px;
}

.lang-option:hover {
    background: #f3f4f6;
}

.lang-option.active {
    background: rgba(255, 89, 86, 0.1);
    color: var(--accent);
    font-weight: 600;
}
/* Header Contact button → white */
.site-header .btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.12);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    gap: 8px;
    transition: 0.2s;
    box-shadow: none;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(218, 48, 60, 0.28);
}
.btn-ghost {
    border-color: #d1d5db;
    color: #111827;
    background: transparent;
}

.hero .btn-ghost {
    border-color: #ffffff;
    color: #ffffff;
    background: transparent;
}
.btn-block {
    width: 100%;
}
.btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.55)
    );
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}
.hero-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}
.hero-title .accent {
    display: inline-block;
    color: transparent;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 6px 24px #da303c;
}
.hero-desc {
    color: #e5e7eb;
    margin: 0 auto 32px;
    max-width: 740px;
}

/* ===== Cards (Services) ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.card-body {
    padding: 18px 18px 22px;
}
.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 89, 86, 0.12);
    color: #ff5956;
    margin-bottom: 10px;
    font-size: 20px;
}

/* ===== Portfolio ===== */
.filter-pills {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 6px 0 22px;
    flex-wrap: wrap;
}
.pill {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    font-weight: 700;
    cursor: pointer;
}
.pill.is-active {
    background: var(--accent);
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.tile {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.tile img {
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.tile:hover img {
    transform: scale(1.03);
}
.center {
    text-align: center;
}
.mt-32 {
    margin-top: 32px;
}

/* ===== Split (About) ===== */
.split {
    background: #f3f4f6;
}
.split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
}
.split-text p {
    color: #475569;
}
.split-media img {
    border-radius: 18px;
    box-shadow: var(--shadow);
}

/* ===== Testimonials ===== */
.testimonials .slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.slides {
    overflow: hidden;
    width: 100%;
}
.slide {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;
    max-width: 760px;
    margin: 0 auto;
    display: none;
}
.slide.is-active {
    display: block;
}
.slide blockquote {
    font-size: 20px;
    line-height: 1.6;
    margin: 6px 0 16px;
    color: #111827;
}
.slide .stars {
    letter-spacing: 3px;
    color: #ffd76e;
}
.slide figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
}
.slide figcaption img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.slider-nav {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.slider-nav:hover {
    background: #f3f4f6;
}
.dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -22px;
    display: flex;
    gap: 8px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d1d5db;
    border: none;
}
.dot.is-active {
    background: var(--accent);
}

/* ===== Contact ===== */
.contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}
.list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    color: #c8cdd6;
}
.list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0;
}
.list i {
    margin-top: 2px;
    color: #e06563;
}

.contact-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}
label {
    font-weight: 700;
    margin-bottom: 6px;
}
input,
select,
textarea {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
    border-radius: 12px;
    padding: 14px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
textarea {
    min-height: 140px;
    resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
}
.hint {
    display: block;
    text-align: right;
    color: #9aa3ae;
    margin-top: 6px;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid #e5e7eb;
    background: #0f172a;
    color: #e5e7eb;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.8fr;
    gap: 24px;
    padding: 40px 0;
}
.foot-col h4 {
    margin: 0 0 10px;
}
.foot-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.foot-col li {
    margin: 8px 0;
    color: #cbd5e1;
}
.social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.social a {
    font-size: 22px;
    color: #cbd5e1;
}
.social a:hover {
    color: #ffffff;
}
.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 0;
    color: #cbd5e1;
}

/* ===== Floating Top Button ===== */
.floating-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #6b7280;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.floating-top-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== Utils ===== */
.md-hide {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 48px;
    }
}
@media (max-width: 720px) {
    .nav a:not(.btn-sm):not([data-key="nav.contact"]) {
        display: none;
    }
    .hero {
        min-height: 70vh;
    }
    .hero-title {
        font-size: 36px;
    }
    .md-hide {
        display: initial;
    }
    .card-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .split-grid {
        grid-template-columns: 1fr;
    }
    .contact .contact-grid {
        grid-template-columns: 1fr;
    }
}
