/* =============================================
   GOLDMARK DIGITAL - Main Styles
   ============================================= */

:root {
    /* Gold Palette */
    --gold-100: #FFF9E6;
    --gold-200: #FFE999;
    --gold-300: #FFD700;
    --gold-400: #D4AF37;
    --gold-500: #B8962E;
    --gold-600: #8B7328;

    /* Neutrals */
    --black: #000000;
    --dark-900: #0A0A0A;
    --dark-800: #111111;
    --dark-700: #1A1A1A;
    --dark-600: #222222;
    --dark-500: #333333;
    --white: #FFFFFF;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
}

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

html {
    font-size: 16px;
}

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

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo-gold {
    color: var(--gold-300);
}

.logo-light {
    color: var(--gray-400);
    margin-left: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--gold-300);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 20px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu-inner {
    background: var(--dark-800);
    border: 1px solid var(--dark-600);
    border-radius: 10px;
    padding: 10px;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown-menu-inner a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-dropdown-menu-inner a:hover {
    background: var(--dark-700);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    padding: 4px;
    cursor: pointer;
}

.nav-hamburger .icon-close {
    display: none;
}

.nav-hamburger.is-open .icon-menu {
    display: none;
}

.nav-hamburger.is-open .icon-close {
    display: block;
}

.nav-cta {
    background: var(--white) !important;
    color: var(--black) !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--gray-300) !important;
    color: var(--black) !important;
}

/* Sections */
.section {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gold-400);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--white), var(--gray-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    padding-top: 100px;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-title .line {
    display: block;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .cycle-word {
    display: inline-block;
    color: var(--white);
    white-space: nowrap;
    transition: opacity 0.25s ease;
}

.hero-title .cycle-word.is-fading {
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--black);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Audit Prompt Bar */
.audit-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: var(--dark-800);
    border: 1px solid var(--dark-600);
    border-radius: 999px;
    padding: 6px 6px 6px 24px;
}

.audit-bar:focus-within {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.audit-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 14px 0;
}

.audit-input::placeholder {
    color: var(--gray-400);
}

.audit-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
}

.audit-submit:hover {
    background: var(--gray-300);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Services Section */
.services {
    background: linear-gradient(180deg, var(--black) 0%, var(--dark-900) 100%);
    padding: var(--section-padding) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    scroll-margin-top: 100px;
}

.service-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.service-image {
    position: relative;
    aspect-ratio: 16 / 11;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image img.img-error {
    display: none;
}

.service-icon {
    width: 30%;
    max-width: 100px;
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: rgba(0, 0, 0, 0.55);
}

.service-body {
    padding: 32px;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-900);
}

.service-card p {
    color: var(--dark-500);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark-900);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
}

.service-cta:hover {
    background: var(--gold-500);
    color: var(--black);
}

/* Portfolio Section */
.portfolio {
    background: var(--black);
    padding: var(--section-padding) 0;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

.logo-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: logoScroll 28s linear infinite;
}

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

@keyframes logoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    min-width: 240px;
    flex-shrink: 0;
    margin: 0 40px;
}

.logo-item img {
    max-height: 100%;
    max-width: 240px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Case Studies Hub */
.case-studies-hero {
    min-height: 45vh;
    padding-top: 160px;
    padding-bottom: 20px;
}

.cs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 auto 60px;
}

.cs-filter-btn {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: transparent;
    border: 1px solid var(--dark-500);
    border-radius: 999px;
    padding: 10px 22px;
    cursor: pointer;
}

.cs-filter-btn:hover {
    border-color: var(--gray-300);
}

.cs-filter-btn.active {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.case-studies-grid-section {
    background: var(--black);
    padding: 0 0 var(--section-padding);
    min-height: 0;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-study-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    display: block;
}

.case-study-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.case-study-card.cs-hidden {
    display: none;
}

.cs-card-image {
    aspect-ratio: 16 / 11;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cs-card-image .cs-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92%;
    max-height: 92%;
}

.cs-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cs-card-body {
    padding: 32px;
}

.cs-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold-600);
    background: var(--gold-100);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.case-study-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-900);
    margin-bottom: 10px;
}

.case-study-card p {
    color: var(--dark-500);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cs-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-900);
}

.case-study-card:hover .cs-card-link {
    color: var(--gold-600);
}

/* Case Study Detail Page */
.cs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-decoration: none;
}

.cs-back-link:hover {
    color: var(--white);
}

.cs-detail-hero {
    min-height: 45vh;
    padding-top: 160px;
    padding-bottom: 40px;
    text-align: center;
}

.cs-detail-logo {
    display: inline-block;
    background: var(--white);
    border-radius: 16px;
    padding: 18px 28px;
    margin-bottom: 28px;
}

.cs-detail-logo img {
    max-height: 90px;
    max-width: 320px;
    object-fit: contain;
    display: block;
}

.cs-detail-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cs-detail-tagline {
    font-size: 1.15rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

.cs-detail-body {
    background: linear-gradient(180deg, var(--black) 0%, var(--dark-900) 100%);
    padding: 0 0 var(--section-padding);
    min-height: 0;
}

.cs-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: var(--container-max);
    margin: 0 auto 80px;
    padding: 0 40px;
}

.cs-detail-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.cs-detail-block p {
    color: var(--gray-400);
    line-height: 1.7;
}

.cs-detail-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-detail-block li {
    color: var(--gray-400);
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
}

.cs-detail-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-400);
}

.cs-detail-outcome {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.cs-detail-outcome-box {
    background: var(--dark-800);
    border: 1px solid var(--dark-600);
    border-radius: 20px;
    padding: 40px;
}

.cs-detail-outcome-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cs-detail-outcome-box p {
    color: var(--gray-400);
    line-height: 1.7;
}

.cs-detail-cta {
    text-align: center;
    padding: var(--section-padding) 0;
    background: var(--dark-900);
}

.cs-detail-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 24px;
}

/* Contact Section */
.contact {
    background: var(--dark-900);
    padding: var(--section-padding) 0;
}

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

.contact-info .section-tag,
.contact-info .section-title,
.contact-info .section-desc {
    text-align: left;
}

.contact-info .section-desc {
    margin: 0;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--gray-400);
}

.contact-item svg {
    stroke: var(--gold-400);
    flex-shrink: 0;
}

/* Contact Form */
.contact-form {
    background: var(--dark-800);
    border: 1px solid var(--dark-600);
    border-radius: 16px;
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: var(--font-sans);
    background: var(--dark-900);
    border: 1px solid var(--dark-500);
    border-radius: 8px;
    color: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--dark-500);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-group select option {
    background: var(--dark-800);
    color: var(--white);
}

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

.form-group-checkbox {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-300);
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--gold-400);
    cursor: pointer;
}

/* Footer */
.footer {
    background: var(--black);
    padding: 60px 0 40px;
    border-top: 1px solid var(--dark-700);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
}

.footer-tagline {
    color: var(--gray-400);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.footer-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
}

.footer-flag-img {
    width: 60px;
    height: auto;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.footer-flag .footer-flag-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--white);
    margin-top: 8px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--dark-700);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--dark-500);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: left;
    padding-bottom: 50px;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 18px;
}

.footer-col .footer-logo {
    margin-bottom: 12px;
}

.footer-col .footer-logo img {
    max-width: 160px;
}

.footer-col p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

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


/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    .services-grid {
        gap: 20px;
    }

    .service-body {
        padding: 24px;
    }

    .contact-wrapper {
        gap: 60px;
    }

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

    .cs-detail-grid {
        gap: 40px;
    }
}

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

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

    .nav-container {
        padding: 0 20px;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--dark-900);
        border-bottom: 1px solid var(--dark-600);
        padding: 8px 20px 20px;
        max-height: calc(100vh - 100%);
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 14px 2px;
        border-bottom: 1px solid var(--dark-700);
    }

    .nav-dropdown-menu {
        display: block;
        position: static;
        transform: none;
        padding-top: 0;
    }

    .nav-dropdown-menu-inner {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 8px 16px;
        min-width: 0;
    }

    .nav-dropdown-menu-inner a {
        border-bottom: none;
        padding: 10px 2px;
        color: var(--gray-400);
    }

    .nav-cta {
        margin-top: 12px;
        text-align: center;
        justify-content: center;
    }

    /* Mobile logo swap */
    .logo-mobile {
        display: block;
    }

    .logo-desktop {
        display: none;
    }

    /* Smaller book button on mobile */
    .nav-cta {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .hero-content,
    .section-container {
        padding: 0 20px;
    }

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

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .cs-detail-grid {
        grid-template-columns: 1fr;
    }

    .case-studies-hero,
    .cs-detail-hero {
        padding-top: 120px;
    }

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

    .contact-info .section-tag,
    .contact-info .section-title,
    .contact-info .section-desc {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .audit-bar {
        padding-left: 16px;
    }

    .audit-input {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }
}
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 38px;        /* sweet spot for nav bars */
  width: auto;         /* keeps aspect ratio */
  max-width: 180px;    /* prevents oversized logos */
  object-fit: contain;
  display: block;
}

/* Mobile logo toggle */
.logo-mobile {
  display: none;
}

.logo-desktop {
  display: block;
}