/* state-page.css - shared styles for data-driven state boat-financing pages
   (generated from _data/stateData/*.json via boat-financing/states.njk) */

/* ---- HERO ---- */
.hero { padding: 5rem 2rem 4rem; background: linear-gradient(160deg, #0c1a2e 0%, #0e2a4a 40%, #0c1a2e 100%); position: relative; overflow: hidden; }
.hero-glow { position: absolute; top: 20%; right: -5%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(2,132,199,0.1) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); color: #fff; padding: 0.4rem 1rem; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; border: 1px solid rgba(255,255,255,0.12); }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.25rem; letter-spacing: -0.02em; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, #0284c7, #7dd3fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-text > p { font-size: 1.05rem; color: rgba(255,255,255,0.6); margin-bottom: 2rem; max-width: 500px; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: #0284c7; }
.hero .btn-primary:hover { background: #e0f2fe; transform: translateY(-1px); }
.hero .btn-outline { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.2); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.18); }
.state-info-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 2rem; color: #fff; }
.state-info-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.5rem; }
.state-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.state-stat { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 1.25rem; text-align: center; }
.state-stat-value { font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg, #7dd3fc, #38bdf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.25rem; }
.state-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- SHARED LAYOUT ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.section-header p { color: var(--text-secondary); max-width: 650px; margin: 0 auto; font-size: 1.05rem; }
.section-alt { background: var(--bg-light); }

/* ---- TOC ---- */
.toc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 0; }
.toc h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: #0284c7; }
.toc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.toc-grid a { font-size: 0.88rem; color: var(--text); text-decoration: none; padding: 0.4rem 0.6rem; border-radius: 6px; transition: all 0.15s; }
.toc-grid a:hover { background: #e0f2fe; color: #0284c7; }

/* ---- CONTENT PROSE ---- */
.content-section { max-width: 800px; margin: 0 auto; }
.content-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.content-section h3 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
.content-section p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }
.content-section ul { list-style: none; padding: 0; }
.content-section ul li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--text-secondary); }
.content-section ul li strong { color: var(--text); }
.content-section a { color: #0284c7; font-weight: 500; }

/* ---- DATA TABLES ---- */
.data-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table thead { background: #f8fafc; }
.data-table th { padding: 0.9rem 1.25rem; text-align: left; font-weight: 700; border-bottom: 2px solid var(--border); white-space: nowrap; }
.data-table td { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #f8fafc; }
.tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.tag-green { background: #dcfce7; color: #166534; }
.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-amber { background: #fef3c7; color: #92400e; }
.tag-red { background: #fee2e2; color: #991b1b; }

/* ---- INFOGRAPHIC BARS ---- */
.info-bar-section { max-width: 800px; margin: 0 auto; }
.info-bar { margin-bottom: 1.25rem; }
.info-bar-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.info-bar-label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.info-bar-value { font-size: 0.88rem; font-weight: 700; color: #0284c7; }
.info-bar-track { height: 12px; border-radius: 6px; background: #e2e8f0; overflow: hidden; }
.info-bar-fill { height: 100%; border-radius: 6px; transition: width 0.6s ease; }

/* ---- COST CARDS ---- */
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cost-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; text-align: center; }
.cost-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.cost-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.cost-card .cost-range { font-size: 1.25rem; font-weight: 800; color: #0284c7; margin-bottom: 0.35rem; }
.cost-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

/* ---- STEP CARDS ---- */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 800px; margin: 0 auto; }
.step-card { display: flex; gap: 1.25rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.step-num { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #0284c7, #0ea5e9); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.step-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.step-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---- REGION CARDS ---- */
.region-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.region-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.region-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.region-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.5rem; }
.region-tag { display: inline-block; background: #e0f2fe; color: #0284c7; font-weight: 700; font-size: 0.78rem; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); margin-top: 0.25rem; }

/* ---- LENDERS ---- */
.lenders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.lender-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.lender-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.lender-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.75rem; }
.lender-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.lender-rate { display: inline-block; background: #e0f2fe; color: #0284c7; font-weight: 700; font-size: 0.78rem; padding: 0.25rem 0.6rem; border-radius: var(--radius-full); }
.lender-type { display: inline-block; background: #f1f5f9; color: #475569; font-weight: 600; font-size: 0.78rem; padding: 0.25rem 0.6rem; border-radius: var(--radius-full); }

/* ---- TIPS ---- */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.tip-card { display: flex; gap: 1rem; padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.tip-num { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #0284c7, #0ea5e9); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }
.tip-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.tip-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---- BOAT TYPES ---- */
.boat-types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.boat-type-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; text-decoration: none; color: var(--text); transition: all 0.3s; display: flex; align-items: center; gap: 1rem; }
.boat-type-card:hover { border-color: transparent; box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.boat-type-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #e0f2fe, #bae6fd); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.boat-type-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.15rem; }
.boat-type-card p { font-size: 0.8rem; color: var(--text-secondary); margin: 0; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--text); text-align: left; gap: 1rem; }
.faq-q:hover { color: #0284c7; }
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--text-secondary); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 0 1.25rem; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ---- CTA ---- */
.cta-section { background: #0284c7; color: #fff; padding: 5rem 2rem; border-radius: var(--radius-lg); margin: 0 2rem 5rem; max-width: calc(var(--max-width) - 4rem); margin-left: auto; margin-right: auto; }
.cta-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; }
.cta-inner p { opacity: 0.85; margin-bottom: 2rem; font-size: 1.05rem; }

/* ---- CALLOUT ---- */
.callout-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 2rem; text-align: center; }
.callout-box .callout-title { font-size: 0.95rem; font-weight: 700; color: #1e3a5f; margin-bottom: 0.25rem; }
.callout-box p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero h1 { font-size: 2.25rem; }
    .tips-grid, .region-grid { grid-template-columns: 1fr; }
    .toc-grid { grid-template-columns: repeat(2, 1fr); }
    .cost-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    section { padding: 3.5rem 0; }
    .section-header h2 { font-size: 1.75rem; }
    .state-stat-grid { grid-template-columns: 1fr; }
    .cta-section { margin: 0 1rem 3rem; padding: 3rem 1.5rem; }
    .toc-grid { grid-template-columns: 1fr; }
}
