/* ============================================
   PHINANCE HOMES — Public Site Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=Forum&display=swap');

:root {
    --navy: #101218;
    --navy-light: #191c24;
    --blue: #2FC1FF;
    --blue-hover: #08ACF2;
    --off-white: #F3F6F6;
    --charcoal: #4C5253;
    --slate: #4B4F58;
    --text-dark: #101218;
    --text-body: #808285;
    --text-light: rgba(255,255,255,0.85);
    --border-light: #dddddd;
}

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    color: var(--text-body);
    overflow-x: hidden;
}

/* Navbar */
#main-nav {
    background: rgba(16, 18, 24, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    transition: background 0.3s;
}

.brand-name {
    font-family: 'Forum', serif;
    font-weight: 400;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1a1e2a 100%);
    color: #fff;
    padding: 8rem 0 5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.min-vh-75 { min-height: 50vh; }

.hero-eyebrow {
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Forum', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 540px;
    line-height: 1.6;
}

/* Trust Bar */
.trust-bar {
    background: var(--blue);
    color: #fff;
    padding: 1.5rem 0;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-item strong {
    font-size: 1.5rem;
    font-weight: 800;
}

.trust-item span {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Section titles */
.section-title {
    font-family: 'Forum', serif;
    font-weight: 400;
    color: var(--text-dark);
    font-size: 1.75rem;
}

/* Path Cards */
.path-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.path-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.path-card h5 {
    font-family: 'Forum', serif;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.path-card p {
    color: var(--text-body);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.path-card a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.path-card a:hover { text-decoration: underline; }

/* CTA Section */
.cta-section {
    background: var(--navy);
    color: #fff;
}

.cta-section h2 {
    font-family: 'Forum', serif;
    font-weight: 400;
    font-size: 2rem;
}

.cta-section .lead {
    color: rgba(255,255,255,0.7);
}

/* Footer */
.site-footer {
    background: var(--navy-light);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    color: var(--blue);
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-style: italic;
}

.footer-desc {
    font-size: 0.875rem;
}

.site-footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links a:hover { color: var(--blue); }

.site-footer hr { border-color: rgba(255,255,255,0.1); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-compliance { font-size: 0.75rem; }

/* Mobile bottom bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    z-index: 1000;
    padding: 0.5rem 0;
}

.bottom-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.7rem;
    padding: 0.25rem;
}

.bottom-bar-item:hover,
.bottom-bar-primary {
    color: var(--blue);
}

/* Calendly floating button (desktop) */
.calendly-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--blue);
    color: var(--navy);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(47,193,255,0.3);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
}

.calendly-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(47,193,255,0.4);
    color: var(--navy);
}

.calendly-fab svg { stroke: var(--navy); }

/* Contact page */
.contact-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 8rem 0 3rem;
    text-align: center;
}

.contact-hero .hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.contact-hero .hero-subtitle {
    max-width: 600px;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

.bg-light {
    background: var(--off-white) !important;
}

/* Calendly inline embed override */
.calendly-inline-widget {
    border-radius: 12px;
    overflow: hidden;
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-light);
    border: 1px solid var(--blue);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    z-index: 1100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: slideUp 0.3s ease;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    font-size: 0.875rem;
    white-space: nowrap;
}

.pwa-install-actions { display: flex; gap: 0.5rem; }

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Loan program pages */
.loan-page table { color: var(--text-body); }
.loan-page table td { padding: 0.75rem; border-color: #eee; }

/* FAQ accordion custom */
.accordion-item { background: #fff; border-color: var(--border-light); }
.accordion-button { font-weight: 500; }
.accordion-button:not(.collapsed) { background: rgba(47,193,255,0.05); color: var(--text-dark); }
.accordion-button:focus { box-shadow: 0 0 0 0.25rem rgba(47,193,255,0.15); }

/* Quiz styles */
.quiz-option { transition: all 0.2s; }
.quiz-option:hover { border-color: var(--blue); background: rgba(47,193,255,0.03); }

/* Calculator results */
.display-4 { font-family: 'Forum', serif; }

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section { padding: 7rem 0 3rem; }
    main { padding-bottom: 60px; }
    .pwa-install-banner { bottom: 80px; left: 1rem; right: 1rem; transform: none; }
    .pwa-install-content { flex-direction: column; white-space: normal; text-align: center; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
