/* =========================================================
   FIFGEN TECH — Light Theme Redesign (2026)
   Color: Electric Orange (#FF5C00) on white + black
   Type:  Inter (Google Fonts)
   Style: Modern, conversion-optimized, generous whitespace
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Brand */
    --pop:           #FF5C00;
    --pop-hover:     #E04D00;
    --pop-soft:      #FFF1E6;
    --pop-tint:      rgba(255, 92, 0, 0.08);

    /* Neutrals */
    --bg:            #FFFFFF;
    --bg-alt:        #F7F7F5;
    --bg-tint:       #FAFAF8;
    --ink:           #0A0A0A;
    --ink-soft:      #4A4A4A;
    --ink-muted:     #6B6B6B;
    --border:        #E8E8E5;
    --border-soft:   #F0F0EC;

    /* Surfaces */
    --card:          #FFFFFF;
    --card-shadow:   0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(10, 10, 10, 0.06);
    --card-shadow-hover: 0 4px 12px rgba(10, 10, 10, 0.06), 0 24px 48px rgba(10, 10, 10, 0.10);

    /* Type scale */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Legacy aliases (keep portfolio.css and ContentEngine page working) */
    --primary-dark: var(--ink);
    --primary-blue: var(--ink);
    --accent-cyan:  var(--pop);
    --accent-purple: var(--pop);
    --text-light:   var(--ink);
    --text-gray:    var(--ink-muted);
    --card-bg:      var(--card);
    --gradient-1:   linear-gradient(135deg, #FF5C00 0%, #FF8A3D 100%);
    --gradient-2:   linear-gradient(180deg, #FFFFFF 0%, #FAFAF8 100%);
    --shadow:       var(--card-shadow);
    --shadow-hover: var(--card-shadow-hover);
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pop); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--pop-hover); }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.proof-strip {
    padding: 12px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-alt);
}
.proof-strip p {
    margin: 0;
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1.5;
}
.proof-strip span { color: var(--pop); margin: 0 8px; }

.results-strip {
    padding: 22px 0 10px;
    background: var(--bg);
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.results-grid > div {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    background: var(--card);
    min-height: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.results-grid strong {
    display: block;
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 4px;
}
.results-grid small {
    color: var(--ink-muted);
    font-size: 0.82rem;
}
.form-note {
    margin-top: 10px;
    color: var(--ink-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .proof-strip p { font-size: 0.85rem; }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.25s ease;
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    background: rgba(255, 255, 255, 0.96);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 24px;
}
.logo-text {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.logo-accent {
    color: var(--pop);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.25rem;
    align-items: center;
}
.nav-link {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--pop); }

.nav-link.cta-button {
    background: var(--ink);
    color: #FFFFFF;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
}
.nav-link.cta-button:hover {
    background: var(--pop);
    color: #FFFFFF;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.005em;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-family: inherit;
}
.btn-primary {
    background: var(--pop);
    color: #FFFFFF;
    border-color: var(--pop);
    box-shadow: 0 6px 18px rgba(255, 92, 0, 0.30);
}
.btn-primary:hover {
    background: var(--pop-hover);
    border-color: var(--pop-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 92, 0, 0.38);
}
.btn-secondary {
    background: #FFFFFF;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-secondary:hover {
    background: var(--ink);
    color: #FFFFFF;
    transform: translateY(-1px);
}
.btn-full {
    width: 100%;
}

/* ===== Hero (home) ===== */
.hero {
    padding: 160px 0 100px;
    background:
        radial-gradient(circle at 80% 10%, var(--pop-tint), transparent 50%),
        var(--bg);
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content { max-width: 640px; }

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}
.gradient-text {
    color: var(--pop);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--ink-soft);
    margin-bottom: 2.25rem;
    max-width: 580px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

/* Hero visual */
.hero-visual {
    position: relative;
    height: 380px;
}
.floating-card {
    position: absolute;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    animation: float 6s ease-in-out infinite;
}
.floating-card .card-icon {
    font-size: 1.4rem;
    background: var(--pop-soft);
    color: var(--pop);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-1 { top: 20px; left: 10%; animation-delay: 0s; }
.card-2 { top: 130px; right: 5%; animation-delay: 2s; }
.card-3 { bottom: 30px; left: 25%; animation-delay: 4s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== Sections (generic) ===== */
section {
    padding: 96px 0;
}
.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 0.75rem;
    text-align: center;
}
.section-subtitle {
    color: var(--ink-muted);
    font-size: 1.1rem;
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

/* ===== Services (home page services section) ===== */
.services {
    background: var(--bg-alt);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.25s ease;
}
.service-card:hover {
    border-color: var(--pop);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}
.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}
.service-card p {
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.6;
}
.service-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--pop-soft);
    color: var(--pop);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Contact ===== */
.contact {
    background: var(--bg);
}
.contact-content {
    max-width: 640px;
    margin: 0 auto;
}
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--ink);
    font-size: 0.98rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-muted);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pop);
    box-shadow: 0 0 0 4px var(--pop-tint);
}

/* ===== Footer ===== */
.footer {
    padding: 2.5rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.9rem;
}

/* ===== Animations ===== */
.fade-in { animation: fadeIn 0.7s ease-out both; }
.fade-in-delay { animation: fadeIn 0.7s ease-out 0.15s both; }
.fade-in-delay-2 { animation: fadeIn 0.7s ease-out 0.3s both; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-visual { height: 280px; }
    .hero { padding: 130px 0 70px; }
    section { padding: 70px 0; }
}

@media (max-width: 640px) {
    .nav-menu {
        gap: 1rem;
    }
    .nav-link { font-size: 0.9rem; }
    .nav-link.cta-button { padding: 0.5rem 0.95rem; }
    .hero-title { font-size: 2.4rem; }
    .contact-form { padding: 1.75rem; }
}

/* ===== n8n chat widget brand overrides ===== */
:root {
    --chat--color-primary: #FF5C00 !important;
    --chat--color-secondary: #0A0A0A !important;
    --chat--header--background: #0A0A0A !important;
    --chat--color-dark: #0A0A0A !important;
    --chat--color-light: #FFFFFF !important;
    --chat--message--bot--background: #F7F7F5 !important;
    --chat--color-white: #FFFFFF !important;
    --chat--window--width: 420px !important;
    --chat--toggle--size: 64px !important;
    --chat--border-radius: 16px !important;
}
