/* FranchisingFee.com - Design System */
:root {
  --navy: #0f2044;
  --gold: #f59e0b;
  --blue: #1a56db;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* HEADER */
header {
  background: var(--navy);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--gold); }
nav { display: flex; gap: 1.5rem; align-items: center; }
nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
}
.nav-cta:hover { background: #e08e0b; }

/* BREADCRUMB */
.breadcrumb {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 0.4rem; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* SEARCH */
.search-wrap {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.search-wrap input:focus { border-color: var(--gold); background: rgba(255,255,255,0.15); }
.search-wrap button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}
.search-wrap button:hover { background: #e08e0b; }

/* HERO FRANCHISE PAGE */
.hero-franchise {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  color: #fff;
  padding: 3rem 1.5rem;
}
.hero-franchise-inner { max-width: 1200px; margin: 0 auto; }
.hero-franchise h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.hero-franchise p.subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-category { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.badge-fee { background: var(--gold); color: var(--navy); }
.badge-not-franchised { background: #ef4444; color: #fff; }

/* MAIN CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3rem 1.5rem; }
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* CATEGORY GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.category-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(26,86,219,0.1);
  text-decoration: none;
  color: var(--navy);
  transform: translateY(-2px);
}
.category-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.category-name { font-weight: 700; font-size: 0.85rem; color: var(--navy); }
.category-count { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* FRANCHISE CARDS GRID */
.franchise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.franchise-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.franchise-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  border-color: var(--blue);
  text-decoration: none;
  transform: translateY(-2px);
}
.franchise-card-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
}
.franchise-card-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.franchise-card-fee {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
}
.franchise-card-fee span { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.franchise-card-details {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.franchise-card-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--light-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.franchise-card-link {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
}

/* FEE BREAKDOWN CARD */
.fee-breakdown {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  border-radius: 16px;
  padding: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
}
.fee-breakdown h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.fee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.fee-item {}
.fee-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.fee-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
}
.fee-value.small { font-size: 1rem; }

/* LAYOUT: MAIN + SIDEBAR */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.page-main {}
.page-sidebar {}

/* CONTENT CARDS */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.content-card h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}
.content-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.content-card p:last-child { margin-bottom: 0; }

/* PROS/CONS */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}
.pros, .cons {
  padding: 1rem;
  border-radius: 8px;
}
.pros { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons { background: #fff1f2; border: 1px solid #fecdd3; }
.pros h3 { color: #166534; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.75rem; }
.cons h3 { color: #9f1239; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.75rem; }
.pros ul, .cons ul { list-style: none; padding: 0; }
.pros ul li, .cons ul li { font-size: 0.85rem; padding: 0.3rem 0; display: flex; gap: 0.5rem; align-items: flex-start; line-height: 1.4; }
.pros ul li::before { content: "✓"; color: #16a34a; font-weight: 700; flex-shrink: 0; }
.cons ul li::before { content: "✗"; color: #dc2626; font-weight: 700; flex-shrink: 0; }

/* FAQ */
.faq-item { margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-q { font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-bottom: 0.4rem; }
.faq-a { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* SIDEBAR CARDS */
.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.sidebar-card.cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  color: #fff;
  border: none;
}
.sidebar-card.cta h3 { color: #fff; }
.sidebar-card.cta p { color: rgba(255,255,255,0.8); }
.sidebar-card h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 0.5rem; }
.sidebar-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.btn-primary {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 0.85rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: #e08e0b; text-decoration: none; }
.btn-secondary {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--blue);
  text-align: center;
  padding: 0.7rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid var(--blue);
  margin-top: 0.75rem;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* RELATED FRANCHISES */
.related-list { list-style: none; padding: 0; }
.related-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list a { color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.related-list a:hover { color: var(--blue); }
.related-list span { display: block; font-size: 0.75rem; color: var(--text-muted); }

/* FEE RANGE GUIDE */
.fee-range-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.fee-range-card {
  border-radius: 12px;
  padding: 1.25rem;
  border: 2px solid;
}
.fee-range-card.emerging { background: #f0fdf4; border-color: #86efac; }
.fee-range-card.established { background: #eff6ff; border-color: #93c5fd; }
.fee-range-card.premium { background: #fefce8; border-color: #fde68a; }
.fee-range-card.elite { background: #fdf4ff; border-color: #e9d5ff; }
.fee-range-tier { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.emerging .fee-range-tier { color: #16a34a; }
.established .fee-range-tier { color: #2563eb; }
.premium .fee-range-tier { color: #d97706; }
.elite .fee-range-tier { color: #9333ea; }
.fee-range-amount { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 0.3rem; }
.fee-range-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* NOT FRANCHISED NOTICE */
.not-franchised-notice {
  background: #fef2f2;
  border: 2px solid #fca5a5;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
}
.not-franchised-notice h2 { color: #dc2626; font-size: 1.4rem; margin-bottom: 0.75rem; }
.not-franchised-notice p { color: #7f1d1d; font-size: 0.95rem; line-height: 1.7; }

/* CONTACT FORM */
.form-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  width: 100%;
}
.btn-submit:hover { background: #e08e0b; }

/* FOOTER */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { font-size: 1.2rem; }
.footer-brand p { font-size: 0.85rem; margin-top: 0.75rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.85rem; text-decoration: none; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.disclaimer {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: #78350f;
  margin-top: 1rem;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .fee-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  nav { gap: 0.75rem; }
  nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .fee-grid { grid-template-columns: 1fr; }
}

/* STATS BAR */
.stats-bar {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}
.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.stat-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.stat-num { font-weight: 800; color: var(--navy); }
.stat-label { color: var(--text-muted); }

/* SECTION BG VARIANTS */
.section-light { background: var(--light-bg); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy .section-title { color: #fff; }
.section-navy .section-subtitle { color: rgba(255,255,255,0.7); }
