// Good Sam navigation data — primary mega-menus + per-BU secondary navs.
// All wordmarks live in /assets/bu-*.svg (see preview/brand-bu-logos.html).

const PRIMARY_NAV = [
  {
    id: "membership",
    label: "Membership & Rewards",
    columns: [
      {
        title: "Rewards Program",
        links: [
          { label: "Benefits", href: "#" },
          { label: "How Points Work", href: "#" },
        ],
      },
      {
        title: "Membership Overview",
        links: [
          { label: "Join now", href: "#" },
        ],
      },
      {
        title: "Credit Card",
        links: [
          { label: "Apply today", href: "Credit Cards.html" },
          { label: "Travel Visa Signature®", href: "Travel Visa Signature.html" },
          { label: "Rewards Visa Signature®", href: "Rewards Visa Signature.html" },
          { label: "Rewards Card", href: "Rewards Card.html" },
        ],
      },
      {
        title: "Community",
        links: [
          { label: "Groups", href: "#" },
          { label: "Everything RV", href: "#" },
        ],
      },
    ],
    feature: {
      eyebrow: "Since 1966",
      title: "We've got your back on the road.",
      body: "Join 2 million members saving on every mile, every campground, every trip.",
      cta: "Join now",
    },
  },
  {
    id: "campground",
    label: "Campground & Rentals",
    columns: [
      {
        title: "Campgrounds & RV Parks",
        links: [
          { label: "Snowbirds", href: "#" },
          { label: "Top-Rated", href: "#" },
          { label: "Book Now", href: "#" },
        ],
      },
      {
        title: "RV Rentals",
        links: [
          { label: "Rent an RV", href: "#" },
          { label: "List an RV", href: "#" },
        ],
      },
    ],
    feature: {
      eyebrow: "Members save 10%",
      title: "Find your next favorite campground.",
      body: "Filter 2,000+ Good Sam–rated parks by amenities, length, and rig type.",
      cta: "Search parks",
    },
  },
  {
    id: "protection",
    label: "Protection Products",
    columns: [
      {
        title: "On the road",
        links: [
          { label: "Roadside Assistance", href: "#" },
          { label: "TravelAssist", href: "#" },
          { label: "Water Rescue", href: "#" },
        ],
      },
      {
        title: "For your RV",
        links: [
          { label: "Extended Service Plan", href: "#" },
          { label: "Tire & Wheel Protection", href: "#" },
          { label: "Tire Sales", href: "#" },
        ],
      },
      {
        title: "Insurance",
        links: [
          { label: "RV / Auto / Boat", href: "#" },
          { label: "Homeowners & Renters", href: "#" },
          { label: "Motorcycle", href: "#" },
          { label: "Life & Health", href: "#" },
          { label: "Pet", href: "#" },
        ],
      },
    ],
    feature: {
      eyebrow: "$0 deductible options",
      title: "Coverage built for the road.",
      body: "Whether it's a flat in Flagstaff or a transmission in Tampa — we'll handle it.",
      cta: "Get a quote",
    },
  },
  {
    id: "loans",
    label: "Loans",
    columns: [
      {
        title: "Loans",
        links: [
          { label: "RV loans", href: "#" },
          { label: "Boat Loans", href: "#" },
          { label: "Unsecured loans", href: "#" },
          { label: "Loan calculator", href: "#" },
          { label: "Apply for a loan", href: "#" },
        ],
      },
    ],
    feature: {
      eyebrow: "No application fee",
      title: "Finance the rig of your dreams.",
      body: "Competitive rates, fast decisions, and humans on the phone — not bots.",
      cta: "Check rates",
    },
  },
  {
    id: "valuator",
    label: "RV Valuator",
    columns: [
      {
        title: "Know your RV's worth",
        links: [
          { label: "Get a free valuation", href: "#" },
          { label: "Sell to a dealer", href: "#" },
          { label: "Trade-in estimate", href: "#" },
        ],
      },
      {
        title: "Resources",
        links: [
          { label: "RV ProCare inspection", href: "#" },
          { label: "Buyer's guide", href: "#" },
          { label: "Market reports", href: "#" },
        ],
      },
    ],
    feature: {
      eyebrow: "Free, no signup",
      title: "What's your RV worth today?",
      body: "Live valuations powered by Good Sam dealer-network data.",
      cta: "Value my RV",
    },
  },
];

// Per-BU secondary nav. The "active BU" determines which row renders below
// the primary nav — wordmark, links, and end-aligned actions all swap.
const BU_NAVS = {
  cc: {
    name: "Credit Card",
    logo: "bu-cc.svg",
    home: "Credit Cards.html",
    links: [
      { label: "Travel Visa Signature®", href: "Travel Visa Signature.html" },
    ],
    actions: [
      { label: "Apply now", href: "#", primary: true },
      { label: "Manage account", href: "#" },
    ],
  },
  roadside: {
    name: "Roadside",
    logo: "bu-roadside.svg",
    links: [
      { label: "Plans & pricing", href: "#" },
      { label: "What's covered", href: "#" },
      { label: "How it works", href: "#" },
      { label: "Member stories", href: "#" },
    ],
    actions: [
      { label: "Get help now", href: "#", primary: true },
      { label: "Sign in", href: "#" },
    ],
  },
  membership: {
    name: "Membership",
    logo: "bu-membership.svg",
    links: [
      { label: "Standard", href: "#" },
      { label: "Elite", href: "#" },
      { label: "Benefits", href: "#" },
      { label: "Gift a membership", href: "#" },
    ],
    actions: [
      { label: "Join now", href: "#", primary: true },
      { label: "Renew", href: "#" },
    ],
  },
  insurance: {
    name: "Insurance Agency",
    logo: "bu-insurance-agency.svg",
    links: [
      { label: "RV insurance", href: "#" },
      { label: "Auto", href: "#" },
      { label: "Home", href: "#" },
      { label: "Life & Health", href: "#" },
    ],
    actions: [
      { label: "Get a quote", href: "#", primary: true },
      { label: "File a claim", href: "#" },
    ],
  },
  campgrounds: {
    name: "Campgrounds",
    logo: "bu-campgrounds.svg",
    links: [
      { label: "Search parks", href: "#" },
      { label: "Top-rated", href: "#" },
      { label: "Trip Planner", href: "#" },
      { label: "Owner login", href: "#" },
    ],
    actions: [
      { label: "Find a park", href: "#", primary: true },
      { label: "List your park", href: "#" },
    ],
  },
  travelassist: {
    name: "TravelAssist",
    logo: "bu-travel-assist.svg",
    links: [
      { label: "What's covered", href: "#" },
      { label: "Plans", href: "#" },
      { label: "How to use it", href: "#" },
    ],
    actions: [
      { label: "Enroll", href: "#", primary: true },
      { label: "Member login", href: "#" },
    ],
  },
  loans: {
    name: "Loans",
    logo: "bu-loans.svg",
    links: [
      { label: "RV loans", href: "#" },
      { label: "Refinance", href: "#" },
      { label: "Calculator", href: "#" },
      { label: "Rates", href: "#" },
    ],
    actions: [
      { label: "Pre-qualify", href: "#", primary: true },
      { label: "Sign in", href: "#" },
    ],
  },
  valuator: {
    name: "RV Valuator",
    logo: "bu-rv-valuator.svg",
    links: [
      { label: "Get a value", href: "#" },
      { label: "How it works", href: "#" },
      { label: "Sell or trade", href: "#" },
    ],
    actions: [
      { label: "Value my RV", href: "#", primary: true },
    ],
  },
  esp: {
    name: "Extended Service Plan",
    logo: "bu-esp.svg",
    links: [
      { label: "MBI coverage", href: "#" },
      { label: "VSC coverage", href: "#" },
      { label: "What's covered", href: "#" },
      { label: "FAQ", href: "#" },
    ],
    actions: [
      { label: "Get a quote", href: "#", primary: true },
      { label: "File a claim", href: "#" },
    ],
  },
};

window.PRIMARY_NAV = PRIMARY_NAV;
window.BU_NAVS = BU_NAVS;
