/* =========================================================
   1.618 Skincare — global styles
   Brand: gold #ffbf00 / ink #3a2e2b  (reference_brand_colors)
   ========================================================= */

:root {
    --gold: #ffbf00;
    --gold-deep: #f0a800;
    --ink: #3a2e2b;
    --ink-soft: #6b5d58;
    --paper: #ffffff;
    --sand: #faf6ee;
    --line: rgba(58, 46, 43, 0.14);
    --nav-h: 74px;
    --announce-h: 38px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 10px); }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.24; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
    opacity: 0.85;
}
.eyebrow.dark { color: var(--ink-soft); }

.plus { font-weight: 400; margin-left: 10px; }

/* ---------- Announcement bar ---------- */
.announce {
    height: var(--announce-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1100;
}

/* ---------- Navigation ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.navbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(58, 46, 43, 0.06); }

.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-image { height: 34px; width: auto; }

.nav-menu { display: flex; list-style: none; gap: 2.4rem; align-items: center; }
.nav-menu a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--ink);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-menu a:hover, .nav-menu a.active { border-bottom-color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 32px;
    padding: 0 12px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.lang-switch:hover { background: var(--gold); border-color: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h) - var(--announce-h));
    display: flex;
    align-items: center;
    background: var(--gold);
    overflow: hidden;
}
.hero-media, .hero-media picture { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 22% center; }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 560px; margin-left: auto; color: #fff; padding: 60px 0; }
.hero-content h1 { margin-bottom: 22px; }
.hero-sub { font-size: 1.02rem; line-height: 1.8; margin-bottom: 34px; opacity: 0.95; }

.cta-button, .outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-width: 210px;
    padding: 15px 24px;
    border: 1.5px solid currentColor;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}
.cta-button { color: #fff; }
.cta-button:hover { background: #fff; color: var(--ink); }
.outline-button { color: var(--ink); }
.outline-button:hover { background: var(--ink); color: #fff; }
.outline-button.light { color: var(--ink); border-color: var(--ink); }
.outline-button.light:hover { background: var(--ink); color: var(--gold); }

/* ---------- Ratio strip ---------- */
.ratio-strip { background: var(--sand); padding: 96px 0; }
.ratio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.ratio-item { border-top: 2px solid var(--ink); padding-top: 22px; }
.ratio-num { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-deep); margin-bottom: 10px; }
.ratio-item h3 { font-size: 1.25rem; margin-bottom: 12px; }
.ratio-item p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Products ---------- */
.products { padding: 110px 0; }
.products h2 { margin-bottom: 54px; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }

.product-link { text-decoration: none; color: inherit; display: block; }
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--sand);
    margin-bottom: 18px;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-link:hover .product-image img { transform: scale(1.05); }

.product-category { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.product-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.product-description { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 12px; flex: 1; }
.product-price { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.view-details {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    padding-bottom: 3px;
    border-bottom: 1.5px solid var(--gold);
    align-self: flex-start;
}
.product-link:hover .view-details { border-bottom-color: var(--ink); }

/* ---------- Split (brand story) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split-media { background: var(--gold); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text { padding: clamp(56px, 7vw, 110px) clamp(28px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.split-text h2 { margin-bottom: 24px; }
.split-text p { color: var(--ink-soft); margin-bottom: 14px; max-width: 46ch; }
.split-text .outline-button { margin-top: 22px; align-self: flex-start; }

/* ---------- Formula ---------- */
.formula { background: var(--sand); padding: 110px 0; }
.formula-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.formula-text h2 { margin-bottom: 22px; }
.formula-text p { margin-bottom: 32px; max-width: 42ch; }
.formula-media img { width: 100%; }

/* ---------- Product detail pages ---------- */
.product-detail { padding: 70px 0 100px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 90px; }
.product-detail-image { background: var(--sand); }
.product-detail-image img { width: 100%; }
.product-detail-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.product-detail-info .product-category { margin-bottom: 18px; }
.product-detail-info .product-price { font-size: 1.6rem; margin-bottom: 20px; }
.product-detail-info .product-description { font-size: 1rem; margin-bottom: 30px; }

.product-features { border-top: 2px solid var(--ink); padding-top: 22px; margin-bottom: 34px; }
.product-features h3 { font-size: 1rem; margin-bottom: 12px; }
.product-features ul { list-style: none; }
.product-features li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 7px; }
.product-features li::before { content: '+'; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }

.amazon-button-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 40px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--gold);
    transition: background 0.25s ease, color 0.25s ease;
}
.amazon-button-large:hover { background: var(--ink); color: var(--gold); border-color: var(--ink); }

.product-detail-description h2 { text-align: center; margin-bottom: 40px; }
.product-gallery { max-width: 860px; margin: 0 auto; }
.product-gallery img { width: 100%; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 84px 28px 0; }
.footer-content { max-width: 620px; margin: 0 auto; text-align: center; }
.footer-logo { font-size: 1.9rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 18px; }
.footer-content p { font-size: 0.9rem; opacity: 0.78; margin-bottom: 10px; }
.footer-content a { color: var(--gold); text-decoration: none; }
.footer-content a:hover { text-decoration: underline; }

.social-links { display: flex; justify-content: center; gap: 14px; margin: 28px 0 20px; }
.social-links a {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #fff;
    font-size: 1.05rem;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.social-links a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.footer-lang { margin-top: 6px; }
.footer-bottom { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 22px 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; opacity: 0.55; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .formula-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-content { max-width: 100%; margin-left: 0; }
    .hero-media img { object-position: 70% center; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: #fff;
        padding: 0 28px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    .nav-menu.active { max-height: 320px; padding: 8px 28px 20px; border-bottom: 1px solid var(--line); }
    .nav-menu li { width: 100%; }
    .nav-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav-menu a:hover, .nav-menu a.active { border-bottom-color: var(--line); color: var(--gold-deep); }
    .hamburger { display: flex; }

    /* stack the hero: photo block on top, copy below on gold */
    .hero { display: block; min-height: 0; }
    .hero-media, .hero-media picture { position: relative; inset: auto; }
    .hero-media { aspect-ratio: 3 / 4; }
    .hero-media img { object-position: center 52%; }
    .hero-content { max-width: 100%; margin: 0; padding: 40px 0 60px; }

    .ratio-strip { padding: 68px 0; }
    .ratio-grid { grid-template-columns: 1fr; gap: 34px; }
    .products { padding: 72px 0; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
    .split { grid-template-columns: 1fr; }
    .split-media { aspect-ratio: 4 / 5; }
    .formula { padding: 72px 0; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 34px; margin-bottom: 60px; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .products-grid { gap: 28px 14px; }
    .product-card h3 { font-size: 0.95rem; }
    .product-description { font-size: 0.82rem; }
}
