/* ============================================
   Heedifi — Influencer Marketing Agency
   Dark monochrome theme
   Fonts: Space Grotesk (display) + Inter (body)
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --border: #1a1a1a;
    --border-light: #222222;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #555555;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-py: 120px;
    --container-max: 1200px;
    --container-px: 24px;

    /* Misc */
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--transition);
}

a:hover {
    opacity: 0.7;
}

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

ul {
    list-style: none;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
}

.section {
    padding: var(--section-py) 0;
}

.section__label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn--outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn--outline:hover {
    background-color: var(--bg-card);
    border-color: var(--text-muted);
    opacity: 1;
}

.btn--full {
    width: 100%;
}

/* ---------- Cards ---------- */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    margin-bottom: 20px;
}

.card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar--scrolled {
    background-color: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
}

.navbar__logo:hover {
    opacity: 1;
}

.navbar__logo-img {
    height: 28px;
    width: auto;
}

.navbar__links {
    display: flex;
    gap: 40px;
}

.navbar__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
    color: var(--text-primary);
    opacity: 1;
}

.navbar__cta {
    font-size: 14px;
    padding: 10px 24px;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    filter: grayscale(100%) brightness(0.35);
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: -1px;
}

.hero__subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    border-top: 1px solid var(--border);
}

.services__group {
    margin-top: 64px;
}

.services__group-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    border-top: 1px solid var(--border);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 64px;
}

.step {
    position: relative;
}

.step__number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    color: var(--border-light);
    line-height: 1;
    margin-bottom: 20px;
}

.step__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   RESULTS
   ============================================ */
.results {
    border-top: 1px solid var(--border);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
    margin-bottom: 80px;
    padding: 48px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 14px;
    color: var(--text-muted);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial__quote {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.testimonial__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial__role {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    border-top: 1px solid var(--border);
}

.about__inner {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 80px;
    align-items: start;
}

.about__photo {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    object-fit: cover;
    aspect-ratio: 3 / 4;
    filter: grayscale(100%);
}

.about__content .section__title {
    margin-bottom: 24px;
}

.about__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about__details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
}

.about__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.about__detail svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    border-top: 1px solid var(--border);
}

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

.contact__text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact__detail svg {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__detail-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact__detail a,
.contact__detail span {
    font-size: 15px;
    color: var(--text-secondary);
}

.contact__socials {
    display: flex;
    gap: 16px;
}

.contact__socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.contact__socials a:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
    opacity: 1;
}

/* ---------- Contact Form ---------- */
.contact__form {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.form__group {
    margin-bottom: 24px;
}

.form__group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: var(--text-muted);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    border-color: var(--text-muted);
}

.form__group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form__group textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: none;
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.form__success.show {
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer__logo {
    display: flex;
    align-items: center;
}

.footer__logo-img {
    height: 24px;
    width: auto;
}

.footer__links {
    display: flex;
    gap: 32px;
}

.footer__links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--text-primary);
    opacity: 1;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__socials a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer__socials a:hover {
    color: var(--text-primary);
    opacity: 1;
}

.footer__bottom {
    padding-top: 32px;
    text-align: center;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-py: 80px;
    }

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

    .steps {
        gap: 32px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

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

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

    .contact__inner {
        gap: 48px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-py: 64px;
        --container-px: 20px;
    }

    /* Nav mobile */
    .navbar__links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    .navbar__links.open {
        opacity: 1;
        pointer-events: auto;
    }

    .navbar__links a {
        font-size: 24px;
        color: var(--text-primary);
    }

    .navbar__cta {
        display: none;
    }

    .navbar__toggle {
        display: flex;
        z-index: 1001;
    }

    .navbar__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero mobile */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero__title {
        letter-spacing: -0.5px;
    }

    .hero__subtitle {
        font-size: 17px;
    }

    .hero__ctas {
        flex-direction: column;
    }

    .hero__ctas .btn {
        width: 100%;
    }

    /* Services mobile */
    .services__grid {
        grid-template-columns: 1fr;
    }

    /* Steps mobile */
    .steps {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .step__number {
        font-size: 48px;
    }

    /* Stats mobile */
    .stats {
        grid-template-columns: 1fr 1fr;
        padding: 32px;
    }

    .stat__number {
        font-size: 16px;
    }

    /* Testimonials mobile */
    .testimonials {
        grid-template-columns: 1fr;
    }

    /* About mobile */
    .about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__photo {
        max-width: 280px;
        margin: 0 auto;
    }

    /* Contact mobile */
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact__form {
        padding: 28px;
    }

    /* Footer mobile */
    .footer__top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .hero__ctas .btn {
        padding: 16px 24px;
    }
}
