/*
Theme Name: FFHB Custom
Theme URI: https://familyfirsthousebuyer.ca
Author: Family First HouseBuyer Inc.
Description: Custom theme for FFHB - no Elementor, no page builders. Pure HTML/CSS/PHP.
Version: 1.0.0
License: Proprietary
Text Domain: ffhb-custom
*/

:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --secondary: #27ae60;
    --accent: #f39c12;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --radius: 8px;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); font-size: 16px; line-height: 1.6; color: var(--dark); background: var(--white); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); }

/* HEADER */
.header-phone { text-align: center; background: var(--primary); color: var(--white); padding: 6px; font-size: 14px; }
.header-phone a { color: var(--white); text-decoration: none; font-weight: 600; }
.site-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; max-width: var(--max-width); margin: 0 auto; }
.site-logo img { height: 50px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 24px; align-items: center; }
.main-nav a { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.main-nav a:hover { color: var(--primary); }
.nav-cta { background: var(--secondary); color: var(--white) !important; padding: 10px 24px; border-radius: var(--radius); font-weight: 700; }
.nav-cta:hover { background: #219a52; }
.mobile-toggle { display: none; cursor: pointer; font-size: 28px; background: none; border: none; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%); color: var(--white); padding: 60px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero p { font-size: 1.1rem; margin-bottom: 20px; opacity: 0.9; }
.trust-badges { display: flex; gap: 16px; margin-top: 24px; }
.badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); padding: 12px 16px; text-align: center; font-size: 14px; font-weight: 600; flex: 1; }
.hero-form { background: var(--white); border-radius: 12px; padding: 30px; box-shadow: var(--shadow-lg); color: var(--dark); }
.hero-form h3 { color: var(--primary); margin-bottom: 16px; font-size: 1.3rem; }

/* SECTIONS */
.section { padding: 60px 0; }
.section-alt { background: var(--light); }
.section-title { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 40px; color: var(--dark); }
.section-subtitle { text-align: center; font-size: 1.1rem; color: var(--gray); margin-top: -30px; margin-bottom: 40px; }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step { text-align: center; padding: 24px; }
.step-number { width: 50px; height: 50px; background: var(--secondary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin: 0 auto 16px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray); }

/* CTA BAND */
.cta-band { background: var(--secondary); color: var(--white); padding: 40px 0; text-align: center; }
.cta-band h2 { font-size: 1.8rem; margin-bottom: 16px; }
.cta-band-dark { background: var(--primary); }

/* BUTTONS */
.btn { display: inline-block; padding: 14px 32px; border-radius: var(--radius); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: all 0.2s; border: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #219a52; }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--light); }
.btn-accent { background: var(--accent); color: var(--white); }

/* COMPARISON TABLE */
.comparison-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.comparison-table th, .comparison-table td { padding: 12px 16px; border: 1px solid var(--gray-light); text-align: left; }
.comparison-table th { background: var(--primary); color: var(--white); font-weight: 600; }
.comparison-table tr:nth-child(even) { background: var(--light); }
.check { color: var(--secondary); font-weight: bold; }
.cross { color: #e74c3c; font-weight: bold; }

/* CITY GRID */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.city-grid a { display: block; padding: 10px 16px; background: var(--light); border-radius: var(--radius); text-decoration: none; color: var(--primary); font-size: 14px; transition: background 0.2s; }
.city-grid a:hover { background: var(--primary); color: var(--white); }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s; }
.blog-card:hover { transform: translateY(-4px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-content { padding: 20px; }
.blog-card h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.blog-card h3 a { text-decoration: none; color: var(--dark); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 14px; color: var(--gray); }
.blog-card .read-more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }

/* BLOG SINGLE */
.blog-single { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.blog-content { line-height: 1.8; }
.blog-content h2 { margin: 30px 0 15px; font-size: 1.5rem; }
.blog-content h3 { margin: 25px 0 12px; font-size: 1.2rem; }
.blog-content p { margin-bottom: 16px; }
.blog-content ul, .blog-content ol { margin: 16px 0 16px 24px; }
.blog-content li { margin-bottom: 8px; }
.blog-sidebar .widget { background: var(--light); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.blog-sidebar .widget h4 { margin-bottom: 16px; color: var(--primary); }

/* FAQ */
.faq-item { border: 1px solid var(--gray-light); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq-question { padding: 16px 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--light); transition: background 0.2s; }
.faq-question:hover { background: var(--gray-light); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding: 16px 20px; }
.faq-toggle { font-size: 20px; transition: transform 0.3s; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

/* FOOTER */
.site-footer { background: var(--dark); color: var(--white); padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; color: var(--accent); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding: 20px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: rgba(255,255,255,0.5); }

/* FORMS */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--gray-light); border-radius: var(--radius); font-size: 15px; font-family: var(--font-main); margin-bottom: 12px;
}
.gform_wrapper input:focus, .gform_wrapper textarea:focus, .gform_wrapper select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(26,82,118,0.1); }
.gform_wrapper .gform_button { background: var(--secondary); color: var(--white); padding: 14px 32px; border: none; border-radius: var(--radius); font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; }
.gform_wrapper .gform_button:hover { background: #219a52; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 16px; border: 1px solid var(--gray-light); border-radius: var(--radius); text-decoration: none; color: var(--dark); }
.pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-single { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .main-nav ul { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: var(--shadow-lg); z-index: 999; }
    .main-nav.active ul { display: flex; }
    .mobile-toggle { display: block; }
    .trust-badges { flex-direction: column; }
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
    .comparison-table { font-size: 14px; }
}
