/* KALVOR v7 — light premium, editorial, trading house */

:root {
    --bg: #F7F6F2;
    --bg-warm: #F0EEE8;
    --white: #FFFFFF;
    --dark: #0E1A2B;
    --dark-soft: #152234;
    --text: #1A1D23;
    --text-2: #5C6370;
    --text-3: #8E919A;
    --brass: #B8925A;
    --brass-hover: #A07D48;
    --line: #E3E1DB;
    --line-light: #EEEDEA;
    --serif: 'Source Serif 4', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max: 1200px;
    --section-pad: 140px;
    --section-pad-m: 80px;
    --radius: 3px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
fieldset { border: none; padding: 0; margin: 0; }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 48px;
}

/* ---------- TOKENS ---------- */

.eyebrow {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-3);
    margin-bottom: 20px;
}
.eyebrow--accent { color: var(--brass); }

h2 {
    font-family: var(--serif);
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 64px;
}
.section-header h2 {
    max-width: 580px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 32px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-primary {
    background: var(--brass);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--brass-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(184, 146, 90, 0.25);
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.06);
}
.btn-lg { height: 56px; padding: 0 44px; font-size: 15px; }
.btn-submit { width: 100%; height: 56px; font-size: 15px; margin-top: 8px; }

.link-arrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--brass);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}
.link-arrow::after {
    content: ' →';
    transition: transform 0.2s;
    display: inline-block;
}
.link-arrow:hover { color: var(--brass-hover); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- REVEAL ---------- */
.section, .metrics, .hero-content {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.section.visible, .metrics.visible, .hero-content.visible {
    opacity: 1;
    transform: none;
}
.commodity-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.commodity-card.visible {
    opacity: 1;
    transform: none;
}

/* ---------- NAV ---------- */
.nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}
.nav-wrap.scrolled {
    background: rgba(247, 246, 242, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--line);
}
.nav {
    display: flex;
    align-items: center;
    height: 72px;
}
.nav-logo {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.02em;
    margin-right: auto;
    transition: color 0.3s;
}
.nav-wrap.scrolled .nav-logo { color: var(--text); }
.nav-links {
    display: flex;
    gap: 36px;
    margin-right: 36px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-wrap.scrolled .nav-links a { color: var(--text-2); }
.nav-wrap.scrolled .nav-links a:hover { color: var(--text); }
.nav-cta {
    height: 40px;
    padding: 0 24px;
    background: var(--brass);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--brass-hover); }
.nav-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    padding: 0;
}
.nav-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    position: absolute;
    left: 5px;
    transition: 0.3s;
}
.nav-wrap.scrolled .nav-burger span { background: var(--text); }
.nav-burger span:first-child { top: 10px; }
.nav-burger span:last-child { top: 19px; }
.nav-burger.active span:first-child { transform: rotate(45deg); top: 15px; }
.nav-burger.active span:last-child { transform: rotate(-45deg); top: 15px; }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    max-height: 1000px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.88);
    animation: heroScale 14s ease-out forwards;
}
@keyframes heroScale { from { transform: scale(1.02); } to { transform: scale(1); } }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(14, 26, 43, 0.82) 0%,
        rgba(14, 26, 43, 0.45) 30%,
        rgba(14, 26, 43, 0.12) 55%,
        rgba(14, 26, 43, 0.04) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 100px;
}
.hero-text {
    max-width: 640px;
}
.hero .eyebrow { color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(48px, 6.5vw, 84px);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 24px;
}
.hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: 48px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.hero-scroll-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35);
    writing-mode: vertical-rl;
}
.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scrollPulse 2.5s ease infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- METRICS ---------- */
.metrics {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0;
}
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.metric {
    text-align: center;
    padding: 44px 20px;
    border-right: 1px solid var(--line);
}
.metric:last-child { border-right: none; }
.metric-value, .metric-value-text {
    display: block;
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--brass);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.metric-plus {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--brass);
}
.metric-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- SECTIONS ---------- */
.section { padding: var(--section-pad) 0; }

/* ---------- COMMODITIES ---------- */
.section--commodities { background: var(--bg); }
.commodity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.commodity-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    transition: border-color 0.3s, opacity 0.6s, transform 0.6s;
}
.commodity-card:hover { border-color: var(--brass); }
.commodity-img {
    position: relative;
    height: 300px;
    overflow: hidden;
}
.commodity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) brightness(0.95);
    transition: transform 0.6s ease;
}
.commodity-card:hover .commodity-img img { transform: scale(1.03); }
.commodity-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    background: rgba(14, 26, 43, 0.55);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 2px;
}
.commodity-body {
    padding: 36px;
}
.commodity-body h3 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.commodity-body p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ---------- PROCESS ---------- */
.section--process {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.process-timeline {
    display: flex;
    align-items: flex-start;
}
.process-step {
    flex: 1;
}
.process-marker {
    margin-bottom: 24px;
}
.process-num {
    display: block;
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 300;
    color: var(--brass);
    line-height: 1;
    margin-bottom: 12px;
}
.process-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brass);
    position: relative;
}
.process-connector {
    flex: 0 0 auto;
    width: 1px;
    background: var(--line);
    align-self: stretch;
    margin: 0 24px;
    min-height: 100px;
}
.process-content h4 {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.process-content p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.65;
    max-width: 240px;
}

/* ---------- DARK SECTION ---------- */
.section--dark {
    background: var(--dark);
    color: var(--white);
}
.section--dark h2 { color: var(--white); }
.advantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 80px;
}
.advantage-line {
    width: 32px;
    height: 2px;
    background: var(--brass);
    margin-bottom: 20px;
}
.advantage h4 {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}
.advantage p {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

/* ---------- TRUST ---------- */
.section--trust {
    padding: 80px 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.trust-badge {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.trust-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--brass);
}
.trust-badge strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.trust-badge span {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.5;
}

/* ---------- ABOUT ---------- */
.section--about { background: var(--bg); }
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.about-image::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    z-index: -1;
}
.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    filter: saturate(0.85) brightness(0.95);
}
.about-text h2 { margin-bottom: 28px; }
.about-text p {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 16px;
}
.about-text .link-arrow { margin-top: 12px; display: inline-block; }

/* ---------- CTA ---------- */
.section--cta {
    position: relative;
    padding: 180px 0;
    text-align: center;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    inset: 0;
}
.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) brightness(0.8);
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 26, 43, 0.75);
}
.cta-content {
    position: relative;
    z-index: 2;
}
.cta-content h2 {
    color: var(--white);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cta-content .btn { margin-bottom: 28px; }
.cta-contacts a {
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}
.cta-contacts a:hover { color: rgba(255,255,255,0.8); }

/* ---------- CONTACT ---------- */
.section--contact {
    background: var(--white);
    border-top: 1px solid var(--line);
}
.form-wrap { max-width: 680px; margin: 0 auto; }
.form-header { text-align: center; margin-bottom: 56px; }
.form-sub { font-size: 16px; color: var(--text-2); margin-top: 12px; }

.quote-form { position: relative; }
.form-section { margin-bottom: 40px; }
.form-legend {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-light);
    width: 100%;
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.field { display: flex; flex-direction: column; }
.field--full { margin-bottom: 28px; }
.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 8px;
}
.req { color: var(--brass); }
.field input,
.field select,
.field textarea {
    height: 50px;
    padding: 0 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 15px;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.field textarea { height: auto; padding: 14px 16px; resize: vertical; }
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%235C6370'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(184, 146, 90, 0.08);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }

/* ---------- FOOTER ---------- */
.footer {
    padding: 72px 0 36px;
    background: var(--dark);
    color: rgba(255,255,255,0.45);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}
.footer-col--brand p { font-size: 14px; margin-top: 12px; line-height: 1.65; }
.footer-col h5 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.25);
    margin-bottom: 16px;
}
.footer-col a, .footer-col span {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    padding-top: 28px;
    font-size: 13px;
    color: rgba(255,255,255,0.2);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
    :root { --section-pad: 100px; }
    .container { padding: 0 32px; }
    .commodity-grid { grid-template-columns: 1fr; max-width: 560px; }
    .commodity-img { height: 260px; }
    .process-timeline { flex-direction: column; gap: 0; }
    .process-connector { width: 1px; height: 40px; margin: 0 0 0 3px; }
    .process-step { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 32px; }
    .process-step:last-child { margin-bottom: 0; }
    .process-marker { margin-bottom: 0; flex-shrink: 0; }
    .advantages { grid-template-columns: 1fr; gap: 40px; }
    .trust-badges { grid-template-columns: 1fr; gap: 28px; }
    .about-layout { grid-template-columns: 1fr; gap: 48px; }
    .about-image img { height: 360px; }
    .about-image::after { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
    :root { --section-pad: var(--section-pad-m); }
    .container { padding: 0 20px; }

    .nav { height: 64px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    }
    .nav-links.open { display: flex; }
    .nav-links a { color: var(--text-2) !important; }
    .nav-links a:hover { color: var(--text) !important; }
    .nav-cta { font-size: 12px; padding: 0 16px; height: 36px; }
    .nav-burger { display: block; margin-left: 12px; }

    .hero { min-height: 600px; max-height: none; }
    .hero h1 { font-size: 42px; }
    .hero-sub { font-size: 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-content { padding-bottom: 64px; }
    .hero-scroll { display: none; }

    .metrics-row { grid-template-columns: 1fr 1fr; }
    .metric { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 16px; }
    .metric:nth-child(odd) { border-right: 1px solid var(--line); }
    .metric:nth-last-child(-n+2) { border-bottom: none; }
    .metric-value, .metric-value-text, .metric-plus { font-size: 26px; }

    .section-header { margin-bottom: 40px; }
    .commodity-img { height: 220px; }
    .commodity-body { padding: 24px; }
    .commodity-body h3 { font-size: 22px; }

    .process-step { flex-direction: column; gap: 12px; }
    .process-num { font-size: 32px; }

    .advantages { gap: 32px; }

    .field-row { grid-template-columns: 1fr; gap: 16px; }

    .section--cta { padding: 120px 0; }
}
