/*
Theme Name: VW Finance
Theme URI: https://vwfinance.io
Author: VW Finance
Description: Dark navy fintech theme for VW Finance, a Florida invoice factoring company. Homepage with hero, industry pages (trucking, staffing, B2B, importers, construction), How It Works, Rates & FAQ, About, Contact with funding application form, and blog templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vwfinance
Tags: business, finance, custom-menu, custom-logo, blog
*/

:root {
  --navy: #0a1428;
  --navy-2: #101e3c;
  --navy-3: #16264a;
  --ink: #0f172a;
  --body: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --line-dark: rgba(255, 255, 255, 0.08);
  --accent: #4f8ef7;
  --accent-2: #2dd4bf;
  --gold: #f5b942;
  --white: #ffffff;
  --bg: #f8fafc;
  --radius: 14px;
  --font-head: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(10, 20, 40, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 10px; font-weight: 700; font-size: 16px; font-family: var(--font-head); cursor: pointer; border: 2px solid transparent; transition: all 0.2s ease; text-decoration: none !important; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #3b7de6; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79, 142, 247, 0.35); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 999; background: rgba(10, 20, 40, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.site-brand .brand-mark { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: 17px; }
.site-brand .brand-name { font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--white); letter-spacing: -0.01em; }
.site-brand .brand-name span { color: var(--accent-2); }
.main-nav ul { list-style: none; display: flex; gap: 28px; }
.main-nav a { color: rgba(255, 255, 255, 0.82); font-weight: 600; font-size: 15px; text-decoration: none !important; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--white); }
.main-nav ul ul { display: none; position: absolute; background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: 10px; padding: 10px 0; min-width: 220px; flex-direction: column; gap: 0; margin-top: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.main-nav li { position: relative; }
.main-nav li:hover > ul { display: flex; }
.main-nav ul ul a { display: block; padding: 9px 18px; }
.main-nav ul ul a:hover { background: var(--navy-3); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .login-link { color: rgba(255, 255, 255, 0.82); font-weight: 600; font-size: 15px; text-decoration: none !important; }
.header-cta .login-link:hover { color: var(--white); }
.header-cta .btn { padding: 11px 22px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.25s; }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 80% -10%, rgba(79, 142, 247, 0.25), transparent 60%), radial-gradient(800px 500px at 10% 110%, rgba(45, 212, 191, 0.15), transparent 60%), var(--navy); color: var(--white); padding: 110px 0 130px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero .eyebrow { color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: clamp(42px, 6vw, 68px); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero p.lede { color: rgba(255, 255, 255, 0.75); font-size: 20px; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(8px); }
.hero-card .hc-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.hero-card .hc-row:last-child { border-bottom: none; }
.hero-card .hc-label { color: var(--muted); font-size: 14px; }
.hero-card .hc-value { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: 18px; }
.hero-card .hc-value.pos { color: var(--accent-2); }
.hero-card .hc-badge { background: rgba(45, 212, 191, 0.15); color: var(--accent-2); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }

/* Stats band */
.stats-band { background: var(--navy-2); border-top: 1px solid var(--line-dark); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .stat-num { font-family: var(--font-head); font-weight: 800; font-size: 34px; color: var(--white); }
.stat .stat-num span { color: var(--accent-2); }
.stat .stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg); }
.section.dark { background: var(--navy); color: var(--white); }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.section.dark .section-head p { color: rgba(255, 255, 255, 0.7); }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .card-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, rgba(79, 142, 247, 0.12), rgba(45, 212, 191, 0.12)); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { font-size: 15.5px; }
.card .card-link { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 15px; }

/* Industries grid */
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry-card { background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 32px 28px; color: var(--white); transition: transform 0.2s, border-color 0.2s; display: block; text-decoration: none !important; }
.industry-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.industry-card .ind-icon { font-size: 30px; margin-bottom: 16px; }
.industry-card h3 { color: var(--white); font-size: 20px; margin-bottom: 8px; }
.industry-card p { color: var(--muted); font-size: 14.5px; }
.industry-card .ind-more { color: var(--accent-2); font-weight: 700; font-size: 14px; margin-top: 14px; display: inline-block; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step .step-num { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--white); background: var(--accent); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; }

/* Statement band */
.statement { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--white); padding: 88px 0; text-align: center; }
.statement h2 { color: var(--white); font-size: clamp(28px, 4vw, 40px); max-width: 820px; margin: 0 auto 18px; }
.statement h2 em { font-style: normal; color: var(--gold); }
.statement p { color: rgba(255, 255, 255, 0.7); max-width: 640px; margin: 0 auto; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 18px; }
.split ul.checks { list-style: none; margin-top: 22px; }
.split ul.checks li { padding-left: 34px; position: relative; margin-bottom: 14px; font-size: 16px; }
.split ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(45, 212, 191, 0.15); color: #0d9488; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.split-visual { background: var(--navy); border-radius: var(--radius); padding: 40px; color: var(--white); }
.split-visual .sv-row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.split-visual .sv-row:last-child { border-bottom: none; }
.split-visual .sv-row strong { color: var(--accent-2); font-family: var(--font-head); }

/* Testimonials */
.testimonials { position: relative; }
.testimonial-track { max-width: 780px; margin: 0 auto; text-align: center; }
.testimonial { display: none; }
.testimonial.active { display: block; animation: fadeIn 0.5s ease; }
.testimonial blockquote { font-size: clamp(20px, 2.6vw, 26px); font-family: var(--font-head); font-weight: 600; color: var(--white); line-height: 1.4; margin-bottom: 26px; }
.testimonial .t-author { color: var(--accent-2); font-weight: 700; }
.testimonial .t-role { color: var(--muted); font-size: 14px; }
.t-dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.t-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.25); cursor: pointer; padding: 0; }
.t-dots button.active { background: var(--accent-2); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #6366f1 100%); color: var(--white); padding: 76px 0; text-align: center; border-radius: 0; }
.cta-band h2 { color: var(--white); font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 30px; }

/* News grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card .news-thumb { height: 180px; background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-body { padding: 24px; }
.news-card .news-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.news-card h3 { font-size: 18px; margin-bottom: 10px; }
.news-card h3 a { color: var(--ink); text-decoration: none !important; }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { font-size: 14.5px; }

/* Page hero (inner pages) */
.page-hero { background: radial-gradient(900px 400px at 85% -20%, rgba(79, 142, 247, 0.25), transparent 60%), var(--navy); color: var(--white); padding: 76px 0; }
.page-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, 0.72); font-size: 19px; max-width: 640px; }
.page-hero .eyebrow { color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; margin-bottom: 14px; }

/* Content / prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 30px; margin: 44px 0 16px; }
.prose h3 { font-size: 23px; margin: 34px 0 12px; }
.prose p, .prose ul, .prose ol { margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 26px; }
.prose blockquote { border-left: 4px solid var(--accent); padding: 8px 0 8px 24px; color: var(--ink); font-style: italic; margin: 26px 0; }
.prose img { border-radius: var(--radius); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; background: var(--white); overflow: hidden; }
.faq-item button.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 56px 22px 24px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); cursor: pointer; position: relative; }
.faq-item button.faq-q::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--accent); transition: transform 0.2s; }
.faq-item.open button.faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-a { display: none; padding: 0 24px 22px; font-size: 15.5px; }
.faq-item.open .faq-a { display: block; }

/* Rates table */
.rates-table { width: 100%; border-collapse: collapse; margin: 30px 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rates-table th { background: var(--navy); color: var(--white); font-family: var(--font-head); padding: 16px 20px; text-align: left; font-size: 15px; }
.rates-table td { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rates-table tr:last-child td { border-bottom: none; }
.rates-table td strong { color: var(--ink); }

/* Contact / form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info h3 { font-size: 20px; margin-bottom: 10px; }
.contact-info .ci-item { margin-bottom: 26px; }
.contact-info .ci-item p { font-size: 16px; }
.vwf-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.vwf-form label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.vwf-form input, .vwf-form select, .vwf-form textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--font-body); font-size: 15px; margin-bottom: 20px; background: var(--bg); color: var(--ink); }
.vwf-form input:focus, .vwf-form select:focus, .vwf-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-notice { background: rgba(45, 212, 191, 0.12); border: 1px solid rgba(45, 212, 191, 0.4); color: #0d9488; padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-weight: 600; }

/* Blog */
.blog-layout { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 820px; margin: 0 auto; }
article.post-card { border-bottom: 1px solid var(--line); padding-bottom: 40px; }
article.post-card .post-meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
article.post-card h2 { font-size: 28px; margin-bottom: 12px; }
article.post-card h2 a { color: var(--ink); text-decoration: none !important; }
article.post-card h2 a:hover { color: var(--accent); }
.single-hero { padding: 64px 0 40px; }
.single-hero h1 { font-size: clamp(30px, 4.5vw, 46px); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none !important; }
.pagination .page-numbers.current { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* Footer */
.site-footer { background: var(--navy); color: var(--muted); padding: 72px 0 0; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-grid h4 { color: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid a { color: var(--muted); font-size: 15px; text-decoration: none !important; }
.footer-grid a:hover { color: var(--white); }
.footer-about p { font-size: 14.5px; margin-top: 14px; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; flex-wrap: wrap; gap: 10px; }
.footer-bottom .disclaimer { max-width: 100%; font-size: 12.5px; color: rgba(148, 163, 184, 0.7); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .cards-3, .industries-grid, .news-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 80px 0 90px; }
  .hero-visual { display: none; }
}
@media (max-width: 700px) {
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--navy-2); padding: 20px 24px; border-bottom: 1px solid var(--line-dark); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 10px 0; font-size: 17px; }
  .main-nav ul ul { display: block; position: static; border: none; box-shadow: none; background: transparent; padding: 0 0 0 18px; margin: 0; }
  .nav-toggle { display: block; }
  .header-cta .login-link { display: none; }
  .cards-3, .industries-grid, .news-grid, .steps-grid, .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* WP core */
.alignwide { max-width: 1180px; }
.alignfull { width: 100%; max-width: none; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
