/* ============================================================
   Falconsult — Design System v2
   Premium logistics consulting landing page
   ============================================================ */

@font-face {
    font-family: 'Porscha911';
    src: url('/fonts/911porschav3.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Brand */
    --fc-green: #016751;
    --fc-green-hover: #018564;
    --fc-green-light: #4a9e8e;
    --fc-green-dark: #0a2820;
    --fc-green-deep: #071e18;

    /* Surfaces */
    --fc-beige: #E0DCD3;
    --fc-warm-white: #f0ece5;
    --fc-white: #ffffff;

    /* Text */
    --fc-text: #2C3E50;
    --fc-text-light: #5a6b78;
    --fc-text-muted: #8a9aa7;

    /* Typography */
    --fc-font-brand: 'Porscha911', 'Segoe UI', sans-serif;
    --fc-font: 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Layout */
    --fc-section-py: clamp(5rem, 8vw, 7rem);
    --fc-container: 1100px;

    /* Radius */
    --fc-radius: 12px;
    --fc-radius-lg: 20px;

    /* Shadows */
    --fc-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    --fc-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);

    /* Easing */
    --fc-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--fc-font);
    color: var(--fc-text);
    line-height: 1.6;
    background: var(--fc-beige);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.15; }
h1:focus { outline: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === Layout === */
.container {
    max-width: var(--fc-container);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}
.section { padding: var(--fc-section-py) 0; }
.section-alt { background: var(--fc-warm-white); }

/* === Section Headers === */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--fc-green);
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--fc-text);
    margin-bottom: 1rem;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--fc-text-light);
    max-width: 540px;
    line-height: 1.75;
}
.text-gradient {
    background: linear-gradient(135deg, var(--fc-green), var(--fc-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: all 0.3s var(--fc-ease);
    text-decoration: none;
}
.btn-primary {
    background: var(--fc-green);
    color: white;
    box-shadow: 0 4px 16px rgba(1, 103, 81, 0.2);
}
.btn-primary:hover {
    background: var(--fc-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1, 103, 81, 0.3);
}
.btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

/* === Cards === */
.card {
    background: var(--fc-white);
    border-radius: var(--fc-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--fc-shadow);
    transition: transform 0.35s var(--fc-ease), box-shadow 0.35s var(--fc-ease);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fc-shadow-lg);
}

/* === Scroll Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--fc-ease), transform 0.7s var(--fc-ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s var(--fc-ease), transform 0.7s var(--fc-ease);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s var(--fc-ease), transform 0.7s var(--fc-ease);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* === Hero Word Animation === */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: wordReveal 0.5s var(--fc-ease) forwards;
}
@keyframes wordReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* === Contact Form (global for WASM compat) === */
.form-wrapper { position: relative; }
.form-group { position: relative; margin-bottom: 1.5rem; }
.form-input {
    width: 100%;
    padding: 1rem 0.75rem 0.5rem;
    border: 1.5px solid #d0cdc6;
    border-radius: var(--fc-radius);
    font-family: var(--fc-font);
    font-size: 0.95rem;
    background: transparent;
    color: var(--fc-text);
    transition: border-color 0.25s;
    outline: none;
    box-sizing: border-box;
}
.form-input:focus { border-color: var(--fc-green); }
.form-label {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--fc-text-muted);
    pointer-events: none;
    transition: all 0.25s;
    background: white;
    padding: 0 0.25rem;
}
.form-textarea ~ .form-label { top: 1rem; transform: none; }
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -0.5rem;
    transform: none;
    font-size: 0.75rem;
    color: var(--fc-green);
}
.form-textarea { resize: vertical; min-height: 120px; }
.submit-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-error { color: #e50000; font-size: 0.85rem; margin-top: 1rem; text-align: center; }
.form-success { text-align: center; padding: 2rem 0; }
.success-icon { width: 56px; height: 56px; color: var(--fc-green); margin-bottom: 1rem; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--fc-text); }
.form-success p { color: var(--fc-text-light); font-size: 0.95rem; }

/* === Validation === */
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; font-size: 0.8rem; margin-top: 0.25rem; }

/* === Blazor Error === */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
}
