/*
Theme Name: Fist Agency
Theme URI: https://fist.az
Author: Fist Agency
Author URI: https://fist.az
Description: Modern dark theme for Fist Marketing Agency
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fist-agency
Tags: marketing, agency, dark, modern
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --red: #f90449;
    --red-dark: #c20339;
    --bg: #0a0a0a;
    --bg2: #111111;
    --bg3: #161616;
    --text: #f0ede8;
    --muted: #8a8680;
    --border: #1e1e1e;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(48px, 6vw, 88px); font-weight: 800; }
h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

p {
    font-size: 16px;
    line-height: 1.8;
    font-weight: 300;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 5%;
}

.section-label {
    font-size: 12px;
    color: var(--red);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    font-family: var(--font-heading);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--red);
    color: #fff;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-heading);
    display: inline-block;
    transition: all 0.2s;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 94% 100%, 0 100%);
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    color: #fff;
}

.btn-ghost {
    color: var(--muted);
    font-size: 14px;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.btn-ghost:hover {
    color: var(--text);
}

.btn-ghost svg {
    transition: transform 0.2s;
}

.btn-ghost:hover svg {
    transform: translateX(4px);
}

/* ============================================
   NAVIGATION
   ============================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fist-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.fist-logo-svg {
    height: 38px;
    width: auto;
    display: block;
}

/* Footer logonu bir az böyüt */
.footer-brand .fist-logo-svg {
    height: 44px;
}

/* Köhnə logo elementlər — custom logo yükləndikdə */
.site-logo .custom-logo-link img {
    height: 38px;
    width: auto;
    display: block;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 85% 100%, 0 100%);
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.05em;
    color: var(--text);
}

.main-navigation ul {
    display: flex;
    gap: 32px;
}

.main-navigation a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--text);
}

.nav-cta {
    background: var(--red);
    color: #fff !important;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-heading);
    transition: background 0.2s;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 92% 100%, 0 100%);
}

.nav-cta:hover {
    background: var(--red-dark) !important;
    color: #fff !important;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    font-family: var(--font-heading);
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    min-height: 100vh;
    padding: 140px 5% 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(249, 4, 73, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 65%;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 4, 73, 0.1);
    border: 1px solid rgba(249, 4, 73, 0.25);
    color: var(--red);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero-tag-dot {
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    margin-bottom: 28px;
}

.hero-title .line-red {
    color: var(--red);
}

.hero-title .line-outline {
    -webkit-text-stroke: 1px rgba(240, 237, 232, 0.3);
    color: transparent;
}

.hero-desc {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 44px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stats {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
}

.stat-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 20px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--red);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 500;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-wrap {
    background: var(--red);
    padding: 14px 0;
    overflow: hidden;
    border-top: 1px solid var(--red-dark);
    border-bottom: 1px solid var(--red-dark);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    padding: 0 40px;
    white-space: nowrap;
}

.marquee-dot {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 -20px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#services .section-label,
#services h2 {
    font-family: var(--font-heading);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.service-card {
    background: var(--bg);
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    cursor: default;
}

.service-card:hover {
    background: var(--bg2);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--red), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-num {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--red);
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
    display: block;
}

.service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    color: var(--muted);
    transition: color 0.3s;
}

.service-icon svg {
    width: 44px;
    height: 44px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.2;
}

.service-card:hover .service-icon {
    color: var(--red);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.service-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
    font-family: var(--font-body);
}

.service-arrow {
    position: absolute;
    top: 36px;
    right: 36px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    color: var(--muted);
}

.service-card:hover .service-arrow {
    opacity: 1;
    border-color: var(--red);
    color: var(--red);
}

/* ============================================
   WHY US SECTION
   ============================================ */
#why-us {
    background: var(--bg2);
    padding: 100px 5%;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-left p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 40px;
    margin-top: 16px;
}

.feature-list {
    display: flex;
    flex-direction: column;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border);
}

.metric-box {
    background: var(--bg3);
    padding: 36px 28px;
}

.metric-box.accent {
    background: var(--red);
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--text);
}

.metric-box.accent .metric-num,
.metric-box.accent .metric-label {
    color: #fff;
}

.metric-label {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.04em;
    font-family: var(--font-heading);
    font-weight: 400;
}

/* ============================================
   CTA SECTION
   ============================================ */
#cta {
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(249, 4, 73, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-inner p {
    color: var(--muted);
    font-size: 17px;
    margin: 16px 0 40px;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
#colophon {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 60px 5% 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 16px;
    font-weight: 300;
    max-width: 260px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--muted);
    font-size: 14px;
    font-family: var(--font-body);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--muted);
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.2s;
}

.social-link:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-stats {
        position: static;
        transform: none;
        flex-direction: row;
        margin-top: 48px;
    }

    .hero-content {
        max-width: 100%;
    }

    #hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-navigation,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation.toggled {
        display: flex;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg2);
        border-bottom: 1px solid var(--border);
        padding: 24px 5%;
    }

    .main-navigation.toggled ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-navigation.toggled li {
        border-bottom: 1px solid var(--border);
    }

    .main-navigation.toggled a {
        display: block;
        padding: 16px 0;
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
    }

    .stat-item {
        min-width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }
}
