/* ==========================================================================
   XK Craft — Premium B2B Corporate Website
   Minimal / Editorial / Craft / Global
   Palette: Warm White, Ivory, Beige, Charcoal
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --ivory:        #F7F5F0;
    --beige:        #EFECE5;
    --white:        #FFFFFF;
    --charcoal:     #1A1A1A;
    --ink:          #333333;
    --muted:        #6E6A62;
    --line:         #E2DDD3;

    --font-head: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

    --maxw: 1280px;
    --pad: 24px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

/* ---------- Typography ---------- */
.section { padding: 120px 0; }

.section-label {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(30px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    max-width: 18ch;
}

.about-text,
.statement-text {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.85;
    color: var(--ink);
    max-width: 52ch;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
    background: transparent;
}

.site-header.is-scrolled {
    background: rgba(247, 245, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
}

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

.brand { display: inline-flex; align-items: center; gap: 12px; }

.brand-mark {
    width: 30px; height: 30px;
    border: 1.5px solid var(--charcoal);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--charcoal);
}

.brand-name {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--charcoal);
}

.brand {
    min-width: 0;
}

.brand-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1024px) {
    .brand-name {
        font-size: 16px;
        letter-spacing: 0.12em;
    }
}

.brand-tagline {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.site-nav { display: flex; align-items: center; gap: 32px; }

.site-nav a {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal);
    position: relative;
    padding: 4px 0;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--charcoal);
    transition: width 0.35s var(--ease);
}
.site-nav a:hover::after,
.site-nav a.is-active::after { width: 100%; }

.site-nav .nav-cta {
    padding: 10px 22px;
    border: 1px solid var(--charcoal);
    border-radius: 999px;
    transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--charcoal); color: var(--ivory); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--charcoal);
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--beige);
}

.hero-media,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(247, 245, 240, 0.88) 0%,
        rgba(247, 245, 240, 0.55) 40%,
        rgba(247, 245, 240, 0.05) 75%,
        rgba(247, 245, 240, 0) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(44px, 8vw, 96px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--charcoal);
    margin-bottom: 32px;
}

.hero-sub {
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.6;
    color: var(--ink);
    max-width: 34ch;
    margin-bottom: 48px;
}

.scroll-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.26em;
    color: var(--charcoal);
}
.scroll-arrow {
    font-size: 18px;
    animation: floaty 2s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ---------- About ---------- */
.about { background: var(--white); }

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-copy .section-title { margin-bottom: 32px; }

.about-media {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}
.about-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.about-media:hover img { transform: scale(1.04); }

/* ---------- Gallery ---------- */
.gallery { background: var(--ivory); }
.gallery .section-title { margin-bottom: 32px; }

.gallery-categories {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 64px;
}

.gallery-grid {
    columns: 3;
    column-gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 2px;
    background: var(--beige);
    break-inside: avoid;
    margin-bottom: 20px;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Capabilities ---------- */
.capabilities { background: var(--white); }
.capabilities .section-title { margin-bottom: 80px; }

.caps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

.cap {
    padding: 40px 32px 40px 0;
    border-bottom: 1px solid var(--line);
}
.cap + .cap {
    padding-left: 32px;
    border-left: 1px solid var(--line);
}

.cap-index {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--muted);
    display: block;
    margin-bottom: 20px;
}

.cap-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--charcoal);
    margin-bottom: 18px;
}

.cap-list li {
    font-size: 15px;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 1px solid var(--beige);
}
.cap-list li:last-child { border-bottom: none; }

/* ---------- Advantages ---------- */
.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 48px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.advantage {
    padding: 32px 32px 32px 0;
}
.advantage + .advantage {
    padding-left: 32px;
    border-left: 1px solid var(--line);
}

.advantage-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.advantage-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 32ch;
}

@media (max-width: 768px) {
    .advantages { grid-template-columns: 1fr; }
    .advantage + .advantage { border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
    .advantage { padding: 24px 0; }
}

/* ---------- Statement ---------- */
.statement {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: var(--charcoal);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.statement-media,
.statement-media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.statement-scrim {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.62);
}

.statement-content {
    position: relative;
    z-index: 2;
    padding: 140px var(--pad);
}

.statement .section-label { color: #C9C4B8; }

.statement-title {
    font-family: var(--font-head);
    font-size: clamp(40px, 7vw, 84px);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 32px;
}

.statement-text {
    color: #EDE9DF;
    max-width: 48ch;
}

.statement-markets {
    margin-top: 40px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #C9C4B8;
}

.statement-retailers {
    margin-top: 12px;
    font-size: 15px;
    letter-spacing: 0.06em;
    color: #EDE9DF;
}

/* ---------- Contact ---------- */
.contact { background: var(--ivory); }

.contact-inner { max-width: 880px; }

.contact-copy .section-title { margin-bottom: 40px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 18px 36px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-primary {
    background: var(--charcoal);
    color: var(--ivory);
    border: 1px solid var(--charcoal);
}
.btn-primary:hover {
    background: transparent;
    color: var(--charcoal);
}

.btn-whatsapp {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
    margin-left: 12px;
}
.btn-whatsapp:hover {
    background: var(--charcoal);
    color: var(--ivory);
}

.contact-meta {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 40px;
}
.contact-meta li {
    font-size: 15px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.meta-label {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
.contact-meta a { text-decoration: underline; text-underline-offset: 3px; }
.contact-meta a:hover { color: var(--charcoal); }

/* ---------- Contact Page ---------- */
.contact-page { padding-top: 160px; background: var(--white); }
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.contact-page-copy .about-text { margin-top: 32px; }

.contact-form-wrap { width: 100%; }

.contact-form { display: flex; flex-direction: column; gap: 24px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}

.field input,
.field textarea {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--charcoal);
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 14px 16px;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
    width: 100%;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--charcoal);
    background: var(--white);
}
.field textarea { resize: vertical; min-height: 140px; }

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-errors {
    background: #FBF0EE;
    border: 1px solid #E5C7C1;
    border-radius: 2px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.form-errors p { font-size: 14px; color: #8A3A2E; }

.form-success {
    background: #EEF4EE;
    border: 1px solid #C9DDCB;
    border-radius: 2px;
    padding: 40px 32px;
    text-align: center;
}
.form-success h3 {
    font-family: var(--font-head);
    font-size: 26px;
    color: var(--charcoal);
    margin-bottom: 12px;
}
.form-success p { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--charcoal);
    color: #C9C4B8;
    padding: 80px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-mark { border-color: var(--white); }
.footer-brand .brand-mark::after { background: var(--white); }

.footer-tagline {
    margin-top: 16px;
    font-size: 14px;
    color: #9A958A;
}

.footer-heading {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col a,
.footer-col span {
    font-size: 14px;
    color: #C9C4B8;
    transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0 36px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: #8A857A; }
.footer-credit { font-family: var(--font-head); letter-spacing: 0.08em; }

/* ---------- Reveal 动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-arrow { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .section { padding: 88px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .caps-grid { grid-template-columns: repeat(2, 1fr); }
    .cap:nth-child(3) { border-left: none; padding-left: 0; }
    .cap:nth-child(3), .cap:nth-child(4) { border-top: 1px solid var(--line); }
    .contact-page-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }

    .brand-tagline { display: none; }

    .site-nav {
        position: fixed;
        inset: 0;
        background: var(--ivory);
        flex-direction: column;
        justify-content: center;
        gap: 36px;
        transform: translateY(-100%);
        transition: transform 0.45s var(--ease);
        z-index: 105;
    }
    .site-nav.is-open { transform: translateY(0); }
    .site-nav a { font-size: 20px; }
    .nav-toggle { display: flex; }

    .hero { min-height: 560px; }
    .hero-scrim {
        background: linear-gradient(
            to bottom,
            rgba(247, 245, 240, 0.55) 0%,
            rgba(247, 245, 240, 0.85) 70%,
            rgba(247, 245, 240, 0.9) 100%
        );
    }

    .gallery-grid { columns: 1; column-gap: 0; }
    .gallery-item { margin-bottom: 16px; }

    .caps-grid { grid-template-columns: 1fr; }
    .cap { padding: 28px 0; }
    .cap + .cap { border-left: none; padding-left: 0; border-top: 1px solid var(--line); }
    .cap:nth-child(3), .cap:nth-child(4) { border-top: 1px solid var(--line); }

    .contact-meta { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 390px) {
    .hero-title { font-size: 40px; }
    .section-title { font-size: 28px; }
    .statement-title { font-size: 34px; }
}
