/* ═══════════════════════════════════════════
   TAZWAR DIGITAL STUDIO — STYLESHEET
   ═══════════════════════════════════════════ */

/* ── Reset & Vars ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --dark: #0f0f14;
  --dark-2: #1a1a24;
  --dark-3: #25253a;
  --mid: #3a3a5c;
  --grey: #6e6e8a;
  --light-grey: #b0b0c4;
  --border: #e2e2ee;
  --bg: #fafafe;
  --bg-2: #f0f0f8;
  --white: #ffffff;
  --accent: #4f46e5;
  --accent-light: #818cf8;
  --accent-bg: #eef2ff;
  --success: #059669;
  --success-bg: #d1fae5;
  --danger: #dc2626;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(15,15,20,0.04), 0 1px 2px rgba(15,15,20,0.06);
  --shadow: 0 4px 24px rgba(15,15,20,0.06), 0 1px 4px rgba(15,15,20,0.04);
  --shadow-lg: 0 12px 48px rgba(15,15,20,0.08), 0 2px 8px rgba(15,15,20,0.04);
  --shadow-xl: 0 24px 64px rgba(15,15,20,0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,254,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.logo-text { font-weight: 600; font-size: 15px; color: var(--dark); letter-spacing: -0.02em; }
.nav-cta {
  font-size: 14px; font-weight: 600; color: var(--accent);
  text-decoration: none; padding: 8px 18px; border-radius: 10px;
  border: 1.5px solid var(--accent);
  transition: var(--transition);
}
.nav-cta:hover { background: var(--accent); color: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 12px 28px; border-radius: 12px; border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }
.btn-primary {
  background: var(--accent); color: var(--white);
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}
.btn-primary:hover { background: #4338ca; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,70,229,0.35); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--grey); border: 1.5px solid var(--border); }
.btn-ghost:hover { color: var(--dark); border-color: var(--dark-3); background: var(--bg-2); }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 14px; }

/* ── HERO ── */
.hero {
  position: relative; padding: 160px 0 80px;
  background: linear-gradient(170deg, var(--bg) 0%, var(--bg-2) 50%, var(--white) 100%);
  overflow: hidden; text-align: center;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
  position: absolute; border-radius: 50%; opacity: 0.08;
  background: var(--accent);
}
.hero-shape-1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.hero-shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.hero-shape-3 { width: 200px; height: 200px; top: 30%; left: 20%; opacity: 0.05; }

.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-bg);
  padding: 6px 16px; border-radius: 100px; margin-bottom: 28px;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 7vw, 72px); line-height: 1.08;
  letter-spacing: -0.03em; color: var(--dark); margin-bottom: 24px;
}
.hero-accent { color: var(--accent); }
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 19px); color: var(--grey);
  max-width: 580px; margin: 0 auto 40px; line-height: 1.65;
}
#hero-cta { margin: 0 auto; }

/* Process Strip */
.process-strip {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 72px; flex-wrap: wrap;
}
.process-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 24px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.process-num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; }
.process-label { font-size: 13px; color: var(--grey); font-weight: 500; margin-top: 4px; }
.process-arrow { color: var(--light-grey); display: flex; }

/* ── PROGRESS BAR ── */
.progress-bar-wrap {
  position: sticky; top: 64px; z-index: 90;
  background: rgba(250,250,254,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: none; /* shown by JS */
}
.progress-bar-wrap.visible { display: block; }
.progress-inner { max-width: 560px; margin: 0 auto; padding: 16px 24px; }
.progress-steps { display: flex; align-items: center; gap: 0; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.progress-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--bg-2); color: var(--grey);
  border: 2px solid var(--border); transition: var(--transition);
}
.progress-step.active .progress-dot { background: var(--accent); color: var(--white); border-color: var(--accent); }
.progress-step.done .progress-dot { background: var(--success); color: var(--white); border-color: var(--success); }
.progress-step-label { font-size: 11px; font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: 0.04em; }
.progress-step.active .progress-step-label { color: var(--accent); }
.progress-step.done .progress-step-label { color: var(--success); }
.progress-line { flex: 1; height: 3px; background: var(--border); border-radius: 3px; margin: 0 8px; position: relative; align-self: flex-start; margin-top: 15px; }
.progress-line-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--success); border-radius: 3px; transition: width 0.4s ease; }

/* ── STEP SECTIONS (shared) ── */
.step-section { padding: 80px 0 100px; }
.step-header { text-align: center; margin-bottom: 48px; }
.step-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 12px;
}
.step-title {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 42px);
  font-weight: 700; letter-spacing: -0.02em; color: var(--dark); margin-bottom: 12px;
}
.step-subtitle { font-size: 17px; color: var(--grey); max-width: 540px; margin: 0 auto; }
.step-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; }

/* ── STYLE CARDS (Step 1) ── */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.style-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: var(--transition); position: relative;
}
.style-card:hover { border-color: var(--accent-light); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.style-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.15), var(--shadow-lg); }
.style-card.selected::after {
  content: '✓'; position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; z-index: 2;
}

/* Mini Mockup Preview */
.style-preview {
  height: 200px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.mini-site {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  font-family: var(--font-body);
}
.mini-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; font-size: 8px; font-weight: 600;
}
.mini-nav-links { display: flex; gap: 10px; font-size: 7px; opacity: 0.6; }
.mini-hero-area {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12px 20px; text-align: center;
}
.mini-hero-area h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.2; }
.mini-hero-area p { font-size: 7px; opacity: 0.6; max-width: 180px; line-height: 1.4; }
.mini-btn {
  display: inline-block; padding: 4px 14px; border-radius: 6px;
  font-size: 7px; font-weight: 700; margin-top: 8px; border: none;
}
.mini-cards {
  display: flex; gap: 6px; padding: 0 16px 10px; justify-content: center;
}
.mini-card-block {
  width: 50px; height: 28px; border-radius: 4px; opacity: 0.5;
}

/* Per-style visual overrides */
.mini-site.s-minimalist { background: #fafafa; color: #1a1a1a; }
.mini-site.s-minimalist .mini-nav { border-bottom: 1px solid #eee; }
.mini-site.s-minimalist .mini-btn { background: #1a1a1a; color: #fff; }
.mini-site.s-minimalist .mini-card-block { background: #e8e8e8; }

.mini-site.s-light { background: #fff9f5; color: #5a3e36; }
.mini-site.s-light .mini-nav { border-bottom: 1px solid #f0e4dc; }
.mini-site.s-light .mini-btn { background: #e8a87c; color: #fff; }
.mini-site.s-light .mini-card-block { background: #f5e0d0; }
.mini-site.s-light .mini-hero-area h3 { font-family: var(--font-display); }

.mini-site.s-dark { background: #121218; color: #e8e8f0; }
.mini-site.s-dark .mini-nav { border-bottom: 1px solid #2a2a3a; }
.mini-site.s-dark .mini-btn { background: #6c5ce7; color: #fff; }
.mini-site.s-dark .mini-card-block { background: #2a2a3a; }

.mini-site.s-warm { background: #f4efe8; color: #3d3225; }
.mini-site.s-warm .mini-nav { border-bottom: 1px solid #ddd5c8; }
.mini-site.s-warm .mini-btn { background: #7a6b4e; color: #fff; border-radius: 4px; }
.mini-site.s-warm .mini-card-block { background: #d4c8b0; }
.mini-site.s-warm .mini-hero-area h3 { font-family: var(--font-display); }

.mini-site.s-vibrant { background: #fffbe6; color: #1a1a2e; }
.mini-site.s-vibrant .mini-nav { border-bottom: 2px solid #ff6b6b; }
.mini-site.s-vibrant .mini-btn { background: #ff6b6b; color: #fff; border-radius: 100px; }
.mini-site.s-vibrant .mini-card-block:nth-child(1) { background: #ff6b6b; }
.mini-site.s-vibrant .mini-card-block:nth-child(2) { background: #48dbfb; }
.mini-site.s-vibrant .mini-card-block:nth-child(3) { background: #feca57; }

.mini-site.s-classic { background: #f8f7f4; color: #1c2541; }
.mini-site.s-classic .mini-nav { border-bottom: 2px solid #1c2541; font-size: 7px; text-transform: uppercase; letter-spacing: 0.08em; }
.mini-site.s-classic .mini-btn { background: #1c2541; color: #c9a84c; border-radius: 2px; }
.mini-site.s-classic .mini-card-block { background: #d0cdc4; }
.mini-site.s-classic .mini-hero-area h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

.style-card-body { padding: 20px 24px 24px; }
.style-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.style-desc { font-size: 14px; color: var(--grey); margin-bottom: 10px; line-height: 1.55; }
.style-meta { font-size: 12px; color: var(--light-grey); line-height: 1.6; }
.style-meta strong { color: var(--grey); font-weight: 600; }

/* ── PALETTE CARDS (Step 2) ── */
.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.palette-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: var(--transition); position: relative;
}
.palette-card:hover { border-color: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.palette-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.15), var(--shadow-lg); }
.palette-card.selected::after {
  content: '✓'; position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; z-index: 2;
}
.palette-swatches { display: flex; height: 64px; }
.palette-swatch { flex: 1; position: relative; }
.palette-swatch .hex-label {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  font-size: 8px; font-weight: 600; opacity: 0; transition: var(--transition);
  background: rgba(0,0,0,0.5); color: #fff; padding: 2px 5px; border-radius: 3px;
  white-space: nowrap;
}
.palette-card:hover .hex-label { opacity: 1; }
.palette-card-body { padding: 16px 20px 20px; }
.palette-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; color: var(--dark); }
.palette-colours-text { font-size: 12px; color: var(--light-grey); margin-bottom: 8px; }
.palette-mood { font-size: 13px; color: var(--grey); line-height: 1.5; }

/* ── TEMPLATE CARDS (Step 3) ── */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.template-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: var(--transition); position: relative;
}
.template-card:hover { border-color: var(--accent-light); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.template-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.15), var(--shadow-lg); }
.template-card.selected::after {
  content: '✓'; position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; z-index: 2;
}

/* Mini layout preview */
.template-preview {
  padding: 20px; background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px; min-height: 160px;
}
.section-block {
  border-radius: 6px; padding: 6px 10px; font-size: 9px; font-weight: 600;
  text-align: center; color: var(--white); letter-spacing: 0.02em;
}
.section-block.hero-block { background: var(--accent); flex: 2; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.section-block.content-block { background: var(--dark-3); flex: 1; }
.section-block.alt-block { background: var(--grey); flex: 1; }
.section-block.cta-block { background: var(--success); flex: 1; }

.template-card-body { padding: 20px 24px 24px; }
.template-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.template-desc { font-size: 14px; color: var(--grey); margin-bottom: 10px; line-height: 1.55; }
.template-sections-flow { font-size: 12px; color: var(--accent); font-weight: 500; margin-bottom: 8px; line-height: 1.6; }
.template-best { font-size: 12px; color: var(--light-grey); }
.template-best strong { color: var(--grey); font-weight: 600; }

/* ── SUMMARY BAR ── */
.summary-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 40px;
}
.summary-item {
  background: var(--accent-bg); border: 1px solid rgba(79,70,229,0.15);
  border-radius: var(--radius); padding: 16px 20px; text-align: center;
}
.summary-item-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 4px; }
.summary-item-value { font-size: 15px; font-weight: 600; color: var(--dark); }

/* ── QUOTE FORM ── */
.quote-form { max-width: 720px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; transition: opacity 0.25s ease, max-height 0.25s ease; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: 14px; font-weight: 600; color: var(--dark);
  margin-bottom: 6px;
}
.form-group label .req { color: var(--danger); }
.form-group label .opt { color: var(--light-grey); font-weight: 400; font-size: 12px; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--dark);
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select { cursor: pointer; }

/* ── SUCCESS STATE ── */
.success-state { text-align: center; padding: 40px 0; }
.success-card {
  max-width: 560px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius-xl);
  padding: 48px 40px; box-shadow: var(--shadow-lg);
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.success-check {
  color: var(--success); margin-bottom: 20px;
  animation: checkDraw 0.6s ease 0.3s both;
}
@keyframes checkDraw {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.check-path {
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: drawCheck 0.5s ease 0.6s forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.success-title {
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  color: var(--dark); margin-bottom: 12px;
}
.success-text { font-size: 16px; color: var(--grey); margin-bottom: 28px; line-height: 1.6; }
.success-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 28px;
}
.success-chip {
  background: var(--accent-bg); border-radius: 10px; padding: 12px;
}
.success-chip-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--accent); letter-spacing: 0.06em; }
.success-chip-value { font-size: 14px; font-weight: 600; color: var(--dark); margin-top: 2px; }

/* ── CONFETTI ── */
#confetti-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark); color: var(--light-grey);
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-mark { background: var(--accent); }
.footer-brand .logo-text { color: var(--white); }
.footer-copy { font-size: 13px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 130px 0 60px; }
  .process-strip { gap: 8px; }
  .process-card { padding: 12px 14px; }
  .process-num { font-size: 22px; }
  .process-arrow { display: none; }
  .style-grid, .palette-grid, .template-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .summary-bar { grid-template-columns: 1fr; }
  .success-summary { grid-template-columns: 1fr; }
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .progress-steps { gap: 0; }
  .progress-step-label { font-size: 9px; }
  .progress-dot { width: 28px; height: 28px; font-size: 12px; }
  .progress-line { margin: 0 4px; margin-top: 13px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .step-title { font-size: 26px; }
  .style-card-body, .template-card-body { padding: 16px 18px 20px; }
  .success-card { padding: 32px 24px; }
}
