/* ============================================
   CREDIFLOWW – WEB DESIGN & MARKETING AGENCY
   Modern, bold agency aesthetic
   ============================================ */

/* Body – dark base for agency site */
body.agency-site {
    background: var(--agency-bg);
}

/* Design tokens – professional, GMB-compliant: neutral, clean, trustworthy */
:root {
    --agency-bg: #0f1419;
    --agency-bg-light: #1a2332;
    --agency-bg-elevated: #151d2b;
    --agency-accent-muted: rgba(79, 70, 229, 0.15);
    --agency-accent: #4f46e5;
    --agency-accent-hover: #6366f1;
    --agency-glow: rgba(79, 70, 229, 0.25);
    --agency-text: #f1f5f9;
    --agency-text-muted: #94a3b8;
    --agency-card: rgba(255, 255, 255, 0.04);
    --agency-border: rgba(255, 255, 255, 0.06);
    --agency-border-strong: rgba(255, 255, 255, 0.1);
    --agency-gradient: linear-gradient(135deg, #0f1419 0%, #1e293b 50%, #0f172a 100%);
    --agency-hero-gradient: linear-gradient(180deg, #0f1419 0%, #1a2332 40%, #0f172a 100%);
    --agency-cta: #4f46e5;
}

/* Hero – gradient instead of construction image */
.agency-hero {
    background: var(--agency-hero-gradient) !important;
    background-size: cover !important;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.agency-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(79, 70, 229, 0.12), transparent 60%);
    pointer-events: none;
}

.agency-hero .hero-content {
    position: relative;
    z-index: 1;
}

.agency-hero .sc-h1,
.agency-hero h1 {
    font-family: 'Syne', 'Anton', sans-serif !important;
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-shadow: none !important;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.agency-hero .sc-hero-desc,
.agency-hero .hero-tagline {
    color: var(--agency-text-muted) !important;
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    text-shadow: none !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.agency-hero .hero-accent {
    background: var(--agency-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agency-hero .sc-divider,
.agency-hero .hero-divider {
    background: linear-gradient(90deg, transparent, var(--agency-accent), transparent) !important;
    height: 3px;
    border-radius: 2px;
}

/* All dividers – congruent indigo (no gold) */
.agency-site .sc-divider {
    background: var(--agency-accent) !important;
    height: 3px;
    border-radius: 2px;
}

/* CTA button */
.agency-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    background: var(--agency-cta);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 6px;
    transition: background 0.2s, box-shadow 0.2s;
}

.agency-cta-btn:hover {
    background: var(--agency-accent-hover);
    box-shadow: 0 4px 16px var(--agency-glow);
}

/* Navbar – dark agency style */
body.agency-site .navbar,
.agency-site .navbar {
    background-color: rgba(10, 15, 28, 0.95) !important;
    border-bottom-color: var(--agency-border) !important;
}

body.agency-site .navbar.scrolled,
.agency-site .navbar.scrolled {
    background-color: rgba(10, 15, 28, 0.98) !important;
    border-bottom-color: var(--agency-border) !important;
}

.agency-site .nav-links a,
.agency-site .navbar .logo a {
    color: var(--agency-text) !important;
}

.agency-site .navbar.scrolled .nav-links a,
.agency-site .navbar.scrolled .logo a,
.agency-site .navbar.scrolled .navbar-business-name {
    color: var(--agency-text) !important;
}

.agency-site .nav-phone-link,
.agency-site .call-us-btn {
    background: var(--agency-cta) !important;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Dropdown menus – visible, professional, congruent with dark navbar */
.agency-site .nav-dropdown .dropdown-menu,
body.agency-site .nav-dropdown .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    z-index: 10050 !important;
    min-width: 200px;
}

/* Force dark text in dropdowns – overrides nav-links a which makes them white */
.agency-site .nav-dropdown .dropdown-menu a,
.agency-site .nav-dropdown .dropdown-menu li a,
.agency-site .nav-language .dropdown-menu a,
.agency-site .nav-language .dropdown-menu li a,
body.agency-site .nav-dropdown .dropdown-menu a,
body.agency-site .nav-dropdown .dropdown-menu li a,
body.agency-site .nav-language .dropdown-menu a,
body.agency-site .nav-language .dropdown-menu li a {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
}

.agency-site .nav-dropdown .dropdown-menu a:hover,
body.agency-site .nav-dropdown .dropdown-menu a:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    color: var(--agency-accent) !important;
}

.agency-site .nav-dropdown:hover .dropdown-menu,
body.agency-site .nav-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
}

.agency-site .nav-language .dropdown-menu,
body.agency-site .nav-language .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Dropdown toggle & arrow – visible on dark nav */
.agency-site .dropdown-toggle,
body.agency-site .dropdown-toggle {
    color: var(--agency-text) !important;
}

.agency-site .dropdown-arrow,
body.agency-site .dropdown-arrow {
    color: var(--agency-text) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure navbar creates stacking context for dropdowns */
.agency-site .navbar {
    isolation: isolate;
}

/* Logo – sleek, professional CF mark */
.agency-site .logo-img,
body.agency-site .logo-img {
    width: 44px;
    height: 44px;
    max-height: 44px;
}

/* Services grid – agency cards */
.agency-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.agency-service-card {
    background: var(--agency-card);
    border: 1px solid var(--agency-border);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.agency-service-card:hover {
    border-color: var(--agency-accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.agency-service-card .icon {
    width: 44px;
    height: 44px;
    background: var(--agency-cta);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.agency-service-card h3 {
    color: var(--agency-text);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.agency-service-card p {
    color: var(--agency-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Dark section backgrounds */
.agency-dark-section {
    background: var(--agency-bg);
    color: var(--agency-text);
}

.agency-dark-section .sc-h2,
.agency-dark-section h2 {
    color: #fff !important;
}

.agency-dark-section .sc-body,
.agency-dark-section p {
    color: var(--agency-text-muted);
}

/* Footer – dark, up to 5 columns */
.agency-site .footer .footer-content {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 900px) {
    .agency-site .footer .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .agency-site .footer .footer-content {
        grid-template-columns: 1fr;
    }
}

.agency-site .footer {
    background: var(--agency-bg) !important;
    color: var(--agency-text);
    border-top: 1px solid var(--agency-border);
}

.agency-site .footer h3,
.agency-site .footer h4 {
    color: #fff !important;
}

.agency-site .footer a {
    color: var(--agency-text-muted) !important;
}

.agency-site .footer a:hover {
    color: var(--agency-accent) !important;
}

.agency-site .footer-bottom {
    border-top-color: var(--agency-border);
}

/* Portfolio / Work section */
.agency-portfolio-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.agency-portfolio-item {
    aspect-ratio: 16/10;
    background: var(--agency-card);
    border: 1px solid var(--agency-border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--agency-text-muted);
    font-size: 0.9rem;
}

.agency-portfolio-item span {
    text-align: center;
    padding: 1rem;
}

/* Gold bar / CTA bar – congruent with agency indigo theme (no gold) */
.agency-site .sc-gold-bar {
    background: var(--agency-bg-light) !important;
    border-top: 1px solid var(--agency-border);
}

.agency-site .sc-gold-bar-inner {
    background: transparent !important;
    border: 1px solid var(--agency-border-strong);
    border-radius: 12px;
    padding: 2.5rem var(--sc-edge, 20px) 3rem !important;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.agency-site .sc-gold-bar .sc-gold-bar-title {
    color: var(--agency-text) !important;
}

.agency-site .sc-gold-bar a,
.agency-site .sc-gold-bar .cta-link {
    color: var(--agency-accent) !important;
    font-weight: 600;
}

.agency-site .sc-gold-bar a:hover,
.agency-site .sc-gold-bar .cta-link:hover {
    color: var(--agency-accent-hover) !important;
}

.agency-site .sc-gold-bar p,
.agency-site .sc-gold-bar .cta-services {
    color: var(--agency-text-muted) !important;
}

.agency-site .sc-gold-bar .cta-services {
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

/* Testimonial cards in dark section */
.agency-dark-section .testimonial-card {
    background: var(--agency-card);
    border: 1px solid var(--agency-border);
}

.agency-dark-section .testimonial-text {
    color: var(--agency-text-muted);
}

.agency-dark-section .author-name {
    color: var(--agency-text);
}

/* ============================================
   UNIFIED AGENCY FORMS – Dark theme, congruent
   ============================================ */
.agency-site .sc-form-card,
.agency-site .portfolio-quote-form,
body.agency-site .sc-form-card,
body.agency-site .portfolio-quote-form,
.agency-dark-section .sc-form-card,
.agency-dark-section .portfolio-quote-form {
    background: var(--agency-bg-elevated, #0f1724) !important;
    border: 1px solid var(--agency-border-strong, rgba(255,255,255,0.1)) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    padding: 2rem !important;
    max-width: 100%;
    width: 100%;
}

.agency-site .sc-form-card h3,
.agency-site .portfolio-quote-form .quote-form-title,
.agency-dark-section .sc-form-card h3,
.agency-dark-section .portfolio-quote-form .quote-form-title {
    font-family: inherit !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--agency-text, #f1f5f9) !important;
    margin-bottom: 1.25rem !important;
}

.agency-site .sc-form-input,
.agency-site .sc-form-select,
.agency-site .sc-form-textarea,
.agency-dark-section .sc-form-input,
.agency-dark-section .sc-form-select,
.agency-dark-section .sc-form-textarea {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--agency-border, rgba(255,255,255,0.08)) !important;
    color: var(--agency-text, #f1f5f9) !important;
    font-size: 0.9375rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: 10px !important;
}

.agency-site .sc-form-select option {
    background: #1e293b;
    color: #f1f5f9;
}

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

.agency-site .sc-form-input::placeholder,
.agency-site .sc-form-textarea::placeholder,
.agency-dark-section .sc-form-input::placeholder,
.agency-dark-section .sc-form-textarea::placeholder {
    color: var(--agency-text-muted, #94a3b8) !important;
}

.agency-site .sc-form-submit,
.agency-site .quote-form-button,
.agency-dark-section .sc-form-submit,
.agency-dark-section .quote-form-button {
    background: var(--agency-cta) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 10px !important;
    font-size: 0.9375rem !important;
}

.agency-site .sc-form-submit:hover,
.agency-site .quote-form-button:hover,
.agency-dark-section .sc-form-submit:hover,
.agency-dark-section .quote-form-button:hover {
    opacity: 0.95 !important;
}

.agency-site .sc-form-trust,
.agency-dark-section .sc-form-trust {
    color: var(--agency-text-muted, #94a3b8) !important;
    font-size: 0.8125rem !important;
}

.agency-site .sc-form-checkbox-text,
.agency-site .sc-form-terms-link,
.agency-dark-section .sc-form-checkbox-text,
.agency-dark-section .sc-form-terms-link {
    color: var(--agency-text-muted, #94a3b8) !important;
}

.agency-site .sc-form-terms-link a,
.agency-dark-section .sc-form-terms-link a {
    color: var(--agency-accent) !important;
}

.agency-site .sc-form-checkbox-label,
.agency-dark-section .sc-form-checkbox-label {
    color: var(--agency-text-muted, #94a3b8) !important;
}

/* Form in sc-col-form-50 / dark sections */
.agency-site .sc-col-form-50 .sc-form-card,
.agency-dark-section .sc-col-form-50 .sc-form-card {
    background: var(--agency-bg-elevated, #0f1724) !important;
}

/* Professional polish – refined typography and spacing */
.agency-site .sc-h2 {
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}

.agency-site .navbar-business-name {
    display: inline !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
}

@media (max-width: 768px) {
    .agency-site .navbar-business-name {
        display: inline !important;
    }
}
