/* ==========================================================================
   FRAMING IDEAS LLC — CLIENT PROPOSAL & ESTIMATOR STYLESHEET
   Design Theme: Luxury Creative Agency Ledger (Deep Navy, Gold, Cream)
   ========================================================================== */

:root {
  --bg-main: #060B14;
  --bg-surface: #0B1322;
  --bg-card: #101B2E;
  --bg-card-hover: #16243D;
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-active: #F59E0B;
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --gold: #F59E0B;
  --gold-bright: #FBBF24;
  --gold-glow: rgba(245, 158, 11, 0.15);
  
  --blue-accent: #0284C7;
  --blue-glow: rgba(2, 132, 199, 0.15);
  
  --emerald: #10B981;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Subtle background mesh */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.035) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(2, 132, 199, 0.04) 0%, transparent 45%);
  z-index: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ════════ HEADER ════════ */
.app-header {
  background: rgba(11, 19, 34, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-bright);
  box-shadow: 0 0 15px var(--gold-glow);
}

.brand-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  display: block;
}

.brand-title em {
  font-style: normal;
  color: var(--gold-bright);
}

.brand-subtitle {
  font-size: 10.5px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  display: block;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.currency-toggle {
  background: #080E1A;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 2px;
  display: flex;
}

.curr-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.curr-btn:hover {
  color: var(--text-primary);
}

.curr-btn.is-active {
  background: var(--gold);
  color: #060B14;
  font-weight: 700;
}

.live-site-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border-hairline);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.live-site-link:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ════════ HERO STRIP ════════ */
.hero-strip {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--border-hairline);
  background: linear-gradient(180deg, rgba(16, 27, 46, 0.4) 0%, transparent 100%);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 740px;
  line-height: 1.6;
}

/* ════════ BUILDER LAYOUT ════════ */
.builder-section {
  padding: 36px 0 80px;
}

.builder-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 28px;
  align-items: start;
}

/* ════════ CARDS & STEPS ════════ */
.card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-box:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--gold-glow);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-header h2 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.card-header p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Form Controls */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input, .input-group select {
  background: #070D18;
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease;
}

.input-group input:focus, .input-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

/* ════════ LOGO TIER CARDS ════════ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tier-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.tier-card.is-selected {
  background: #14223B;
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 3px;
}

.tier-badge.popular {
  background: var(--gold);
  color: #060B14;
}

.tier-price {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-bright);
}

.tier-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tier-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.tier-features {
  list-style: none;
  padding-top: 10px;
  border-top: 1px solid var(--border-hairline);
  margin-top: auto;
}

.tier-features li {
  font-size: 11px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 14px;
  margin-bottom: 5px;
}

.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

/* ════════ TOGGLE SWITCHES & SLIDERS ════════ */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #080F1D;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.switch-wrap {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider.round {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #1E293B;
  transition: 0.3s;
  border-radius: 24px;
  border: 1px solid var(--border-hairline);
}

.slider.round:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider.round {
  background-color: var(--gold);
}

input:checked + .slider.round:before {
  transform: translateX(20px);
  background-color: #060B14;
}

.toggle-text strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
}

.toggle-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.web-options {
  padding-top: 12px;
}

.slider-control {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 13px;
}

.slider-label-row strong {
  color: var(--gold-bright);
}

.slider-price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #1E293B;
  border-radius: 2px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid #060B14;
  box-shadow: 0 0 10px var(--gold-glow);
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 8px;
}

.addons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.addon-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.addon-chip:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.addon-chip input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.addon-title {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.addon-meta {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Video Options */
.video-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vtype-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.vtype-card input[type="radio"] {
  position: absolute;
  top: 14px;
  right: 14px;
  accent-color: var(--gold);
}

.vtype-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.vtype-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.vtype-desc {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.is-hidden {
  display: none !important;
}

/* ════════ STICKY PROPOSAL SIDEBAR ════════ */
.sticky-panel {
  position: sticky;
  top: 86px;
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 14px;
}

.panel-head h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.quote-ref {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-glow);
  padding: 3px 6px;
  border-radius: 3px;
}

.client-meta-box {
  background: #080E1C;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 16px;
}

.cm-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}

.cm-company {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.cm-industry {
  display: inline-block;
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: var(--blue-accent);
  margin-top: 4px;
  text-transform: uppercase;
}

.line-items {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.line-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-hairline);
  font-size: 12px;
}

.lir-title {
  color: var(--text-secondary);
}

.lir-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 14px;
}

.total-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.total-terms {
  font-size: 10px;
  color: var(--text-muted);
}

.total-amount {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-bright);
}

.turnaround-box {
  background: #091122;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 11px;
}

.tb-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.tb-label { color: var(--text-secondary); }
.tb-val { color: var(--emerald); }

/* ROI Box */
.roi-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(2, 132, 199, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 18px;
}

.roi-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.roi-input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
}

.roi-input-row input {
  width: 90px;
  background: #080D1A;
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 6px;
  border-radius: 3px;
  text-align: right;
}

.roi-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.rm-lbl {
  display: block;
  font-size: 9.5px;
  color: var(--text-secondary);
}

.rm-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
}

.rm-val.gold {
  color: var(--gold-bright);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.btn {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gold);
  color: #060B14;
}

.btn-primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.agency-contact-note {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ════════ TOAST ════════ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10B981;
  color: #060B14;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ════════ FOOTER ════════ */
.app-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 24px 0;
  background: #040810;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1024px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }
  .sticky-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .tier-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .video-type-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
