/* ============================================
   CREDIFLOWW – PREMIUM AGENCY DESIGN
   Practice what we preach: high-end, refined
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Premium design tokens – richer, darker, more refined */
:root {
    --agency-bg: #05080c;
    --agency-bg-light: #0a0f16;
    --agency-bg-elevated: #0f1724;
    --agency-bg-card: rgba(15, 23, 36, 0.6);
    --agency-accent: #6366f1;
    --agency-accent-hover: #818cf8;
    --agency-accent-muted: rgba(99, 102, 241, 0.12);
    --agency-glow: rgba(99, 102, 241, 0.4);
    --agency-text: #f1f5f9;
    --agency-text-muted: #94a3b8;
    --agency-text-subtle: #64748b;
    --agency-card: rgba(255, 255, 255, 0.02);
    --agency-card-hover: rgba(255, 255, 255, 0.05);
    --agency-border: rgba(255, 255, 255, 0.05);
    --agency-border-strong: rgba(255, 255, 255, 0.08);
    --agency-cta: #6366f1;
    --premium-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --premium-font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --premium-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --premium-shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.5);
}

/* Premium typography – tighter tracking, clearer hierarchy */
body.agency-site {
    font-family: var(--premium-font) !important;
    background: var(--agency-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.agency-site .sc-h1,
.agency-site h1,
.agency-hero .sc-h1,
.agency-hero h1 {
    font-family: var(--premium-font-display) !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.02 !important;
}

.agency-site .sc-h2,
.agency-site h2 {
    font-family: var(--premium-font-display) !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
}

.agency-site .sc-body,
.agency-site p {
    font-family: var(--premium-font) !important;
    letter-spacing: 0.02em;
}

/* Hero – premium, cinematic */
.agency-hero {
    min-height: 92vh !important;
    background: 
        radial-gradient(ellipse 120% 100% at 50% -30%, rgba(99, 102, 241, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 60% at 85% 40%, rgba(99, 102, 241, 0.1), transparent 50%),
        radial-gradient(ellipse 50% 40% at 15% 60%, rgba(99, 102, 241, 0.06), transparent 45%),
        linear-gradient(180deg, #05080c 0%, #0a0f16 40%, #05080c 100%) !important;
    position: relative;
}

.agency-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    opacity: 0.6;
}

/* Subtle grain overlay – premium texture */
.agency-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.agency-hero .sc-h1,
.agency-hero h1 {
    font-size: clamp(3rem, 7vw, 5rem) !important;
}

.agency-hero .sc-hero-desc,
.agency-hero .hero-tagline {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem) !important;
    line-height: 1.7 !important;
    color: var(--agency-text-muted) !important;
}

/* Premium CTA buttons */
.agency-cta-btn {
    padding: 1rem 2.25rem !important;
    font-family: var(--premium-font) !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    border-radius: 10px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.agency-cta-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 32px var(--agency-glow) !important;
}

/* Premium service cards – glass, refined */
.agency-service-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.01) 100%) !important;
    border: 1px solid var(--agency-border) !important;
    border-radius: 14px !important;
    padding: 2.5rem !important;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--premium-shadow);
}

.agency-service-card:hover {
    background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.02) 100%) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
    transform: translateY(-6px) !important;
    box-shadow: var(--premium-shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.1) !important;
}

.agency-service-card .icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
    background: linear-gradient(145deg, var(--agency-accent) 0%, #818cf8 100%) !important;
    box-shadow: 0 6px 20px var(--agency-glow);
}

/* Portfolio cards – refined */
.agency-portfolio-item {
    border-radius: 12px !important;
    border: 1px solid var(--agency-border) !important;
    background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.agency-portfolio-item:hover {
    border-color: rgba(99, 102, 241, 0.3) !important;
    transform: scale(1.03) !important;
    box-shadow: var(--premium-shadow);
}

/* Testimonial cards – premium */
.agency-dark-section .testimonial-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%) !important;
    border: 1px solid var(--agency-border) !important;
    border-radius: 14px !important;
    padding: 2.25rem !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--premium-shadow);
}

.agency-dark-section .testimonial-card:hover {
    border-color: var(--agency-border-strong) !important;
    transform: translateY(-2px);
    box-shadow: var(--premium-shadow-lg);
}

/* Premium forms */
.agency-site .sc-form-card,
.agency-dark-section .sc-form-card {
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
}

.agency-site .sc-form-input,
.agency-site .sc-form-select,
.agency-site .sc-form-textarea,
.agency-site input[type="text"],
.agency-site input[type="email"],
.agency-site input[type="tel"],
.agency-site textarea {
    border-radius: 10px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.agency-site .sc-form-input:focus,
.agency-site .sc-form-select:focus,
.agency-site .sc-form-textarea:focus,
.agency-site input:focus,
.agency-site textarea:focus {
    border-color: var(--agency-accent) !important;
    box-shadow: 0 0 0 3px var(--agency-accent-muted) !important;
    outline: none !important;
}

/* Testimonial stars – accent color */
.agency-site .testimonial-rating {
    color: #fbbf24 !important;
    letter-spacing: 0.15em;
}

.agency-site .testimonial-text {
    font-family: var(--premium-font) !important;
    line-height: 1.7 !important;
}

.agency-site .author-name {
    font-family: var(--premium-font-display) !important;
    font-weight: 600 !important;
}

/* Section spacing – more generous */
.agency-dark-section {
    padding: 6rem 0 !important;
}

/* CTA bar – premium */
.agency-site .sc-gold-bar {
    padding: 4rem 2rem !important;
}

.agency-site .sc-gold-bar .sc-gold-bar-title {
    font-family: var(--premium-font-display) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
}

.agency-site .sc-gold-bar-inner {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.08), var(--premium-shadow);
}

/* Navbar – refined glass */
body.agency-site .navbar {
    background: rgba(5, 8, 12, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--agency-border) !important;
}

body.agency-site .navbar.scrolled {
    background: rgba(5, 8, 12, 0.95) !important;
}

/* Footer – premium */
.agency-site .footer {
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
    background: var(--agency-bg) !important;
    border-top: 1px solid var(--agency-border) !important;
}

.agency-site .footer .footer-content {
    padding-bottom: 2rem;
}

.agency-site .footer .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--agency-border);
}

/* Divider – subtle gradient */
.agency-hero .sc-divider,
.agency-hero .hero-divider {
    height: 4px !important;
    border-radius: 2px !important;
}

/* Premium link hover */
.agency-site a:not(.agency-cta-btn):hover {
    transition: color 0.2s ease !important;
}

/* Smooth scroll */
.agency-site {
    scroll-behavior: smooth;
}

/* Quote form widget – premium button styling */
.agency-site [data-quote-form] button[type="submit"],
.agency-site .ghl-form-submit,
.agency-site .lead-form-submit {
    font-family: var(--premium-font) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.agency-site [data-quote-form] button[type="submit"]:hover,
.agency-site .ghl-form-submit:hover,
.agency-site .lead-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--agency-glow);
}

/* Footer – refined link hover */
.agency-site .footer a:hover {
    color: var(--agency-accent) !important;
}
