/*
Theme Name: FarhanSoft IMA
Theme URI: https://farhansoft.com
Author: FarhanSoft Agency
Author URI: https://farhansoft.com
Description: A professional Influencer Marketing Agency theme built for FarhanSoft.com. Fully compatible with Elementor Page Builder. Features dark luxury aesthetic, animated sections, brand + creator forms, and a complete homepage layout.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: farhansoft-ima
Tags: elementor, one-page, dark, agency, marketing, business, custom-colors, custom-logo, featured-images, full-width-template, theme-options
*/

/* =========================================
   CSS VARIABLES
========================================= */
:root {
    --fs-black:      #0a0a0a;
    --fs-dark:       #0d0d0d;
    --fs-mid:        #111111;
    --fs-white:      #f5f2ee;
    --fs-cream:      #ede9e3;
    --fs-accent:     #e8572a;
    --fs-accent2:    #f0a500;
    --fs-gray:       #888888;
    --fs-light-gray: #cccccc;
    --fs-border:     rgba(255,255,255,0.07);
    --fs-font-serif: 'Playfair Display', Georgia, serif;
    --fs-font-sans:  'DM Sans', 'Helvetica Neue', sans-serif;
    --fs-radius:     4px;
    --fs-transition: 0.3s ease;
}

/* =========================================
   RESET & BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--fs-black);
    color: var(--fs-white);
    font-family: var(--fs-font-sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fs-accent); text-decoration: none; transition: color var(--fs-transition); }
a:hover { color: var(--fs-white); }

/* =========================================
   TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--fs-font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

h1 { font-size: clamp(3rem, 7vw, 7rem); font-weight: 900; letter-spacing: -2px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -1px; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; font-family: var(--fs-font-sans); }
p { font-size: 0.95rem; line-height: 1.75; color: var(--fs-gray); }

/* =========================================
   LAYOUT
========================================= */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 7rem 5%;
}

/* =========================================
   NAVIGATION
========================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(10,10,10,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--fs-border);
    transition: background var(--fs-transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 5%;
}

.site-logo {
    font-family: var(--fs-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fs-white);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.site-logo span { color: var(--fs-accent); }

/* Primary Nav */
.primary-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}
.primary-nav a {
    color: var(--fs-light-gray);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color var(--fs-transition);
}
.primary-nav a:hover { color: var(--fs-white); }

.nav-btn-cta {
    background: var(--fs-accent) !important;
    color: #fff !important;
    padding: 0.6rem 1.4rem;
    border-radius: var(--fs-radius);
    font-weight: 600 !important;
    transition: opacity var(--fs-transition) !important;
}
.nav-btn-cta:hover { opacity: 0.85; color: #fff !important; }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--fs-white);
    transition: var(--fs-transition);
}

/* =========================================
   BUTTONS
========================================= */
.btn, button.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: var(--fs-radius);
    font-family: var(--fs-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s, background 0.2s;
}

.btn-primary {
    background: var(--fs-accent);
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232,87,42,0.35);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--fs-white);
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover {
    border-color: var(--fs-white);
    background: rgba(255,255,255,0.06);
    color: var(--fs-white);
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 5% 9vh;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 65% 60% at 80% 25%, rgba(232,87,42,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 45% 50% at 15% 80%, rgba(240,165,0,0.1) 0%, transparent 60%),
        linear-gradient(155deg, #0a0a0a 0%, #0f0f0f 60%, #0d0d0d 100%);
}

.hero-noise {
    position: absolute; inset: 0; z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    opacity: 0.4;
}

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

.hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--fs-accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--fs-font-serif);
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
    max-width: 950px;
    margin-bottom: 2rem;
    color: var(--fs-white);
}
.hero-title em { color: var(--fs-accent); font-style: italic; }

.hero-subtitle {
    max-width: 580px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #aaa;
    margin-bottom: 3rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Animate hero in */
.hero-eyebrow  { animation: fsSlideUp 0.7s 0.2s both; }
.hero-title    { animation: fsSlideUp 0.7s 0.4s both; }
.hero-subtitle { animation: fsSlideUp 0.7s 0.6s both; }
.hero-ctas     { animation: fsSlideUp 0.7s 0.8s both; }

@keyframes fsSlideUp {
    from { opacity: 0; transform: translateY(35px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   MARQUEE
========================================= */
.marquee-strip {
    background: var(--fs-accent);
    padding: 0.85rem 0;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-inner {
    display: inline-block;
    animation: fsMarquee 20s linear infinite;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
}
.marquee-inner span { margin: 0 3rem; }
.marquee-inner span::before { content: '★  '; }
@keyframes fsMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================
   STATS BAR
========================================= */
.stats-bar {
    background: var(--fs-cream);
    padding: 4rem 5%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--fs-font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--fs-black);
    line-height: 1;
    letter-spacing: -2px;
}
.stat-number span { color: var(--fs-accent); }
.stat-label {
    font-size: 0.78rem;
    color: #666;
    margin-top: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

/* =========================================
   SECTION HEADERS
========================================= */
.section-eyebrow {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--fs-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--fs-font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--fs-white);
    margin-bottom: 1.2rem;
    max-width: 700px;
}
.section-desc {
    font-size: 1rem;
    color: var(--fs-gray);
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 4rem;
}

/* =========================================
   SERVICES SECTION
========================================= */
.services-section {
    background: var(--fs-dark);
    padding: 7rem 5%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--fs-border);
    border: 1px solid var(--fs-border);
}

.service-card {
    background: var(--fs-dark);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: background var(--fs-transition);
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--fs-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover { background: var(--fs-mid); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    display: block;
}
.service-card h3 {
    font-family: var(--fs-font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fs-white);
    margin-bottom: 0.9rem;
}
.service-card p { font-size: 0.9rem; color: #888; line-height: 1.75; }

/* =========================================
   CREATOR HUB
========================================= */
.creators-section {
    background: linear-gradient(140deg, var(--fs-mid) 0%, var(--fs-dark) 100%);
    padding: 7rem 5%;
    position: relative;
    overflow: hidden;
}
.creators-section::before {
    content: '';
    position: absolute;
    top: -30%; right: -15%;
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(240,165,0,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.creators-layout {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.creators-left { flex: 1; min-width: 280px; }
.creators-right { flex: 1; min-width: 280px; }

.perks-list { list-style: none; display: flex; flex-direction: column; gap: 2rem; margin-top: 1rem; }
.perk-item { display: flex; gap: 1.3rem; align-items: flex-start; }
.perk-number {
    font-family: var(--fs-font-serif);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--fs-accent2);
    line-height: 1;
    min-width: 3rem;
}
.perk-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fs-white);
    margin-bottom: 0.35rem;
    font-family: var(--fs-font-sans);
}
.perk-text p { font-size: 0.88rem; color: #777; line-height: 1.65; }

/* =========================================
   WHY US SECTION
========================================= */
.why-section {
    background: var(--fs-black);
    padding: 7rem 5%;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3.5rem;
}
.why-card {}
.why-bar {
    width: 2.5rem; height: 3px;
    background: var(--fs-accent);
    margin-bottom: 1.5rem;
}
.why-card h3 {
    font-family: var(--fs-font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--fs-white);
    margin-bottom: 0.9rem;
    letter-spacing: -0.3px;
}
.why-card p { font-size: 0.9rem; color: #777; line-height: 1.75; }

/* =========================================
   CONTACT / FORMS
========================================= */
.contact-section {
    background: var(--fs-dark);
    padding: 7rem 5%;
}

.forms-layout {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.form-block {
    flex: 1;
    min-width: 320px;
    background: var(--fs-mid);
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    padding: 2.5rem;
}

.form-block-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--fs-accent);
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
}
.form-block h3 {
    font-family: var(--fs-font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fs-white);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    color: #999;
    margin-bottom: 0.4rem;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--fs-radius);
    padding: 0.78rem 1rem;
    color: var(--fs-white);
    font-family: var(--fs-font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--fs-transition);
    -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #555; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--fs-accent); }
.form-group select { cursor: pointer; }
.form-group select option { background: #1c1c1c; color: var(--fs-white); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input[type="file"] {
    padding: 0.55rem;
    cursor: pointer;
    color: #888;
}

.form-submit {
    width: 100%;
    background: var(--fs-accent);
    color: #fff;
    border: none;
    border-radius: var(--fs-radius);
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--fs-font-sans);
    cursor: pointer;
    margin-top: 0.5rem;
    transition: opacity 0.2s, transform 0.2s;
    letter-spacing: 0.02em;
}
.form-submit:hover { opacity: 0.85; transform: translateY(-1px); }
.form-submit.success { background: #1a8a4a; }

/* =========================================
   FOOTER
========================================= */
.site-footer {
    background: #050505;
    border-top: 1px solid var(--fs-border);
    padding: 4.5rem 5% 2.5rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .site-logo { font-size: 1.4rem; }
.footer-brand p {
    font-size: 0.88rem;
    color: #555;
    max-width: 270px;
    line-height: 1.65;
    margin-top: 0.7rem;
}

.footer-col h4 {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 1.3rem;
    font-weight: 600;
    font-family: var(--fs-font-sans);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a {
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--fs-transition);
}
.footer-col a:hover { color: var(--fs-white); }

.footer-email-link {
    color: var(--fs-accent) !important;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid var(--fs-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: #444; }

/* =========================================
   SCROLL REVEAL
========================================= */
.fs-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fs-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.fs-reveal-d1 { transition-delay: 0.1s; }
.fs-reveal-d2 { transition-delay: 0.2s; }
.fs-reveal-d3 { transition-delay: 0.3s; }
.fs-reveal-d4 { transition-delay: 0.4s; }

/* =========================================
   ELEMENTOR OVERRIDES
   Ensure Elementor sections use our styles
========================================= */
.elementor-section,
.elementor-container { max-width: 100% !important; }

.elementor-widget-heading .elementor-heading-title {
    font-family: var(--fs-font-serif) !important;
}

.elementor-widget-button .elementor-button {
    font-family: var(--fs-font-sans) !important;
    font-weight: 600 !important;
    border-radius: var(--fs-radius) !important;
}

/* Elementor color palette support */
.e-global__color--accent { --e-global-color-accent: var(--fs-accent) !important; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
    .creators-layout { flex-direction: column; gap: 3rem; }
    .forms-layout { flex-direction: column; }
}

@media (max-width: 768px) {
    .primary-nav { display: none; }
    .primary-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,10,10,0.97); padding: 1.5rem 5%; border-bottom: 1px solid var(--fs-border); }
    .primary-nav.open ul { flex-direction: column; gap: 1rem; }
    .nav-toggle { display: flex; }
    .footer-top { flex-direction: column; gap: 2rem; }
    .stats-bar { gap: 1.5rem; }
    section, .section-padding, .services-section, .creators-section, .why-section, .contact-section { padding: 5rem 5%; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; }
    .btn { text-align: center; }
}
