// Product Detail — Data for The Bloom
// Fulfilled by our anchor manufacturing partner (South Carolina) under NC modular state label · NTA-certified third-party inspection

const PRODUCT = {
 id: 4,
 name: "The Bloom",
 tagline: "A home you'll grow into,<br>not out of.",
 builder: {
 name: "PERCH",
 rating: null,
 reviews: 0,
 deliveries: 0,
 responseTime: "Same-day reply from Concierge",
 since: 2024,
 location: "Atlanta, GA",
 bio: "PERCH is the modern marketplace for factory-built housing — modular, prefab, container, and tiny. Every listing is escrow-guaranteed, dealer-licensed, and delivered with full manufacturer disclosure. The Bloom is our narrow-lot two-story — 1,048 sq ft over two floors, 9-foot ceilings on both, an angle stair with stained pine treads, and a lazy-susan corner kitchen unit.",
 },
 manufacturer: {
 publicName: "Our anchor manufacturing partner",
 publicLocation: "South Carolina",
 stateLabel: "NC Modular State Label",
 ntaCertDate: "Third-party inspected · NTA-certified",
 ntaCertLabel: "NTA-certified third-party inspection",
 disclosure: "The Bloom is manufactured to order by our anchor manufacturing partner — a state-licensed modular manufacturer holding the NC modular state label with NTA-certified third-party inspection. PERCH is your single point of contact — the dealer and marketplace principal. Manufacturer warranty passes through directly to you. Site scope (foundation, utility hookups, HVAC install, set crew, permits) is coordinated separately through PERCH's site-partner network or your chosen general contractor.",
 },
 price: 179000,
 depositPct: 20,
 depositAmount: 35800,
 priceLabel: "Included freight · NC · SC · GA · TN · VA · extended range on request",
 deliveryFootprint: "NC · SC · GA · TN · VA · extended range on request",
 extendedRangeNote: "Freight is included on the standard delivery footprint (NC · SC · GA · TN · VA). Extended range — FL, AL, KY, WV, MD, DE, and other coastal SE states — is quoted within 24 hours of reserve. Not currently available west of the Mississippi.",
 productDescription: "A 1,048 sq ft, two-bedroom, two-bath state-labeled modular arranged over two floors, with 9-foot ceilings on both. Narrow-and-tall: 15 feet wide, 35 feet long. Angle stair with painted white risers and stained pine treads. Casement windows in black-outside/white-inside. Full-lite glass front door. A lazy-susan corner unit in the kitchen and a 72-inch double vanity in the primary bath. A home that grows with you. Built to full code with the NC state modular label, factory-installed systems, and PERCH HomeCare Plus warranty. Free freight to your site.",
 siteScopeEstimate: { low: 24000, high: 38000, note: "Foundation, utility hookups, set crew, HVAC install, permits — arranged separately." },
 sqft: 1048,
 beds: 2,
 baths: 2,
 type: "Modular Home",
 certified: true,
 delivery: "14–16 weeks",
 warranty: "PERCH HomeCare Plus · Included",
 warrantyPackage: {
 name: "PERCH HomeCare Plus",
 subtitle: "Extended Protection",
 intro: "Every Bloom ships with our bundled homecare package — the coverage travels with the deed.",
 tiers: [
 { years: 10, label: "Structural Integrity", desc: "Load-bearing frame, roof structure, exterior envelope, wind and moisture warranty." },
 { years: 7, label: "Major Home Systems", desc: "HVAC, electrical, plumbing — full parts and labor coverage." },
 { years: 7, label: "Home Appliances", desc: "Range, water heater, mini-split heads, exhaust — full replacement or repair." },
 ],
 footnote: "Coverage begins at Certificate of Occupancy. Transferable to next owner one time within the coverage window.",
 },
 features: [
 "State-labeled modular · NC-approved",
 "Two stories · 9' ceilings both floors",
 "LP SmartSide ExpertFinish siding · factory-baked",
 "21 SEER supply-split system standard",
 "Escrow-guaranteed through PERCH",
 ],

 listingEconomics: {
 reEngineeringCovered: true,
 coveredNote: "Re-engineering fees for out-of-footprint delivery are absorbed by PERCH on this listing — no pass-through cost to you.",
 passThroughNote: "Re-engineering fees are quoted per builder and passed through at cost. Concierge scopes them within 24 hours of reserve.",
 },

 addOns: [
 { key:'mobility', title:'Mobility Access', price:3500, blurb:'36" doorways · roll-in curbless shower · ADA grab bars · lever handles · lowered switches (15"–48" reach)', tag:'Accessibility' },
 { key:'hearing', title:'Deaf / Hard of Hearing', price:1200, blurb:'Strobe smoke + CO detectors · visual doorbell w/ flasher · visual notification receptacles at bed + bath', tag:'Accessibility' },
 { key:'vision', title:'Blind / Low Vision', price:900, blurb:'Voice-annunciating smoke detectors · tactile switch caps · high-contrast trim + switchplates · braille placards at bath', tag:'Accessibility' },
 { key:'unico', title:'Unico HVAC + HEPA', price:5000, blurb:'Unico high-velocity system with hospital-grade HEPA filtration. Replaces the standard supply-split system. Exclusive to our anchor manufacturing partner.', tag:'Premium' },
 ],
 specs: [
 { label: "Dimensions", value: "15'-0\" × 35'-0\" · two stories" },
 { label: "Living Space", value: "1,048 sq ft (across two floors)" },
 { label: "Ceiling Height", value: "9' flat · both floors" },
 { label: "Frame", value: "2×6 conventional wood, 16\" OC" },
 { label: "Wall Insulation", value: "R-19" },
 { label: "Roof Insulation", value: "R-38" },
 { label: "Roof System", value: ".060 EPDM · black · low-slope" },
 { label: "Exterior Siding", value: "LP SmartSide ExpertFinish · factory-baked premium (4 swatches)" },
 { label: "Windows", value: "Casement · black-exterior / white-interior · Low-E argon" },
 { label: "Front Door", value: "Full-lite glass · steel frame · Kwikset SmartKey lockset" },
 { label: "Stair", value: "Angle stair · painted white risers · stained pine treads" },
 { label: "Electrical", value: "200A panel · Decora switches" },
 { label: "Plumbing", value: "PEX supply + DWV vents · 50-gal electric water heater" },
 { label: "HVAC", value: "21 SEER supply-split system (standard · installed on-site)" },
 { label: "Kitchen", value: "Full Shaker cabinetry · lazy-susan corner unit · butcher-block counters · stainless sink · brushed nickel pull-down faucet" },
 { label: "Primary Bath", value: "72\" double vanity · dual round LED ceiling lights · walk-in shower · comfort-height WC" },
 { label: "Hall / Half Bath", value: "First floor · comfort-height WC · single vanity" },
 { label: "Flooring", value: "CALI Vinyl Pro 7mm Geo Core LVP throughout" },
 { label: "Interior Doors", value: "2-panel hollow-core · Kwikset locksets" },
 { label: "Foundation", value: "Crawl space (buyer-prepped per engineering specs)" },
 { label: "Wind Rating", value: "115 mph Vult · Exposure C" },
 { label: "Seismic Design", value: "Category C" },
 { label: "Snow Load", value: "Ground 20 PSF · Roof 20 PSF" },
 { label: "Climate Zone", value: "4" },
 { label: "Est. Ship Weight", value: "~24,000–28,000 lbs (two-story stacked · verified at build-order confirmation)" },
 { label: "Certifications", value: "NC Residential 2018 · NC NEC 2017 · NC IECC 2018 · State-labeled modular · NTA-certified third-party inspection" },
 { label: "Delivery States", value: "NC · SC · GA · TN · VA (extended range on request)" },
 ],

 // Schematic layout — dimensions derived from source PDF. Real stamped plans render at Reserve.
 // Two-story stacked; floorplanRooms below shows FIRST FLOOR only (kitchen · dining · living · half bath · angle stair).
 // Second floor: 2 bedrooms + primary bath — see specs table for upstairs layout.
 floorplanRooms: [
 { name: "First floor · see specs for upstairs layout", sqft: "", notes: "Second floor (upstairs) contains: Primary Bedroom (~180 sq ft), Bedroom 2 (~135 sq ft), Primary Bath with 72\" double vanity (~65 sq ft). Angle stair rises from first-floor entry.", xPct: 5, yPct: 3, wPct: 90, hPct: 4 },
 { name: "Entry + Angle Stair", sqft: "~55 sq ft", notes: "Angle stair · painted white risers · stained pine treads · full-lite glass front door", xPct: 6, yPct: 12, wPct: 22, hPct: 32 },
 { name: "Half Bath", sqft: "~28 sq ft", notes: "First-floor powder · comfort-height WC · single vanity", xPct: 6, yPct: 48, wPct: 22, hPct: 14 },
 { name: "Kitchen", sqft: "~140 sq ft", notes: "Shaker cabinets · lazy-susan corner unit · butcher-block counters · stainless sink", xPct: 30, yPct: 12, wPct: 30, hPct: 40 },
 { name: "Dining", sqft: "~90 sq ft", notes: "Adjacent to kitchen · 9' ceiling", xPct: 30, yPct: 56, wPct: 30, hPct: 32 },
 { name: "Living", sqft: "~150 sq ft", notes: "Open plan · casement window bank · 9' ceiling", xPct: 62, yPct: 12, wPct: 32, hPct: 76 },
 ],

 images: [
 { file: "exterior-front.jpg", alt: "The Bloom — front elevation in Alabaster LP SmartSide: narrow-and-tall two-story silhouette, black casement windows, full-lite glass front door.", provenance: 'render' },
 { file: "exterior-front-side.jpg", alt: "The Bloom — front-and-side oblique showing the 15-foot narrow footprint over two stories.", provenance: 'render' },
 { file: "exterior-timber-bark.jpg", alt: "The Bloom in Timber Bark — a deep warm brown LP SmartSide swatch.", provenance: 'render' },
 { file: "exterior-cypress.jpg", alt: "The Bloom in Cypress — a muted natural green LP SmartSide swatch.", provenance: 'render' },
 { file: "exterior-iron-gray.jpg", alt: "The Bloom in Iron Gray — a deep charcoal LP SmartSide swatch.", provenance: 'render' },
 { file: "living-dining.jpg", alt: "The Bloom interior — open first-floor living and dining with 9-foot ceiling and casement window bank.", provenance: 'render' },
 { file: "kitchen.jpg", alt: "The Bloom kitchen — Shaker cabinets, lazy-susan corner unit, butcher-block counters, stainless appliances.", provenance: 'render' },
 { file: "bedroom.jpg", alt: "The Bloom second-floor primary bedroom — 9-foot ceiling with casement windows.", provenance: 'render' },
 { file: "bathroom.jpg", alt: "The Bloom primary bath — 72-inch double vanity with dual round LED ceiling lights.", provenance: 'render' },
 ],

 certificationStack: {
 builder: { tier: 'PERCH-Certified Builder', status: 'held', detail: 'Ops audit passed · 200+ units shipped · GL + product-liability insurance on file · references verified.' },
 unit: { tier: 'Third-Party Inspected Unit', status: 'held', detail: 'NTA state-label inspection completed by our NTA-certified third-party inspector · NC modular label affixed · IRC 2021 + NC Residential 2018 code path.' },
 delivery: { tier: 'Site-Verified for Delivery', status: 'per-buyer', detail: 'The Land Check tool runs against your address on the product page — zoning, setbacks, wastewater availability, and destination-state component approvals all checked before you commit. Green means clear.' },
 },

 componentApprovals: {
 states: ['NC','SC','GA','TN','VA','FL','TX'],
 rows: [
 { component: 'Front door · full-lite glass · steel frame', NC:'approved', SC:'approved', GA:'approved', TN:'approved', VA:'approved', FL:'on-request', TX:'on-request' },
 { component: 'Windows · casement Low-E (black/white)', NC:'approved', SC:'approved', GA:'approved', TN:'approved', VA:'approved', FL:'on-request', TX:'on-request' },
 { component: 'Roof · .060 EPDM · low-slope', NC:'approved', SC:'approved', GA:'approved', TN:'approved', VA:'approved', FL:'on-request', TX:'on-request' },
 { component: 'Siding · LP SmartSide ExpertFinish', NC:'approved', SC:'approved', GA:'approved', TN:'approved', VA:'approved', FL:'on-request', TX:'on-request' },
 { component: 'Tie-downs · engineered anchor package (two-story)', NC:'approved', SC:'approved', GA:'approved', TN:'approved', VA:'approved', FL:'on-request', TX:'on-request' },
 ],
 footnote: 'Standard delivery footprint (NC · SC · GA · TN · VA) uses existing component approvals as-is. Nationwide delivery is available — states outside the default footprint may require plan re-engineering (windows, doors, tie-downs, or roof) to clear their state code. Re-engineering + extended freight quoted within 24 hours of reserve.',
 },

 quantityTiers: [
 { qty: 1, discountPct: 0, label: '1 Bloom', savingsLabel: null, badge: null },
 { qty: 2, discountPct: 0.03, label: '2 Blooms', savingsLabel: 'Save $10,740', badge: 'Popular' },
 { qty: 3, discountPct: 0.05, label: '3 Blooms', savingsLabel: 'Save $26,850', badge: 'Best value' },
 ],

 freight: {
 origin: { zip:'', city:'', state:'SC', lat:34.1953, lng:-82.1637 },
 ratePerMile: { standard: 4, wide: 11, super: 20 },
 includedStates: ['NC','SC','GA','TN','VA'],
 longHaulMiles: 800,
 },

 // Narrow two-story stacked, 15ft wide = 180" > 144" → super-load.
 unitDimensions: { widthInches: 180, heightInches: 240, lengthInches: 420, freightCategory: 'super' },

 buildSlots: {
 totalThisWindow: 3,
 remainingThisWindow: 2,
 windowLabel: 'Q4 2026',
 nextWindowLabel: 'Q1 2027',
 },

 compareRows: [
 { dim: 'Price for a 2BR/2BA two-story', nest: '$179,000 module · ~$31,000 site scope', siteBuilt: '$340,000–$575,000 typical' },
 { dim: 'Timeline to move-in', nest: '14–16 weeks', siteBuilt: '10–20 months' },
 { dim: 'Weather risk to schedule', nest: 'None — built indoors', siteBuilt: 'High — every rain day is a delay' },
 { dim: 'Warranty', nest: '10 yr structural · 7 yr systems', siteBuilt: '1 yr builder default (2-10 program if opted in)' },
 { dim: 'Financing options', nest: 'Modular mortgage · cash · const-to-perm', siteBuilt: 'Construction loan required' },
 { dim: 'Code path', nest: 'State-labeled modular · pre-inspected', siteBuilt: 'Full stick-built inspection chain' },
 { dim: 'Change orders mid-build', nest: 'Locked at signing', siteBuilt: 'Common — cost overruns average 20%' },
 { dim: 'Resale', nest: 'Sells as real property (with land)', siteBuilt: 'Sells as real property' },
 ],
 compareSummary: {
 winner: 'The Bloom',
 savingsLow: 130000, // $340K low - $210K delivered
 savingsHigh: 365000, // $575K high - $210K delivered
 monthsSaved: '8–17 months faster',
 },

 transparencyFAQ: [
 { q: 'What if my build hits a delay?', a: 'Weather doesn\'t affect the factory — that\'s a category advantage. If a permit, engineering revision, or supplier issue slips the schedule, Concierge notifies you within 24 hours with a new date and a written cause. Every milestone stays in escrow until it clears — no money moves for stages that haven\'t happened.' },
 { q: 'What happens to my $1,000 reserve fee if I change my mind?', a: 'Your $1,000 reserve is refundable through pre-production — typically the first 14 days after Reserve, before we open the factory ticket. Change your mind in that window and PERCH returns the full $1,000 to your original payment method within 5 business days, minus any engineering already run at your request (usually $0). Once production opens, the reserve credits toward your 20% deposit ($35,800) and cancellation reverts to the manufacturer\'s change-order policy, disclosed in full at contract signing.' },
 { q: 'What if the state code changes during my build?', a: 'Code changes generally apply to permits filed after the effective date, not to units already in production under an approved state label. If a change does affect your unit, PERCH covers the re-engineering cost on The Bloom (contract-manufactured with margin baked). On third-party marketplace listings, we quote pass-through and disclose before signing.' },
 { q: 'What if the manufacturer goes under?', a: 'Every PERCH transaction runs through licensed escrow — funds only release after our manufacturer uploads dated video/photo proof of the milestone and you sign it off digitally. If a manufacturer partner ever ceased operations mid-build, your remaining escrow balance would be returned in full and we would coordinate placement with another PERCH-Certified builder to complete or restart the build.' },
 ],

 scheduleContact: {
 email: 'hello@ownperch.com',
 replyWindow: '24 hours',
 calendlyUrl: null,
 note: 'Every note routes to PERCH Concierge. We reply within 24 hours to set a call — or answer in writing if that\'s faster for you.',
 },

 regulatoryPositioning: 'PERCH is a modular home dealer and an escrow-guaranteed transaction platform. Every build is inspected, escrowed, and warrantied end-to-end.',

 perchByNumbers: {
 buildersCertified: 12,
 waitlistBuyers: 4447,
 unitsInProduction: 3,
 footprintDefault: '5 states',
 footprintAvailable: 'all 50',
 },

 reviews: [],
 reviewsEmptyState: {
 title: "Be the first.",
 body: "The Bloom is our newest two-story. Reviews open the moment our first delivery signs off. Watch this space — or reserve now to be one of the first names on it.",
 },

 similar: [
 { id:2, name:"The Bough", builder:"PERCH", sqft:963, beds:3, baths:2, price:149000, img:1 },
 { id:5, name:"The Aerie", builder:"PERCH", sqft:990, beds:3, baths:2, price:149000, img:1 },
 { id:1, name:"The Nest", builder:"PERCH", sqft:567, beds:1, baths:1, price:129000, img:1 },
 ],
 included: [
 "Complete factory-finished two-story stacked structure (interior + exterior)",
 "9-foot flat ceilings on both floors",
 "Angle stair · painted white risers · stained pine treads",
 "Full-lite glass front door · steel frame · Kwikset SmartKey lockset",
 "Casement windows · black-exterior / white-interior · Low-E argon",
 "200A electrical service panel + Decora switches throughout",
 "21 SEER supply-split HVAC system (standard, installed on-site)",
 "50-gallon electric water heater installed",
 "Full Shaker kitchen · lazy-susan corner unit · stainless sink · brushed nickel pull-down faucet",
 "72-inch double vanity in primary bath · dual round LED ceiling lights · walk-in shower",
 "First-floor half bath · comfort-height WC · single vanity",
 "CALI Vinyl Pro LVP throughout",
 "LP SmartSide ExpertFinish factory-baked premium siding · .060 EPDM black low-slope roof",
 "Freight delivery to your prepared site (NC · SC · GA · TN · VA)",
 "NC modular state label · NTA-certified third-party inspection · full code compliance package",
 "PERCH escrow-guaranteed transaction · HomeCare Plus warranty (10 yr structural · 7 yr systems · 7 yr appliances)",
 ],
 buyerResponsibility: [
 "Land acquisition, survey, and zoning verification (Land Check tool available)",
 "Soil testing (percolation / geotech report — required by most jurisdictions)",
 "Crawl-space or slab foundation prepared per manufacturer engineering specs (two-story load)",
 "Building permits + zoning approval (Concierge team provides checklist)",
 "Utility hookups: water, sewer, electric (200A service drop)",
 "Site preparation, grading, and access road (min. 14' wide for delivery truck)",
 "Set crew + crane (~$4,000–$7,500 typical for narrow two-story set)",
 "On-site HVAC line-set connection (units are pre-charged and supplied)",
 "Final inspections (varies by county) and certificate of occupancy",
 "Floor insulation install (per RESCheck spec, supplied but installed on-site)",
 ],
 customizations: [
 { category: "Exterior Siding", options: ["LP SmartSide ExpertFinish (included)"], default: 0, type: "swatch", textures: ["siding-lp-smartside.jpg"] },
 { category: "Exterior Color", options: ["Alabaster (included)", "Timber Bark", "Cypress", "Iron Gray"], default: 0, type: "color", colors: ["#EDE6D2", "#5A4634", "#6E7F5F", "#3F444A"], renders: ["exterior-front.jpg", "exterior-timber-bark.jpg", "exterior-cypress.jpg", "exterior-iron-gray.jpg"] },
 { category: "Flooring", options: ["Natural Oak LVP (included)"], default: 0, type: "swatch", textures: ["flooring-lvp.jpg"] },
 { category: "Cabinet Finish", options: ["Natural Birch Shaker (included)", "Matte White", "Forest Green", "Charcoal"], default: 0, type: "color", colors: ["#C9A87C", "#F5F0E6", "#3E5540", "#2E2E2E"] },
 ],
 faqs: [
 { q: "What if my build hits a delay?", a: "Weather doesn't affect the factory — that's a category advantage. If a permit, engineering revision, or supplier issue slips the schedule, Concierge notifies you within 24 hours with a new date and a written cause. Every milestone stays in escrow until it clears — no money moves for stages that haven't happened." },
 { q: "What happens to my $1,000 reserve fee if I change my mind?", a: "Your $1,000 reserve is refundable through pre-production — typically the first 14 days after Reserve, before we open the factory ticket. Change your mind in that window and PERCH returns the full $1,000 to your original payment method within 5 business days, minus any engineering already run at your request (usually $0). Once production opens, the reserve credits toward your 20% deposit ($35,800) and cancellation reverts to the manufacturer's change-order policy, disclosed in full at contract signing." },
 { q: "What if the state code changes during my build?", a: "Code changes generally apply to permits filed after the effective date, not to units already in production under an approved state label. If a change does affect your unit, PERCH covers the re-engineering cost on The Bloom (contract-manufactured with margin baked). On third-party marketplace listings, we quote pass-through and disclose before signing." },
 { q: "What if the manufacturer goes under?", a: "Every PERCH transaction runs through licensed escrow — funds only release after our manufacturer uploads dated video/photo proof of the milestone and you sign it off digitally. If a manufacturer partner ever ceased operations mid-build, your remaining escrow balance would be returned in full and we would coordinate placement with another PERCH-Certified builder to complete or restart the build." },
 { q: "Who actually builds The Bloom?", a: "The Bloom is manufactured to order by our anchor manufacturing partner in South Carolina — a state-licensed modular manufacturer holding the NC modular state label with NTA-certified third-party inspection. Full manufacturer name and address are disclosed as part of your signed docs at Reserve, per NC modular dealer regs. PERCH is your single point of contact end-to-end — the dealer and marketplace principal. Manufacturer warranty passes through directly to you." },
 { q: "What foundation do I need?", a: "The Bloom is engineered for a crawl-space foundation with two-story load ratings. Our manufacturing partner provides full engineering specs at contract signing. Most buyers hire a local contractor — typical cost is $6,500–$12,500 depending on soil conditions and jurisdiction. A slab foundation is available as a site-scope upgrade; ask Concierge." },
 { q: "What states can you deliver to?", a: "Standard delivery is NC, SC, GA, TN, and VA — included within our manufacturing partner's base freight radius. Extended-range delivery to FL, AL, KY, WV, MD, DE, or coastal SE states is available with a custom freight quote (typically $4.50–$7.50 per loaded mile beyond standard to cover specialized heavy-haul transport, fuel surcharges, multi-state oversize permits, and required pilot/escort cars). Not currently available west of the Mississippi." },
 { q: "What is 'module + freight' vs. site scope?", a: "$179,000 covers the completed two-story stacked structure and freight to your prepared site. Site scope — foundation, utility hookups, HVAC line-set install, set crew, permits, and site prep — is quoted separately and typically runs $24,000–$38,000 depending on jurisdiction and site conditions. PERCH Concierge can provide a full budget worksheet before you reserve." },
 { q: "How is payment handled?", a: "The entire transaction moves through licensed escrow. You start your build with a 20% production deposit ($35,800). Balance funds sit in escrow and release milestone-by-milestone as our manufacturing partner uploads photo and video proof of each production stage — Frame, Dry-In, Systems Rough-In, Delivery + Set, Final. You review the proof inside your PERCH inbox and digitally sign the milestone. Only then does escrow release the next tranche to our anchor manufacturing partner. Wire, ACH, and construction financing all settle through the same milestone lane." },
 { q: "Can I finance it?", a: "Yes. The Bloom qualifies for modular home construction financing through several PERCH-partnered lenders. Because it carries the NC state modular label (not HUD/manufactured), it appraises and finances as real property once permanently affixed to a foundation. Ask Concierge to pre-qualify you before you reserve." },
 { q: "What certifications does it carry?", a: "The Bloom is engineered to IRC 2021 and NC Residential Code 2018 with NC Electrical 2017 and NC Energy 2018 references. It ships with the NC modular state label and NTA-certified third-party inspection. Structural rating: 115 mph wind (Vult, Exposure C), Seismic Category C, Climate Zone 4, 20 PSF ground snow load." },
 { q: "Can it be built to my state's residential code?", a: "Almost always, yes — but it may need re-engineering first. The Bloom ships as-built to IRC 2021 + NC Residential Code 2018, which is directly accepted in NC and neighboring states with matching or older code cycles. For other states, our manufacturing partner re-engineers the plans to your state's adopted residential code before we open the production ticket. Timeline and re-engineering cost vary by state — some jurisdictions require minor tweaks, others require broader structural, wind, or thermal revisions that carry additional engineering fees. Tell us your build state at Reserve; Concierge scopes the re-engineering timeline and cost within 24 hours and confirms with you before production opens." },
 { q: "How do I share this with my contractor?", a: "Click 'Share with Contractor' in the sidebar. We email your GC the full contractor package: engineering spec sheet, foundation and utility hookup drawings, NC modular state label docs, code references, and the site-scope checklist. After your production slot confirms, your GC gets shared access to your PERCH dashboard so they can pull permits, review milestone proofs, and coordinate the set date directly." },
 { q: "How long from reserve to move-in?", a: "14–16 weeks reserve-to-move-in on a well-scoped site. Slot confirm 1–2 weeks, factory build 9–10 weeks (two-story stacked assembly), ship + set 1–2 weeks, button-up + inspection 1–2 weeks. Site prep runs in parallel with factory build — no lost time." },
 { q: "What's the warranty?", a: "Every Bloom ships with PERCH HomeCare Plus — bundled into the base price, no add-on. 10 years on structural integrity (load-bearing frame, roof, exterior envelope). 7 years on major home systems (HVAC, electrical, plumbing — parts and labor). 7 years on home appliances (range, water heater, mini-split, exhaust). Coverage begins at Certificate of Occupancy and is transferable to the next owner one time within the coverage window." },
 { q: "Can I see it in person before I buy?", a: "Our manufacturing partner's South Carolina facility hosts scheduled walk-throughs of in-progress builds by appointment. Ask Concierge to coordinate." },
 ],
 socialProof: {
 launch: true,
 launchDate: "September 2026",
 launchLabel: "New PERCH two-story · Newly available",
 },
 sku: "PERCH-BLOOM-1048",
 gtin: null,
 category: "Modular Homes > Two-Story",
};

const PLACEHOLDER_COLORS_PDP = [
 ['#3D5C3A','#5a7d56'], ['#4a6741','#6b8e67'], ['#2d4a30','#4d6a50'],
 ['#5c7a58','#7d9b79'], ['#3a5937','#5b7a58'], ['#4d6b4a','#6e8c6b'],
 ['#365534','#577655'], ['#486846','#698967'],
];

function estimateMonthlyPDP(price, years = 7, rate = 0.069) {
 const r = rate / 12;
 const n = years * 12;
 return Math.round(price * (r * Math.pow(1+r, n)) / (Math.pow(1+r, n) - 1));
}

function PlaceholderImg({ index, label, style }) {
 const item = PRODUCT.images && PRODUCT.images[index];
 const hasReal = item && typeof item === 'object' && item.file;

 if (hasReal) {
 return React.createElement('img', {
 src: '/homes/the-bloom/images/' + item.file + '?v=1',
 alt: item.alt || 'The Bloom',
 loading: index === 0 ? 'eager' : 'lazy',
 fetchpriority: index === 0 ? 'high' : 'auto',
 decoding: index === 0 ? 'sync' : 'async',
 style: { width:'100%', height:'100%', objectFit:'cover', display:'block', ...style }
 });
 }

 const [c1, c2] = PLACEHOLDER_COLORS_PDP[index % PLACEHOLDER_COLORS_PDP.length];
 const labelText = typeof label === 'string' ? label : (label && label.alt) || 'photo';
 return React.createElement('div', { style: { width:'100%', height:'100%', background:`linear-gradient(135deg, ${c1}, ${c2})`, display:'flex', alignItems:'center', justifyContent:'center', position:'relative', overflow:'hidden', ...style } },
 React.createElement('div', { style: { position:'absolute', inset:0, opacity:0.08, backgroundImage:'repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.5) 10px, rgba(255,255,255,0.5) 12px)' }}),
 React.createElement('div', { style: { textAlign:'center', color:'rgba(255,255,255,0.6)', fontFamily:'var(--font-mono)', fontSize:11, letterSpacing:'0.08em', textTransform:'uppercase' }},
 React.createElement('div', { style: { fontSize:28, marginBottom:6, opacity:0.5 }}, '⌂'),
 labelText
 )
 );
}

function PDPIcon({ name, size=20, style={}, fill=0, weight=300 }) {
 return React.createElement('span', {
 className:'material-symbols-outlined',
 style: {
 fontSize:size,
 fontVariationSettings: '"FILL" ' + fill + ', "wght" ' + weight + ', "GRAD" 0, "opsz" 20',
 lineHeight: 1,
 verticalAlign: 'middle',
 ...style
 }
 }, name);
}

Object.assign(window, { PRODUCT, PLACEHOLDER_COLORS_PDP, estimateMonthlyPDP, PlaceholderImg, PDPIcon });
