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

:root {
    --black: #FAF7F2;
    --surface: #F5F0E8;
    --surface-light: #EDE8DE;
    --accent: #D4AF37;
    --accent-glow: rgba(212, 175, 55, 0.4);
    --text: #1C1A17;
    --text-muted: #6B6560;
    --border: rgba(0, 0, 0, 0.1);
    --glass: rgba(250, 247, 242, 0.92);
    --transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background: var(--black);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

body {
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-outfit {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

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

/* Typography Utilities */
.text-accent {
    color: var(--accent);
}

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

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Navigation (Linear Island Style) */
nav {
    position: fixed;
    top: -120px;
    /* Hidden by default, revealed on scroll-up */
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    max-width: 1450px;
    z-index: 1000;
    background: var(--accent);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    padding: 10px 24px;
    transition: top 0.4s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

nav.nav-visible {
    top: 20px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1C1A17;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
}

.nav-links a {
    color: #1C1A17 !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.nav-links a:hover {
    color: rgba(28, 26, 23, 0.6) !important;
}

/* "Book a Call" style link in nav */
.nav-book-call {
    border: 1px solid #1C1A17 !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
}

nav.scrolled {
    padding: 8px 24px;
}

.cta-button {
    background: var(--accent);
    color: #030303;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid var(--accent);
    white-space: nowrap;
}

.cta-button:hover {
    background: transparent;
    color: var(--accent);
}

/* Both nav buttons use the same bordered style on the golden header */
nav .cta-button,
.nav-book-call {
    background: transparent;
    color: #1C1A17;
    border: 1px solid #1C1A17;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

nav .cta-button:hover,
.nav-book-call:hover {
    background: #d4af37;
    /* Clean off-white background matching the beige theme */
    color: #1C1A17;
    /* Dark text stays clearly visible */
    border-color: #1C1A17;
}

footer .cta-button {
    background: #1C1A17;
    color: #faf9f2ba;
    border-color: #1C1A17;
}

footer .cta-button:hover {
    background: transparent;
    color: #1C1A17;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 160px 0 80px;
    background-image: url('heroimg.png');
    background-size: cover;
    background-position: center 30%;
    /* Shift crop downward to show faces */
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient overlay: strong at bottom, lighter at top edges */
    background: linear-gradient(to bottom,
            rgba(10, 8, 5, 0.55) 0%,
            rgba(10, 8, 5, 0.70) 50%,
            rgba(10, 8, 5, 0.80) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-subline {
    font-size: clamp(2.4rem, 5vw, 4.2rem) !important;
    font-weight: 800;
    color: var(--text);
    display: block;
    margin-top: 10px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border);
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}

/* Seamless Logo Animation */
.logo-animation {
    padding: 80px 0;
    background: var(--black);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.logo-track {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

.logo-item {
    flex-shrink: 0;
    width: 200px;
    /* Reduced from 250px */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    /* Reduced padding */
}

.logo-item img {
    height: 35px;
    /* Fixed height for consistency */
    width: auto;
    max-width: 140px;
    opacity: 0.6;
    /* More subtle */
    transition: opacity 0.3s ease;
}

.logo-item img:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Restored Core Layout Styles */
.grid {
    display: grid;
    gap: 40px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

/* Results section: card spans 2 rows so it fills space beside heading + about-us */
#results .results-cards-wrap {
    grid-row: span 2;
}

/* About Us wrap: always in column 1 on desktop */
#results .about-us-wrap {
    grid-column: 1;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 60px;
    border-radius: 20px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

.bullet-block {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.pain-animation-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bullet-icon {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.5rem;
}

/* Typing Animation perfect alignment */
.typing-container {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
    font-family: 'Outfit', sans-serif;
}

span#typing-prefix {
    white-space: pre;
}

.typing-text {
    color: var(--accent);
    border-right: 4px solid var(--accent);
    padding-right: 15px;
    animation: cursor 0.8s step-end infinite;
}

@keyframes cursor {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent);
    }
}

section {
    padding: 160px 0;
}

/* Calendly Grid */
.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.calendly-card,
.calendly-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendly-card {
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #FFFFFF;
    order: 2;
    /* Always render on the RIGHT */
}

.calendly-copy {
    background: var(--surface-light);
    padding: 80px;
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: left;
    height: 100%;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.input-field {
    background: transparent;
    border-bottom: 1px solid var(--text-muted);
    border-top: none;
    border-left: none;
    border-right: none;
    color: var(--text);
    padding: 12px 0;
    font-size: 1.2rem;
    outline: none;
    transition: var(--transition);
}

.calc-output {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.projected-revenue {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    margin: 20px 0;
}

/* Instagram Reels */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.reel-slot {
    aspect-ratio: 9/16;
    background: var(--surface-light);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.reel-slot:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

.reel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

#canvas-web {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

footer {
    padding: 80px 0 40px;
    background: var(--accent);
    border-top: 1px solid var(--border);
    color: #030303;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    gap: 24px;
    margin-left: 40px;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.mobile-only-founders {
    display: none;
}

.desktop-only-founders {
    display: flex;
}

@media (max-width: 1024px) {
    nav {
        width: 95%;
        padding: 8px 16px;
    }

    .nav-content {
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
    }

    .brand-name {
        display: none;
        /* Hide tagline on tablet/mobile to save space */
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Mobile Header - smart show/hide same as desktop */
    nav {
        position: fixed;
        /* Keep fixed so JS animation works */
        border-radius: 15px;
        width: 92%;
        /* starts hidden at top: -120px (from base rule), JS adds nav-visible */
    }

    nav.nav-visible {
        top: 10px;
        /* Show at 10px from top when visible on mobile */
    }

    .nav-links {
        display: none !important;
        /* Standard mobile hidden nav */
    }

    .nav-content {
        justify-content: center;
        /* Center logo on mobile */
    }

    .logo-group {
        margin: 0 auto;
    }

    .brand-name {
        display: none !important;
    }

    /* Logo image stays visible on mobile so nav has content */
    .logo-img {
        height: 34px !important;
        display: block !important;
    }

    /* Mobile Hero */
    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }

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

    .hero-content {
        text-align: center;
    }

    .hero-image-container {
        display: none !important;
        /* Removed from mobile as requested */
    }

    .hero-title {
        font-size: 1.2rem !important;
        margin-bottom: 12px;
    }

    .hero-subline {
        font-size: 2rem !important;
        margin-top: 5px;
    }

    .delay-2 {
        flex-direction: column;
        gap: 12px !important;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 16px 32px !important;
    }

    /* Grids */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* Pain Section */
    .typing-container {
        font-size: 1.75rem;
        height: auto;
        min-height: 80px;
        justify-content: center;
        text-align: center;
        margin-top: 32px;
    }

    span#typing-prefix {
        display: block;
        /* Stack on mobile if needed */
        margin-bottom: 5px;
    }

    .pain-animation-box {
        text-align: center !important;
    }

    /* Results */
    .results-info h2 {
        font-size: 2.5rem;
    }

    .about-us.card {
        padding: 30px;
    }

    .result-card {
        padding: 30px;
    }

    .result-card h2 {
        font-size: 2.2rem !important;
    }

    /* Calculator Mobile Fix */
    .calculator {
        padding: 60px 0;
    }

    .calculator-container {
        padding: 60px 20px 30px;
        position: relative;
        /* Base for result badge */
        display: flex;
        flex-direction: column;
    }

    .calc-inputs {
        gap: 24px;
        width: 100%;
        margin-top: 40px;
    }

    .calc-output {
        position: static !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-top: 40px;
    }

    .projected-revenue {
        position: absolute;
        top: 25px;
        right: 25px;
        background: var(--accent);
        color: var(--black) !important;
        padding: 8px 15px;
        border-radius: 8px;
        font-size: 1.1rem !important;
        font-weight: 800;
        z-index: 20;
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .projected-revenue::before {
        content: 'Projected Revenue';
        font-size: 0.6rem;
        text-transform: uppercase;
        opacity: 0.8;
        line-height: 1;
        margin-bottom: 2px;
    }

    .calc-output p {
        display: none !important;
    }

    .calc-output a {
        display: none !important;
        /* Removed from mobile view as requested */
    }

    .calculator-container {
        padding: 60px 20px 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        justify-content: center;
        /* Centered without button */
    }

    /* Founder Images on Mobile - show INSIDE authority section, below heading */
    .mobile-only-founders {
        display: none !important;
        /* Hide the early placeholder */
    }

    .desktop-only-founders {
        display: flex !important;
        flex-direction: column;
        /* Stack: images then bullets */
        gap: 24px;
    }

    .founder-images {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Override the staggered desktop height */
    .founder-images .card {
        height: 220px !important;
        margin-top: 0 !important;
    }

    .story-content {
        padding-left: 0 !important;
    }

    /* Audit/Booking Mobile Fix */
    .audit-grid {
        display: flex;
        flex-direction: column;
        /* Widget top, Copy bottom */
        gap: 30px;
    }

    .calendly-card {
        order: 2;
        height: 600px !important;
        /* Smaller but visible */
    }

    .calendly-copy {
        order: 1;
        padding: 40px 24px;
        text-align: center;
    }

    .calendly-copy ul.audit-list {
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centers the block */
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .audit-list li {
        width: 100%;
        font-family: var(--font-body);
        line-height: 1.6;
    }

    .calendly-copy h2 {
        font-size: 2rem;
    }

    .promise-box {
        text-align: left;
    }

    /* Results/About-Us Mobile - correct hierarchy */
    #results .grid-2 {
        display: flex;
        flex-direction: column;
    }

    /* 1. Results heading + subline */
    .results-info {
        order: 1;
    }

    /* 2. Results performance card */
    .results-cards-wrap {
        order: 2;
        margin: 20px 0;
    }

    /* 3. About Us sits last */
    .about-us-wrap {
        order: 3;
    }

    /* Footer Mobile */
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .footer-nav a {
        margin-left: 0 !important;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .social-icons {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    /* Logo Strip Mobile */
    .logo-track {
        animation-duration: 25s;
    }

    .logo-item {
        width: 140px;
        padding: 0 20px;
    }

    .logo-item img {
        height: 25px;
    }

    /* Hide specific elements on mobile */
    .hide-on-mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-subline {
        font-size: 1.75rem !important;
    }

    .section-head h2 {
        font-size: 1.8rem !important;
    }
}
