/* ══════════════════════════════════════════
   DocketWorks — 2-Minute Calculator
   Main Stylesheet
   ══════════════════════════════════════════ */

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

:root {
  --primary:             #12263e;
  --primary-dark:        #0c1c2e;
  --primary-mid:         #1a3354;
  --secondary:           #ff6600;
  --secondary-hover:     #e55c00;
  --secondary-soft:      rgba(255,102,0,0.10);
  --secondary-border:    rgba(255,102,0,0.25);
  --text-on-dark:        #ffffff;
  --text-on-dark-muted:  rgba(255,255,255,0.58);
  --text-main:           #12263e;
  --text-muted:          #5a6e82;
  --border-light:        rgba(18,38,62,0.09);
  --input-bg:            #f3f6fa;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ══ HEADER ══ */
.main-header {
  background: #0d1d30;
  padding: 25px 0;
  border-bottom: 2px solid #ff6600;
}
.main-header .inner-header img { width: 250px; }
@media (max-width: 600px) {
    .main-header .inner-header img { width: 160px; }
}
.main-header .inner-header a {
  font-family: 'Nunito Sans', sans-serif;
  color: #fff;
  font-weight: bold;
  font-size: 22px;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}
.main-header .inner-header a:hover { color: #ff6600; }
.main-header .inner-header a svg {
  position: relative;
  bottom: 2px;
  right: 5px;
  color: #fff;
  height: 30px;
  width: 20px;
  transition: 0.2s ease-in-out;
}
.main-header .inner-header a:hover svg { color: #ff6600; }
.main-header .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ══ HERO ══ */
.hero-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  padding: 76px 24px 88px;
  text-align: center;
}
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-section::before {
  width: 480px; height: 480px;
  top: -160px; right: -140px;
  border: 1px solid rgba(255,102,0,0.10);
}
.hero-section::after {
  width: 320px; height: 320px;
  bottom: -100px; left: -80px;
  border: 1px solid rgba(255,255,255,0.04);
}
.hero-ring {
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  border: 1px solid rgba(255,102,0,0.05);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 30px;
  padding: 7px 20px;
  border: 1px solid var(--secondary-border);
  border-radius: 100px;
  background: var(--secondary-soft);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
.hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-on-dark);
  margin-bottom: 22px;
}
.hero-title em {
  font-style: italic;
  color: var(--secondary);
}
.hero-sub {
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--text-on-dark-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ══ CALCULATOR SECTION ══ */
.calc-section {
  background: #edf1f6;
  padding: 4rem 1rem;
}
.calc-wrapper {
  max-width: 800px;
  margin: 0 auto;
  transform: translateY(-40px);
}

/* Progress strip */
.progress-strip {
  background: var(--primary-mid);
  border-radius: 14px 14px 0 0;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.prog-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}
.prog-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.10);
  border-radius: 3px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), #ff9533);
  border-radius: 3px;
  width: 0%;
  transition: width 0.45s cubic-bezier(0.4,0,0.2,1);
}
.prog-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--secondary);
  min-width: 38px;
  text-align: right;
}

/* White card */
.card {
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  padding: 44px 44px 38px;
  box-shadow: 0 24px 64px rgba(18,38,62,0.13), 0 4px 16px rgba(18,38,62,0.05);
}
.section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* Form fields */
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }

label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

select, input[type="number"], input[type="text"] {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14.5px;
  color: var(--text-main);
  background: var(--input-bg);
  border: 1.5px solid transparent;
  border-radius: 9px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='6' viewBox='0 0 11 6'%3E%3Cpath d='M1 1l4.5 4L10 1' stroke='%235a6e82' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}
select option { background: #fff; color: var(--text-main); }
select:focus,
input[type="number"]:focus,
input[type="text"]:focus {
  border-color: var(--secondary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,102,0,0.09);
}
input::placeholder { color: rgba(18,38,62,0.22); }

.specify-field {
  overflow: hidden; max-height: 0; opacity: 0;
  margin-top: -14px;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}
.specify-field.visible { max-height: 80px; opacity: 1; margin-top: 0; }

/* Stepper */
.num-wrap {
  display: flex; align-items: center;
  background: var(--input-bg);
  border: 1.5px solid transparent;
  border-radius: 9px; overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.num-wrap:focus-within {
  border-color: var(--secondary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,102,0,0.09);
}
.num-btn {
  background: none; border: none;
  color: var(--text-muted);
  padding: 11px 14px; cursor: pointer;
  font-size: 17px; font-weight: 300; line-height: 1;
  flex-shrink: 0; user-select: none;
  transition: color 0.15s, background 0.15s;
}
.num-btn:hover { color: var(--secondary); background: rgba(255,102,0,0.07); }
.num-wrap input {
  border: none !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
  text-align: center; padding: 11px 4px; flex: 1; min-width: 0;
}

/* Range slider */
.range-display {
  text-align: center;
  margin-bottom: 10px;
}
.range-number {
  font-family: 'Lora', serif;
  font-size: 24px; font-weight: 600;
  color: var(--secondary);
}
.range-unit {
  font-size: 13px; color: var(--text-muted);
  font-weight: 400; margin-left: 4px;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 4px;
  background: #dde4ec; border: none; outline: none;
  padding: 0; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--secondary);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(255,102,0,0.32);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 2px 16px rgba(255,102,0,0.42);
  transform: scale(1.1);
}
.range-ticks {
  position: relative;
  height: 18px;
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--text-muted);
}
.range-ticks span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
/* Formula: left = (val/60) * (100% - 22px) + 11px
   0  → 11px
   15 → calc(25% - 5.5px + 11px)  = calc(25% + 5.5px)
   30 → calc(50% - 11px  + 11px)  = 50%
   45 → calc(75% - 16.5px + 11px) = calc(75% - 5.5px)
   60 → calc(100% - 22px  + 11px) = calc(100% - 11px)   */
.range-ticks span:nth-child(1) { left: 11px; }
.range-ticks span:nth-child(2) { left: calc(25% + 5.5px); }
.range-ticks span:nth-child(3) { left: 50%; }
.range-ticks span:nth-child(4) { left: calc(75% - 5.5px); }
.range-ticks span:nth-child(5) { left: calc(100% - 11px); }

.divider { height: 1px; background: var(--border-light); margin: 30px 0; }

/* ══ RESULTS PANEL ══ */
.results-panel {
  background: var(--primary);
  border-radius: 12px;
  padding: 26px 26px 22px;
}
.results-heading {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.results-heading::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.07);
}
.results-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 18px;
}
.result-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 17px 18px;
}
.result-card.accent {
  background: rgba(255,102,0,0.11);
  border-color: rgba(255,102,0,0.28);
}
.rc-label {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.rc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--secondary); flex-shrink: 0; }
.rc-value {
  font-family: 'Lora', serif;
  font-size: 24px; font-weight: 700;
  color: #fff; letter-spacing: -0.02em;
  transition: all 0.3s;
}
.rc-value.hi { color: var(--secondary); }
.rc-sub { font-size: 10.5px; color: #ffffff; margin-top: 4px; }

/* Quote */
.quote-row {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.quote-line { width: 2px; border-radius: 2px; background: var(--secondary); flex-shrink: 0; align-self: stretch; }
.quote-body {
  font-family: 'Lora', serif;
  font-size: 13px; font-style: italic;
  color: #ffffff; line-height: 1.65;
}

/* ══ CTA BUTTON ══ */
.cta-block {
  margin-top: 34px;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.cta-title {
  font-family: 'Lora', serif;
  font-size: 19px; font-weight: 600;
  color: var(--text-main); text-align: center;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--secondary); color: #fff;
  text-decoration: none;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px; font-weight: 500; letter-spacing: 0.03em;
  padding: 15px 36px; border-radius: 100px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.cta-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, transparent 55%);
}
.cta-btn:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,102,0,0.30);
}
.cta-btn svg { transition: transform 0.2s; }
.cta-btn:hover svg { transform: translateX(4px); }

/* ══ FOOTER ══ */
.footer {
  background: #0e0e0e;
  padding: 25px 0;
  color: #fff;
  margin-top: 0;
}
.footer p {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
}
.footer .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ══ ANIMATIONS ══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner   { animation: fadeUp 0.6s ease both; }
.calc-wrapper { animation: fadeUp 0.65s 0.1s ease both; }

/* ══ RESPONSIVE ══ */
@media (max-width: 600px) {
  .hero-section { padding: 52px 20px 68px; }
  .card { padding: 26px 18px 22px; }
  .fields-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .progress-strip { padding: 12px 18px; }
  .main-header .inner-header img { width: 180px; }
  .main-header .inner-header a { font-size: 16px; }
}
