/* ============================================================
   StartMyBuild — Design System v2
   Premium, warm, modern — inspired by Mike Greer Homes
   Edit this file once to restyle the whole site.

   NOTE: HTML files still reference the old Google Fonts link:
   <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@...&family=Outfit:wght@...&display=swap" rel="stylesheet">
   This MUST be replaced in every HTML file with:
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
   ============================================================ */

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

:root {
  --green: #059669;
  --green-dark: #047857;
  --green-light: #10b981;
  --cream: #fafafa;
  --cream-dark: #f3f4f6;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f0f0f0;
  --gold: #e07a5f;
  --gold-light: #fef0ec;
  --danger: #dc2626;
  --primary: #1a1a2e;
  --accent: #e07a5f;
  --secondary: #3d405b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.10);
  --radius: 8px;
  --radius-lg: 14px;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1360px;
  --nav-h: 72px;
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
  --focus-ring: 0 0 0 3px rgba(224, 122, 95, .35);
}

html { scroll-behavior: smooth; font-size: 16px }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; color: inherit }
select, input { font-family: var(--font-body) }

:focus { outline: none }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius) }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0 }

/* ===== Placeholder gradients ===== */
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 500; text-align: center; padding: 1rem }
.ph-1 { background: linear-gradient(135deg, #1a1a2e, #3d405b, #1a1a2e) }
.ph-2 { background: linear-gradient(135deg, #3d405b, #5a5d7a, #3d405b) }
.ph-3 { background: linear-gradient(135deg, #4a3f2f, #6a5f4f, #8a7f6f) }
.ph-4 { background: linear-gradient(135deg, #1a1a2e, #2d2d44, #1a1a2e) }
.ph-5 { background: linear-gradient(135deg, #047857, #059669, #10b981) }
.ph-6 { background: linear-gradient(135deg, #5a4a3a, #7a6a5a, #9a8a7a) }

/* ===== Nav ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid transparent; transition: var(--transition) }
.nav.scrolled { background: rgba(255,255,255,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--border); box-shadow: var(--shadow-sm) }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: var(--nav-h) }
.nav-logo { display: flex; align-items: center; height: 44px }
.nav-logo img { height: 40px; width: auto; display: block }
.nav-links { display: flex; gap: 2rem; align-items: center }
.nav-links a { font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.85); transition: var(--transition); letter-spacing: -.01em; padding: .35rem .15rem }
.nav-links a:hover { color: #fff }
.nav-links a.active { color: #fff; font-weight: 600 }
.nav.scrolled .nav-links a { color: var(--text-light) }
.nav.scrolled .nav-links a:hover { color: var(--accent) }
.nav.scrolled .nav-links a.active { color: var(--accent); font-weight: 600 }
.nav-fav-count { background: var(--accent); color: #fff; font-size: .65rem; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; margin-left: .3rem; font-weight: 600 }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px }
.mobile-menu-btn span { width: 22px; height: 2px; background: #fff; transition: var(--transition) }
.nav.scrolled .mobile-menu-btn span { background: var(--text) }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 2rem; border-radius: 50px; font-size: .9rem; font-weight: 600; transition: var(--transition); letter-spacing: -.01em; min-height: 44px; cursor: pointer }
.btn-primary { background: var(--accent); color: #fff }
.btn-primary:hover { background: #c96a52; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(224,122,95,.35) }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4) }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); transform: translateY(-2px) }
.btn-secondary { background: var(--white); color: var(--text); border: 1.5px solid var(--border) }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md) }
.btn-dark { background: var(--primary); color: #fff }
.btn-dark:hover { background: #12122a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,26,46,.3) }
.btn-sm { padding: .5rem 1.2rem; font-size: .8rem; min-height: 36px }

/* ===== Sections ===== */
.section { padding: 5rem 2rem }
.section-inner { max-width: var(--max-w); margin: 0 auto }
.section-header { text-align: center; margin-bottom: 3rem }
.section-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: .6rem }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--primary); line-height: 1.1; letter-spacing: -.03em }
.section-title em { font-style: normal; color: var(--accent) }
.section-desc { color: var(--text-light); max-width: 600px; margin: .8rem auto 0; font-size: .95rem; line-height: 1.7; font-weight: 400 }
.page-topgap { height: var(--nav-h) }

/* ===== Hero (home page) ===== */
.hero { position: relative; height: 92vh; min-height: 600px; overflow: hidden; display: flex; align-items: flex-end }
.hero-bg { position: absolute; inset: 0; background: var(--primary) }
.hero-bg::before { content: none }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,.55) 100%); z-index: 1 }

/* NEW: hero slideshow for background images */
.hero-slideshow { position: absolute; inset: 0; z-index: 0 }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease-in-out }
.hero-slide.active { opacity: 1 }
.hero-slide img { width: 100%; height: 100%; object-fit: cover }

.hero-content { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 0 2rem 6rem; width: 100% }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: .45rem 1.1rem; border-radius: 50px; font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.9); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.5rem; animation: fadeUp .8s ease .2s both }
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .4 } }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; color: #fff; line-height: 1.05; letter-spacing: -.04em; margin-bottom: 1.2rem; max-width: 750px; animation: fadeUp .8s ease .35s both }
.hero h1 em { font-style: normal; color: var(--accent); font-weight: 800 }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 560px; line-height: 1.7; margin-bottom: 2.5rem; font-weight: 400; animation: fadeUp .8s ease .5s both }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp .8s ease .65s both }

/* Stats bar with frosted glass effect */
.hero-stats { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; background: rgba(255,255,255,.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,.15) }
.hero-stats-inner { max-width: var(--max-w); margin: 0 auto; padding: 1.25rem 2rem; display: flex; gap: 3rem; animation: fadeUp .8s ease .8s both }
.hero-stat { color: rgba(255,255,255,.8) }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: #fff; letter-spacing: -.02em }
.hero-stat span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500 }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }

/* ===== Ticker ===== */
.ticker { background: var(--white); border-bottom: 1px solid var(--border); padding: 1.25rem 0; overflow: hidden }
.ticker-track { display: flex; animation: ticker 45s linear infinite; width: max-content; align-items: center }
.ticker:hover .ticker-track { animation-play-state: paused }
.ticker-item { display: flex; align-items: center; padding: 0 2.5rem; white-space: nowrap; color: var(--text-light) }
.ticker-item img { height: 32px; width: auto; object-fit: contain; filter: grayscale(40%); opacity: .7; transition: var(--transition) }
.ticker-item:hover img { filter: none; opacity: 1 }
@keyframes ticker { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }

/* ===== Featured Builders grid (home page) ===== */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem }
.feat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; transition: var(--transition); display: flex; flex-direction: column; align-items: center }
.feat-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg) }
.feat-card.premium { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) }
.feat-logo { height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; max-width: 180px }
.feat-logo img { max-height: 60px; max-width: 180px; object-fit: contain }
.feat-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: .3rem; letter-spacing: -.02em }
.feat-tag { font-size: .8rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.5 }
.feat-meta { font-size: .72rem; color: var(--text-lighter); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.2rem }
.feat-meta strong { color: var(--green); font-weight: 600 }
.feat-card .btn { width: 100%; margin-top: auto }

/* ===== How-it-works cards ===== */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem }
.how-card { text-align: center; padding: 2.5rem 1.5rem; border-radius: var(--radius-lg); transition: var(--transition) }
.how-card:hover { background: var(--white); box-shadow: var(--shadow-md) }
.how-icon { width: 64px; height: 64px; margin: 0 auto 1.2rem; background: linear-gradient(135deg, rgba(224,122,95,.08), rgba(224,122,95,.16)); border-radius: 50%; display: flex; align-items: center; justify-content: center }
.how-icon svg { width: 26px; height: 26px; color: var(--accent) }
.how-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; letter-spacing: -.02em; color: var(--primary) }
.how-card p { font-size: .88rem; color: var(--text-light); line-height: 1.7 }

/* ===== Builders page — sidebar layout ===== */
.bld-layout { display: grid; grid-template-columns: 280px 1fr; max-width: var(--max-w); margin: 0 auto; padding: 2rem; gap: 2rem; min-height: calc(100vh - var(--nav-h)) }

.bld-sidebar { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; position: sticky; top: calc(var(--nav-h) + 1rem); max-height: calc(100vh - var(--nav-h) - 2rem); overflow-y: auto; align-self: start }
.bld-sidebar-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-lighter); font-weight: 700; padding: .5rem .75rem .75rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem }
.bld-sidebar-list { display: flex; flex-direction: column; gap: .25rem }
.bld-sidebar-item { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: var(--radius); cursor: pointer; transition: var(--transition); text-align: left; width: 100%; border: 1.5px solid transparent; background: transparent }
.bld-sidebar-item:hover { background: var(--cream-dark) }
.bld-sidebar-item.active { background: var(--cream-dark); border-color: var(--accent) }
.bld-sidebar-item.active .bld-sidebar-name { color: var(--accent); font-weight: 700 }
.bld-sidebar-logo { width: 40px; height: 40px; background: var(--cream); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border: 1px solid var(--border) }
.bld-sidebar-logo img { max-width: 85%; max-height: 85%; object-fit: contain }
.bld-sidebar-name { font-size: .85rem; font-weight: 500; color: var(--text); line-height: 1.2; flex: 1 }
.bld-sidebar-premium { font-size: .55rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); margin-top: 2px; display: block }

.bld-main { min-width: 0 }

/* ===== Builder profile content (used in sidebar layout + individual pages) ===== */
.bld-profile-hero { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: center; margin-bottom: 1.5rem }
.bld-profile-hero.premium { border-top: 4px solid var(--accent) }
.bld-profile-logo { background: var(--cream); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid var(--border) }
.bld-profile-logo img { max-width: 100%; max-height: 100%; object-fit: contain }
.bld-profile-info h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--primary); line-height: 1.05; letter-spacing: -.03em; margin-bottom: .4rem }
.bld-profile-tag { font-size: 1rem; color: var(--text-light); margin-bottom: 1rem }
.bld-profile-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem }
.bld-badge { display: inline-flex; align-items: center; gap: .3rem; background: var(--cream); border: 1px solid var(--border); padding: .3rem .75rem; border-radius: 50px; font-size: .72rem; font-weight: 500; color: var(--text-light) }
.bld-badge strong { color: var(--green); font-weight: 600 }
.bld-badge.premium { background: linear-gradient(135deg, var(--accent), #d4654a); color: #fff; border-color: transparent; font-weight: 700; letter-spacing: .08em }
.bld-profile-actions { display: flex; gap: .75rem; flex-wrap: wrap }

.bld-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem }
.bld-block h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); letter-spacing: -.02em; display: flex; align-items: center; gap: .6rem }
.bld-block h2 svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0 }
.bld-block h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; color: var(--primary); letter-spacing: -.01em }
.bld-block p { color: var(--text-light); line-height: 1.75; margin-bottom: .8rem }
.bld-block ul { list-style: none; padding: 0 }
.bld-block li { padding: .4rem 0 .4rem 1.3rem; position: relative; color: var(--text-light); line-height: 1.65 }
.bld-block li::before { content: ''; position: absolute; left: 0; top: .95rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent) }

.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem }
.pros-col h3 { color: var(--green) }
.cons-col h3 { color: var(--danger) }
.cons-col li::before { background: var(--danger) !important }

/* ===== Plan filters (on builder pages) ===== */
.plan-filters { background: var(--cream); border-radius: var(--radius-lg); padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; border: 1px solid var(--border) }
.plan-filter-group { flex: 1; min-width: 140px }
.plan-filter-group label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); margin-bottom: .35rem }
.plan-filter-group select { width: 100%; padding: .55rem .75rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: .85rem; background: var(--white); min-height: 40px; cursor: pointer; transition: var(--transition) }
.plan-filter-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,122,95,.12) }
.plan-filter-clear { padding: .55rem 1rem; background: var(--white); border: 1.5px solid var(--border); border-radius: 50px; font-size: .78rem; font-weight: 600; color: var(--text-light); min-height: 40px; cursor: pointer; transition: var(--transition) }
.plan-filter-clear:hover { border-color: var(--accent); color: var(--accent) }
.plan-filter-meta { margin-bottom: 1rem; font-size: .82rem; color: var(--text-light) }
.plan-filter-meta strong { color: var(--text); font-weight: 700 }

/* ===== Plan grid & card ===== */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem }
.plan-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; cursor: pointer }
.plan-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg) }
.plan-card-img { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--cream-dark) }
.plan-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease }
.plan-card:hover .plan-card-img img { transform: scale(1.04) }
.plan-card-img .img-placeholder { position: absolute; inset: 0; font-size: .8rem }
.plan-card-fav { position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; color: var(--text-light); border: none; transition: var(--transition) }
.plan-card-fav:hover, .plan-card-fav.active { color: var(--accent); background: #fff }
.plan-card-fav.active svg { fill: currentColor }
.plan-card-fav svg { width: 18px; height: 18px }
.plan-card-estimate { position: absolute; bottom: .6rem; left: .6rem; background: rgba(26,26,46,.7); color: #fff; font-size: .6rem; padding: .2rem .5rem; border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(4px) }
.plan-card-body { padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1 }
.plan-card-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--primary); line-height: 1.2; letter-spacing: -.02em }
.plan-card-builder { font-size: .7rem; color: var(--text-lighter); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; display: flex; align-items: center; min-height: 28px }
.plan-card-builder-logo { max-height: 34px; max-width: 140px; width: auto; object-fit: contain; opacity: 1 }
.plan-card:hover .plan-card-builder-logo { transform: scale(1.05) }
.plan-card-meta { display: flex; gap: .8rem; font-size: .78rem; color: var(--text-light); margin-top: .3rem; flex-wrap: wrap }
.plan-card-meta span { display: inline-flex; align-items: center; gap: .25rem }

.empty-state { text-align: center; padding: 3rem 2rem; color: var(--text-light); background: var(--cream); border: 1px dashed var(--border); border-radius: var(--radius-lg); grid-column: 1 / -1 }
.empty-state strong { display: block; color: var(--primary); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem }

/* ===== Franchisee block ===== */
.franchisee-select-wrap { margin-bottom: 1rem }
.franchisee-select-wrap label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); margin-bottom: .35rem }
.franchisee-select-wrap select { width: 100%; max-width: 360px; padding: .65rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--cream); font-size: .9rem; min-height: 44px; transition: var(--transition) }
.franchisee-select-wrap select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,122,95,.12) }
.franchisee-details { background: linear-gradient(135deg, rgba(224,122,95,.04), rgba(224,122,95,.01)); border: 1px solid rgba(224,122,95,.18); border-radius: var(--radius-lg); padding: 1.5rem }
.franchisee-details .fr-suburb { font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); font-weight: 700; margin-bottom: .5rem; letter-spacing: -.02em }
.franchisee-details .fr-manager { font-size: .85rem; color: var(--text); margin-bottom: .75rem }
.franchisee-details .fr-contact { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .82rem; color: var(--text-light) }
.franchisee-details .fr-contact a { color: var(--accent); font-weight: 600 }
.franchisee-details .fr-contact a:hover { text-decoration: underline }
.franchisee-details .fr-socials { margin-top: 1rem; display: flex; gap: .5rem }
.franchisee-details .fr-socials a { width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--text-light); transition: var(--transition) }
.franchisee-details .fr-socials a:hover { color: var(--accent); border-color: var(--accent) }
.franchisee-details .fr-socials svg { width: 16px; height: 16px }

.franchisee-fallback { background: linear-gradient(135deg, rgba(224,122,95,.04), rgba(224,122,95,.01)); border: 1px dashed rgba(224,122,95,.3); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center }
.franchisee-fallback p { margin-bottom: 1rem; font-size: .88rem; color: var(--text-light) }

/* ===== Compare tool page ===== */
.compare-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 2rem }
.compare-form h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: .3rem; letter-spacing: -.02em; color: var(--primary) }
.compare-form-sub { font-size: .88rem; color: var(--text-light); margin-bottom: 1.5rem }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem }
.compare-grid label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); margin-bottom: .35rem }
.compare-grid select, .compare-grid input { width: 100%; padding: .65rem .85rem; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--cream); font-size: .88rem; min-height: 44px; transition: var(--transition) }
.compare-grid select:focus, .compare-grid input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,122,95,.12); outline: none }
.compare-actions { display: flex; gap: .75rem; flex-wrap: wrap }
.compare-count { font-size: .9rem; color: var(--text-light); margin-bottom: 1rem }
.compare-count strong { color: var(--text); font-weight: 700 }

/* ===== Favourites ===== */
.fav-grouped { display: flex; flex-direction: column; gap: 2rem }
.fav-group { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem }
.fav-group-header { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem }
.fav-group-logo { width: 60px; height: 60px; background: var(--cream); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); flex-shrink: 0 }
.fav-group-logo img { max-width: 80%; max-height: 80%; object-fit: contain }
.fav-group-info { flex: 1; min-width: 0 }
.fav-group-info h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; color: var(--primary) }
.fav-group-count { font-size: .75rem; color: var(--text-lighter); text-transform: uppercase; letter-spacing: .06em; margin-top: .1rem; font-weight: 500 }
.fav-group a.btn { flex-shrink: 0 }

.fav-empty { text-align: center; padding: 4rem 2rem; background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius-lg) }
.fav-empty svg { width: 52px; height: 52px; color: var(--border); margin: 0 auto 1rem }
.fav-empty strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: .4rem }
.fav-empty p { color: var(--text-light); font-size: .9rem; max-width: 400px; margin: 0 auto 1.5rem }

/* ===== Modal (plan detail with region picker) ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(26,26,46,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s ease }
.modal-overlay.open { opacity: 1; pointer-events: all }
.modal { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2001; width: min(760px, 96vw); background: var(--cream); overflow-y: auto; transform: translateX(100%); transition: transform .4s cubic-bezier(.4,0,.2,1) }
.modal-overlay.open .modal { transform: translateX(0) }
.modal-close { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: rgba(250,250,250,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border) }
.modal-close-label { font-size: .82rem; font-weight: 700; color: var(--text) }
.modal-close button { width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 1.1rem }
.modal-close button:hover { background: var(--cream-dark) }
.modal-body { padding: 0 }
.modal-hero { aspect-ratio: 16/9; position: relative; background: var(--cream-dark) }
.modal-hero img { width: 100%; height: 100%; object-fit: cover }
.modal-hero .img-placeholder { position: absolute; inset: 0 }
.modal-hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem 2rem; background: linear-gradient(transparent, rgba(26,26,46,.78)); color: #fff }
.modal-hero-overlay .mh-builder { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; font-weight: 600 }
.modal-hero-overlay h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; margin-top: .2rem }
.modal-hero-overlay .mh-meta { font-size: .88rem; margin-top: .4rem; opacity: .9 }
.modal-section { padding: 1.5rem 2rem; border-top: 1px solid var(--border) }
.modal-section:first-of-type { border-top: none; padding-top: 2rem }
.modal-section h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; color: var(--primary); letter-spacing: -.02em }
.modal-floorplan { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: .5rem }
.modal-floorplan img { width: 100%; height: auto; object-fit: contain; border-radius: 4px }

/* ===== Footer ===== */
.footer { background: var(--primary); color: rgba(255,255,255,.7); padding: 4rem 2rem 2rem; margin-top: 4rem }
.footer-inner { max-width: var(--max-w); margin: 0 auto }
.footer-top { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08) }
.footer-brand { max-width: 320px }
.footer-logo { max-width: 220px; width: 100%; height: auto; margin-bottom: .9rem; display: block }
.footer-brand p { font-size: .85rem; line-height: 1.7 }
.footer-col h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.35); margin-bottom: 1rem; font-weight: 700 }
.footer-col a { display: block; font-size: .85rem; margin-bottom: .5rem; transition: var(--transition) }
.footer-col a:hover { color: var(--accent) }
.footer-bottom { text-align: center; font-size: .78rem; color: rgba(255,255,255,.3) }

/* ===== Page intro (shared header strip for compare, favourites, how) ===== */
.page-intro { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%); padding: 5rem 2rem 3rem; text-align: center }
.page-intro-inner { max-width: 720px; margin: 0 auto }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .6s ease, transform .6s ease }
.reveal.visible { opacity: 1; transform: translateY(0) }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none } }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .bld-layout { grid-template-columns: 240px 1fr }
}

@media (max-width: 900px) {
  .bld-layout { grid-template-columns: 1fr; padding: 1rem }
  .bld-sidebar { position: static; max-height: none; margin-bottom: 1rem }
  .bld-sidebar-list { flex-direction: row; flex-wrap: wrap; gap: .5rem }
  .bld-sidebar-item { flex: 1; min-width: 140px }
  .bld-profile-hero { grid-template-columns: 1fr; padding: 1.75rem; text-align: center }
  .bld-profile-logo { max-width: 180px; margin: 0 auto; aspect-ratio: auto; padding: 1rem }
  .bld-profile-actions { justify-content: center }
  .pros-cons-grid { grid-template-columns: 1fr }
}

@media (max-width: 768px) {
  .nav-links { display: none }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; gap: 1rem; box-shadow: var(--shadow-md) }
  .nav-links.open a { color: var(--text-light) }
  .nav-links.open a:hover { color: var(--accent) }
  .nav-links.open a.active { color: var(--accent) }
  .mobile-menu-btn { display: flex }
  .section { padding: 3.5rem 1.25rem }
  .hero { height: 80vh; min-height: 520px }
  .hero h1 { font-size: 2.2rem }
  .hero-stats-inner { flex-direction: column; gap: .75rem }
  .how-grid { grid-template-columns: 1fr }
  .footer-top { flex-direction: column }
  .modal { width: 100vw }
  .modal-section { padding: 1.25rem 1.25rem }
  .plan-filters { flex-direction: column; align-items: stretch }
  .plan-filter-group { min-width: 100% }
  .compare-grid { grid-template-columns: 1fr 1fr }
  .fav-group-header { flex-wrap: wrap }
  .bld-block { padding: 1.5rem }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem }
  .compare-grid { grid-template-columns: 1fr }
  .plans-grid { grid-template-columns: 1fr }
  .feat-grid { grid-template-columns: 1fr }
}

/* ============================================================
   Plan modal gallery — multi-photo viewer with arrows + dots
   ============================================================ */
.modal-gallery { position: relative; aspect-ratio: 16/9; background: var(--cream-dark); overflow: hidden }
.gal-slides { position: absolute; inset: 0 }
.gal-slide { position: absolute; inset: 0 }
.gal-slide img { width: 100%; height: 100%; object-fit: cover }

.gal-type-label {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(26,26,46,.7); color: #fff;
  font-size: .65rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 50px;
  letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--primary);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1;
  transition: var(--transition); z-index: 3;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.gal-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08) }
.gal-prev { left: 1rem }
.gal-next { right: 1rem }

.gal-dots {
  position: absolute; bottom: 4.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .4rem; z-index: 3;
}
.gal-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; cursor: pointer; padding: 0;
  transition: var(--transition);
}
.gal-dot:hover { background: rgba(255,255,255,.8) }
.gal-dot.active { background: #fff; width: 24px; border-radius: 4px }

.gal-counter {
  position: absolute; bottom: 4.5rem; right: 1.25rem;
  background: rgba(26,26,46,.6); color: #fff;
  font-size: .72rem; padding: .25rem .6rem;
  border-radius: 50px; z-index: 3;
  backdrop-filter: blur(4px);
}

/* Let the hero-overlay sit on top of the gallery */
.modal-gallery .modal-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 2rem; background: linear-gradient(transparent, rgba(26,26,46,.78));
  color: #fff; z-index: 2; pointer-events: none;
}

@media (max-width: 600px) {
  .gal-arrow { width: 38px; height: 38px; font-size: 1.3rem }
  .gal-prev { left: .5rem }
  .gal-next { right: .5rem }
  .gal-dots { bottom: 4rem }
  .gal-counter { bottom: 4rem; right: .5rem; font-size: .65rem }
  .modal-gallery .modal-hero-overlay { padding: 1rem 1.25rem }
}

/* ---------- Show homes in plan modal ---------- */
.show-homes-section { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border) }
.show-homes-section h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; letter-spacing: -.01em }
.show-home-card { background: var(--cream); border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: .65rem; border: 1px solid var(--border) }
.sh-name { font-weight: 700; font-size: .92rem; color: var(--primary) }
.sh-address { font-size: .84rem; color: var(--text-light); margin-top: .15rem }
.sh-hours { font-size: .78rem; color: var(--text-lighter); margin-top: .25rem }
.sh-plan { font-size: .78rem; color: var(--text-lighter); margin-top: .15rem }
.sh-directions { font-size: .8rem; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-block; margin-top: .35rem }
.sh-directions:hover { text-decoration: underline }

/* ============================================================
   NEW CLASSES
   ============================================================ */

/* Social links — for Facebook/Instagram icon buttons in the footer */
.social-links { display: flex; gap: .65rem; margin-top: 1.25rem }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: var(--transition);
}
.social-links a:hover {
  background: var(--accent); border-color: var(--accent);
  color: #fff; transform: translateY(-2px);
}
.social-links svg { width: 18px; height: 18px }

/* Builders CTA — "Are you a builder?" call-to-action section */
.builders-cta {
  background: var(--primary);
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.builders-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(224,122,95,.15), transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(61,64,91,.3), transparent 60%);
  pointer-events: none;
}
.builders-cta .section-inner { position: relative; z-index: 1 }
.builders-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
  line-height: 1.1;
}
.builders-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* NZ Badge — "Proudly NZ owned" badge styling */
.nz-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(5,150,105,.08);
  border: 1px solid rgba(5,150,105,.2);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .02em;
}
.nz-badge::before {
  content: '';
  width: 20px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect fill='%23012169' width='60' height='40'/%3E%3Cpath d='M40 12l-2.5 1.5.5-3-2-2 3-.4L40 5.5l1 2.6 3 .4-2 2 .5 3z' fill='%23fff'/%3E%3Cpath d='M48 20l-2 1.2.4-2.4-1.6-1.6 2.4-.3.8-2 .8 2 2.4.3-1.6 1.6.4 2.4z' fill='%23fff'/%3E%3Cpath d='M46 28l-1.6 1-.3-2-1.3-1.3 2-.2.6-1.7.7 1.7 2 .2-1.4 1.3.3 2z' fill='%23fff'/%3E%3Cpath d='M40 32l-1.6 1-.3-2-1.3-1.3 2-.2.6-1.7.7 1.7 2 .2-1.4 1.3.3 2z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}

/* ---------- Plan card pricing ---------- */
.plan-card-price { font-size: .78rem; font-weight: 600; color: var(--accent, #e07a5f); margin-top: .4rem; padding-top: .4rem; border-top: 1px solid var(--border-light, #f0f0f0) }
.modal-price { font-size: 1.15rem; font-weight: 700; color: var(--accent, #e07a5f); margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border-light, #f0f0f0) }
