/* ============================================================
   Everseer Sourcing — Global styles
   Brand palette (from logo):
     --sky        #29ABE2   primary brand blue (mark color)
     --sky-dark   #1288BC   hover / deeper
     --sky-soft   #E7F6FD   tints
     --navy       #0B1A2B   deep navy for text + headers
     --ink        #101828   body text
     --muted      #5A6B82
     --cream      #FAF7F1   warm off-white page surface
     --paper      #FFFFFF
     --line       rgba(11, 26, 43, 0.10)
     --amber      #E8833A   secondary accent (from hero containers)
============================================================ */

:root {
  --sky: #29ABE2;
  --sky-dark: #1288BC;
  --sky-darker: #0B6E9C;
  --sky-soft: #E7F6FD;
  --navy: #0B1A2B;
  --navy-2: #1B2F4A;
  --ink: #101828;
  --ink-2: #334055;
  --muted: #5A6B82;
  --cream: #FAF7F1;
  --paper: #FFFFFF;
  --line: rgba(11, 26, 43, 0.10);
  --line-strong: rgba(11, 26, 43, 0.20);
  --amber: #E8833A;
  --shadow-sm: 0 1px 2px rgba(11, 26, 43, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 26, 43, 0.08);
  --shadow-lg: 0 24px 70px rgba(11, 26, 43, 0.14);
  --radius: 10px;
  --radius-lg: 18px;
  --container: 1200px;
  --ff-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--sky-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Headings — Fraunces for personality, italics echo the logo */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-2); line-height: 1.55; }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky-dark);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  line-height: 1;
  font-family: var(--ff-body);
}
.btn-primary { background: var(--sky); color: var(--paper); border-color: var(--sky); }
.btn-primary:hover { background: var(--sky-dark); border-color: var(--sky-dark); color: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.btn-navy:hover { background: #071223; color: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-outline-white { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.35); }
.btn-outline-white:hover { background: rgba(255,255,255,0.08); color: var(--paper); border-color: var(--paper); }

/* ===== NAVBAR ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(250, 247, 241, 0.86);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 64px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--sky-dark); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 880px) {
  .nav-inner { padding: 10px 20px; gap: 12px; }
  .nav-logo img { height: 50px; }
  .nav-links { display: none; }
  .nav-cta .btn:not(.nav-cta-primary) { display: none; }
  .nav-cta { gap: 8px; }
  .nav-cta-primary {
    padding: 9px 14px;
    font-size: 13.5px;
    white-space: nowrap;
    line-height: 1;
  }
  /* Hide the arrow on mobile to keep button compact */
  .nav-cta-arrow { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
  }
  .nav-toggle:hover { background: rgba(11,26,43,0.04); }
  body.nav-open .nav-toggle { background: var(--navy); color: var(--paper); border-color: var(--navy); }
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 18px 24px 22px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
    align-items: stretch;
    z-index: 50;
    box-shadow: 0 12px 28px -16px rgba(11,26,43,0.18);
  }
  body.nav-open .nav-links a {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(11,26,43,0.06);
  }
  body.nav-open .nav-links li:last-child a { border-bottom: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 58%;
  opacity: 0.42;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 26, 43, 0.65) 0%, rgba(11, 26, 43, 0.78) 50%, rgba(11, 26, 43, 0.92) 100%),
    radial-gradient(1100px 420px at 85% 10%, rgba(41, 171, 226, 0.35), transparent 65%);
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(88px, 14vw, 170px) 24px clamp(80px, 12vw, 120px);
}
.hero h1 {
  color: var(--paper);
  max-width: 17ch;
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--sky);
}
.hero .sub {
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  margin-bottom: 36px;
  line-height: 1.5;
  font-style: normal;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-flags {
  display: flex; gap: 22px; flex-wrap: wrap;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  letter-spacing: 0.03em;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.14);
  max-width: 640px;
}
.hero-flags span { display: inline-flex; align-items: center; gap: 7px; }
.hero-quote {
  margin-top: 14px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
}

/* ===== SECTIONS ===== */
section { padding: clamp(64px, 10vw, 112px) 0; }
section.tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* Process (3-step) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.step-num {
  font-family: var(--ff-display);
  font-size: 54px;
  font-weight: 400;
  font-style: italic;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 10px; color: var(--navy); }
.step-card p { color: var(--ink-2); margin: 0; font-size: 15.5px; }

@media (max-width: 780px) { .process-grid { grid-template-columns: 1fr; } }

/* Markets (4-country) */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.market-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.market-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.market-flag { font-size: 40px; line-height: 1; margin-bottom: 14px; }
.market-card h3 { margin-bottom: 6px; }
.market-tags {
  font-family: var(--ff-body);
  color: var(--sky-darker);
  font-size: 13px;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  font-weight: 500;
}
.market-card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
@media (max-width: 720px) { .markets-grid { grid-template-columns: 1fr; } }

/* Why-choose-us — dark section */
.why { background: var(--navy); color: var(--paper); position: relative; overflow: hidden; }
.why::before {
  content: '';
  position: absolute; top: -200px; right: -120px;
  width: 540px; height: 540px;
  background: radial-gradient(closest-side, rgba(41, 171, 226, 0.25), transparent 70%);
}
.why h2 { color: var(--paper); }
.why .eyebrow { color: var(--sky); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 56px;
  position: relative;
}
.why-item h4 { color: var(--paper); font-family: var(--ff-body); font-size: 17px; margin-bottom: 6px; }
.why-item p { color: rgba(255,255,255,0.72); margin: 0; font-size: 15.5px; }
.why-item .i {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(41, 171, 226, 0.16);
  color: var(--sky);
  margin-bottom: 14px;
}
.why-item .i svg { width: 22px; height: 22px; }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Pricing highlight on landing */
.pricing-cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.pricing-cta .big {
  font-family: var(--ff-display);
  font-size: clamp(3.2rem, 7.5vw, 5.4rem);
  color: var(--navy);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.pricing-cta .big .pct { color: var(--sky); font-style: italic; }
.pricing-cta .label { color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; font-size: 12px; margin-bottom: 8px; font-weight: 600; }
@media (max-width: 720px) { .pricing-cta { grid-template-columns: 1fr; } }

/* Final CTA block */
.final-cta {
  background: linear-gradient(120deg, var(--sky) 0%, #1e8ebf 100%);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before, .final-cta::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.09);
}
.final-cta::before { width: 360px; height: 360px; top: -130px; left: -90px; }
.final-cta::after { width: 280px; height: 280px; bottom: -110px; right: -90px; }
.final-cta h2 { color: var(--paper); margin-bottom: 14px; font-style: italic; position: relative; }
.final-cta p { color: rgba(255,255,255,0.92); max-width: 56ch; margin: 0 auto 28px; position: relative; }
.final-cta .btn { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.final-cta .btn:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.final-cta small { color: rgba(255,255,255,0.85); display: block; margin-top: 14px; position: relative; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo img { height: 40px; width: auto; margin-bottom: 10px; }
.footer-tag {
  color: rgba(255,255,255,0.68);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 16px;
}
.footer-grid h5 {
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 600;
  font-family: var(--ff-body);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.75); font-size: 15px; }
.footer-grid a:hover { color: var(--sky); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ===== PRICING page ===== */
.price-table {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.price-table th, .price-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.price-table th {
  background: var(--cream);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { text-align: right; font-weight: 500; color: var(--navy); }

.example-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  font-family: var(--ff-body);
}
.example-box .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15.5px; }
.example-box .total {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-weight: 700; color: var(--navy); font-size: 17px;
}
.terms-list { list-style: none; padding: 0; margin: 24px 0; }
.terms-list li {
  padding: 14px 0 14px 32px;
  border-bottom: 1px dashed var(--line);
  position: relative;
  color: var(--ink-2);
  font-size: 15.5px;
}
.terms-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 14px;
  color: var(--sky); font-weight: 700;
}

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 500;
  padding: 4px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--sky);
  font-family: var(--ff-body);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .a {
  padding: 12px 0 4px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 72ch;
}

/* ===== HOW IT WORKS (detailed) ===== */
.step-detail {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.step-detail:first-of-type { border-top: none; }
.step-detail .n {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 84px;
  color: var(--sky);
  line-height: 1;
  font-weight: 400;
}
.step-detail h3 { margin-bottom: 10px; }
.step-detail p { color: var(--ink-2); margin-bottom: 8px; }
.step-detail .meta {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  margin-top: 12px;
}
@media (max-width: 720px) {
  .step-detail { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .step-detail .n { font-size: 56px; }
}

/* ===== RFQ MULTI-STEP FORM ===== */
.rfq-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md);
  margin: 32px 0 48px;
}
.rfq-progress { display: flex; gap: 8px; margin-bottom: 32px; }
.rfq-progress .dot {
  flex: 1; height: 4px; border-radius: 999px;
  background: var(--line); transition: background 0.3s ease;
}
.rfq-progress .dot.done { background: var(--navy); }
.rfq-progress .dot.active { background: var(--sky); }

.rfq-step { display: none; animation: fadeStep 0.25s ease; }
.rfq-step.active { display: block; }
@keyframes fadeStep {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.rfq-step-head { margin-bottom: 28px; }
.rfq-step-head .n {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.rfq-step-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.15;
}
.rfq-step-head p { color: var(--muted); margin: 0; font-size: 15.5px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.field .hint { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 400; }
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=number],
.field input[type=url],
.field input[type=tel],
.field input[type=search],
.field input[type=date],
.field input:not([type]),
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.16);
}
.field textarea { min-height: 110px; resize: vertical; }
.field.err input, .field.err select, .field.err textarea { border-color: #D84545; }
.field .err-msg { display: none; color: #B92222; font-size: 13px; margin-top: 6px; }
.field.err .err-msg { display: block; }

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.tile { display: block; cursor: pointer; position: relative; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile span {
  display: block;
  padding: 16px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  text-align: left;
  font-weight: 500;
  color: var(--navy);
  background: var(--paper);
  transition: all 0.15s ease;
}
.tile span small {
  display: block; color: var(--muted);
  font-size: 13px; font-weight: 400; margin-top: 4px;
}
.tile input:checked + span {
  border-color: var(--sky);
  background: var(--sky-soft);
  box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.15);
}
.tile:hover span { border-color: var(--navy); }
.tile .flag { font-size: 28px; display: block; margin-bottom: 4px; line-height: 1; }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

.rfq-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.rfq-nav .btn-back { visibility: hidden; }
.rfq-nav.has-back .btn-back { visibility: visible; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 520px) { .two-col { grid-template-columns: 1fr; } }

.review-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 22px;
}
.review-card h4 {
  font-family: var(--ff-body);
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.review-card dl { margin: 0; display: grid; grid-template-columns: 35% 65%; gap: 10px 16px; }
.review-card dt { color: var(--muted); font-size: 14px; font-weight: 500; }
.review-card dd { margin: 0; color: var(--ink); font-size: 15px; }

/* Thanks page */
.thanks-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.thanks-card .check {
  width: 80px; height: 80px; margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--sky-soft);
  color: var(--sky);
  display: flex; align-items: center; justify-content: center;
}
.thanks-card .check svg { width: 44px; height: 44px; }
.thanks-card .ref {
  font-family: var(--ff-mono);
  font-size: 15px;
  color: var(--navy);
  background: var(--cream);
  padding: 10px 18px;
  border-radius: 8px;
  display: inline-block;
  margin: 20px 0;
  letter-spacing: 0.04em;
}

/* ===== ADMIN ===== */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--cream);
}
.admin-side {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-side .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; padding: 4px 0; }
.admin-side .brand img { height: 52px; width: auto; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.72);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: background 0.12s ease, color 0.12s ease;
}
.admin-side nav a:hover { background: rgba(255,255,255,0.06); color: var(--paper); }
.admin-side nav a.active {
  background: rgba(41, 171, 226, 0.18);
  color: var(--paper);
  border-left-color: var(--sky);
}
.admin-side nav .count {
  margin-left: auto;
  background: rgba(41, 171, 226, 0.22);
  color: #d6f1ff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}
.admin-side nav a.active .count { background: rgba(41, 171, 226, 0.35); color: #fff; }
.admin-side .logout {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.admin-side .logout button {
  width: 100%;
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-family: var(--ff-body);
  font-size: 14px;
}
.admin-side .logout button:hover { background: rgba(255,255,255,0.08); color: var(--paper); }
.admin-main { padding: 32px 40px; min-width: 0; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.admin-header h1 {
  font-family: var(--ff-display);
  color: var(--navy);
  font-size: 1.8rem;
  margin: 0;
}
.admin-search input {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 14px;
  width: 260px;
  font-family: var(--ff-body);
  background: var(--paper);
}

.rfq-table {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.rfq-table th, .rfq-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  vertical-align: middle;
}
.rfq-table th {
  background: #f4f1eb;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rfq-table tbody tr { transition: background 0.1s ease; }
.rfq-table tbody tr:hover { background: #f8f5ee; cursor: pointer; }
.rfq-table tr:last-child td { border-bottom: none; }
.rfq-table .ref { font-family: var(--ff-mono); color: var(--navy); font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; }
.rfq-table .when { color: var(--muted); font-size: 13px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.status-new { background: rgba(41, 171, 226, 0.16); color: #0d6a94; }
.status-quoted { background: rgba(232, 131, 58, 0.16); color: #9a4e12; }
.status-approved { background: rgba(40, 167, 69, 0.15); color: #236b2f; }
.status-sourcing { background: rgba(156, 98, 219, 0.15); color: #5a3992; }
.status-shipped { background: rgba(255, 170, 0, 0.2); color: #7a5000; }
.status-delivered { background: rgba(40, 167, 69, 0.22); color: #1a5a25; }
.status-closed { background: rgba(11, 26, 43, 0.1); color: var(--navy); }
.status-cancelled { background: rgba(176, 0, 32, 0.1); color: #8b0020; }

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
}

.rfq-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.panel h3 {
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.panel dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 12px 18px; }
.panel dt { color: var(--muted); font-size: 13px; font-weight: 500; }
.panel dd { margin: 0; color: var(--ink); font-size: 14.5px; word-break: break-word; }
.panel dd a { color: var(--sky-dark); text-decoration: underline; }
.status-form select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong);
  border-radius: 8px; font-family: var(--ff-body); font-size: 14px;
  background: var(--paper);
}
.note {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.note .when { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.note .body { color: var(--ink); font-size: 14.5px; white-space: pre-wrap; line-height: 1.55; }
textarea.note-input {
  width: 100%; padding: 12px; border: 1px solid var(--line-strong);
  border-radius: 8px; font-family: var(--ff-body); font-size: 14.5px; resize: vertical;
  min-height: 80px;
}
@media (max-width: 960px) { .rfq-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 780px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-main { padding: 20px; }
}

/* Login */
.login-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  padding: 24px;
}
.login-card {
  background: var(--paper);
  width: 100%; max-width: 420px;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.login-card .brand { display: flex; justify-content: center; margin-bottom: 28px; }
.login-card .brand img { height: 56px; width: auto; }
.login-card h1 { font-size: 1.4rem; margin-bottom: 8px; color: var(--navy); text-align: center; }
.login-card p { color: var(--muted); margin-bottom: 28px; font-size: 15px; text-align: center; }
.login-card .err {
  background: #fff2f2; color: #a62020; padding: 10px 14px; border-radius: 8px;
  font-size: 14px; margin-bottom: 16px; border: 1px solid #f6d7d7;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--sky-dark); font-size: 14px; font-weight: 500;
  margin-bottom: 16px;
}

/* ===== ADMIN: SIDEBAR EXTENSIONS ===== */
.admin-side nav .nav-section-label {
  margin: 18px 12px 6px;
  color: rgba(255,255,255,0.4);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ===== ADMIN: DASHBOARD ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.kpi-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.kpi-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.kpi-value {
  font-family: var(--ff-display);
  font-size: 36px;
  line-height: 1;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.kpi-sub {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-value { font-size: 28px; }
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }

.rfq-chart {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  height: 180px;
  padding: 0 4px;
}
.rfq-chart-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}
.rfq-chart-bar-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 0 2px;
}
.rfq-chart-bar {
  width: 100%;
  min-height: 2px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-dark) 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: opacity 0.15s ease;
}
.rfq-chart-bar:hover { opacity: 0.85; }
.rfq-chart-num {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.rfq-chart-label {
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Activity feed */
.activity-feed,
.event-log {
  list-style: none;
  margin: 0;
  padding: 0;
}
.activity-feed li,
.event-log li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.activity-feed li:last-child,
.event-log li:last-child { border-bottom: none; }
.activity-feed .dot,
.event-log .dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--sky);
  flex-shrink: 0;
}
.activity-feed .dot.kind-quote_sent,
.event-log .dot.kind-quote_sent { background: #E8833A; }
.activity-feed .dot.kind-quote_decision,
.event-log .dot.kind-quote_decision { background: #28a745; }
.activity-feed .dot.kind-quote_drafted,
.event-log .dot.kind-quote_drafted { background: var(--muted); }
.activity-feed .dot.kind-status_change,
.event-log .dot.kind-status_change { background: var(--sky); }
.activity-feed .dot.kind-tracking,
.event-log .dot.kind-tracking { background: #ffaa00; }
.activity-feed .dot.kind-message,
.event-log .dot.kind-message { background: #9c62db; }
.activity-feed .body,
.event-log .body { flex: 1; min-width: 0; }
.activity-feed .title,
.event-log .title {
  color: var(--navy);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.activity-feed .ref-link {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--sky-dark);
  text-decoration: none;
  background: var(--cream);
  padding: 2px 8px;
  border-radius: 999px;
}
.activity-feed .ref-link:hover { background: #ece5d6; }
.activity-feed .detail,
.event-log .detail {
  color: var(--ink-2);
  font-size: 13px;
  margin-top: 3px;
}
.activity-feed .meta,
.event-log .meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.event-log .internal-badge {
  background: var(--cream);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

/* Recent list (right rail of dashboard) */
.recent-list,
.linked-suppliers {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-list li {
  border-bottom: 1px solid var(--line);
}
.recent-list li:last-child { border-bottom: none; }
.recent-list a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
}
.recent-list a:hover { background: rgba(11,26,43,0.02); }
.recent-list .row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.recent-list .row1 .ref {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--sky-dark);
}
.recent-list .row2 {
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 500;
}
.recent-list .row3 {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
}
.status-breakdown li { border-bottom: 1px solid var(--line); }
.status-breakdown li:last-child { border-bottom: none; }
.status-breakdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
}
.status-breakdown a:hover { background: rgba(11,26,43,0.02); }
.status-breakdown .n {
  color: var(--navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Linked suppliers list */
.linked-suppliers li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.linked-suppliers li:last-child { border-bottom: none; }
.linked-suppliers a {
  color: var(--navy);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}
.linked-suppliers a:hover { color: var(--sky-dark); text-decoration: underline; }
.unlink-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.unlink-btn:hover { color: #a62020; border-color: #f6d7d7; background: #fff5f5; }

/* Form grids (used in quote builder, supplier form, event form) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-grid label.full { grid-column: 1 / -1; }
.form-grid label > span:first-child {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="number"],
.form-grid input[type="date"],
.form-grid select,
.form-grid textarea {
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.form-grid textarea { resize: vertical; min-height: 60px; }
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.15);
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Quote totals preview */
.quote-totals {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.quote-totals .row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-2);
  padding: 4px 0;
}
.quote-totals .row.total {
  border-top: 1px solid var(--line-strong);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
}

/* Callouts (info / success / warn) */
.callout {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  border-left: 3px solid;
}
.callout-info { background: #EAF6FB; border-color: var(--sky); color: #0a3a4d; }
.callout-success { background: #ECF7EE; border-color: #28a745; color: #155724; }
.callout-warn { background: #FFF6E6; border-color: #E8833A; color: #7c4a14; }

/* ===== CUSTOMER TRACKING PAGE ===== */
.track-body {
  background: var(--cream);
  margin: 0;
  min-height: 100vh;
}
.track-header {
  background: var(--navy);
  color: var(--paper);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.track-header .brand img { height: 36px; width: auto; }
.track-header .contact {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-decoration: none;
}
.track-header .contact:hover { color: var(--paper); }
.track-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.track-card {
  background: var(--paper);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(11,26,43,0.04), 0 8px 24px rgba(11,26,43,0.05);
  border: 1px solid var(--line);
}
.track-card h1 {
  font-family: var(--ff-display);
  font-size: 28px;
  margin: 4px 0 6px;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.track-card h2 {
  font-family: var(--ff-display);
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--navy);
  font-weight: 600;
}
.track-card .subtitle {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}
.track-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.track-top .reference {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--sky-dark);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.track-top .status-block { text-align: right; }
.track-top .updated {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

/* Milestones bar */
.milestones {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  position: relative;
}
.milestones li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 12px;
}
.milestones li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  left: 60%;
  right: -40%;
  height: 2px;
  background: var(--line-strong);
  z-index: 0;
}
.milestones li.done:not(:last-child)::after { background: var(--sky); }
.milestones .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  z-index: 1;
  position: relative;
}
.milestones li.done .dot {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--paper);
}
.milestones .lbl {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
  max-width: 80px;
}
.milestones li.done .lbl { color: var(--navy); font-weight: 600; }
@media (max-width: 600px) {
  .milestones { grid-template-columns: 1fr; gap: 0; }
  .milestones li { flex-direction: row; gap: 12px; padding: 10px 0; align-items: center; text-align: left; }
  .milestones li:not(:last-child)::after { display: none; }
  .milestones .lbl { margin-top: 0; max-width: none; font-size: 14px; }
}

/* Quote table on tracking page */
.quote-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.quote-table td {
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.quote-table td:last-child { text-align: right; }
.quote-table tfoot td {
  border-bottom: none;
  border-top: 2px solid var(--line-strong);
  font-weight: 700;
  color: var(--navy);
  font-size: 17px;
  padding-top: 14px;
}
.tracking-dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 18px;
  margin: 0;
}
.tracking-dl dt { color: var(--muted); font-size: 13px; font-weight: 500; }
.tracking-dl dd { margin: 0; color: var(--ink); font-size: 14.5px; }

.decision-buttons {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.decision-buttons form { flex: 1; min-width: 140px; margin: 0; }
.decision-buttons button { width: 100%; }
@media (max-width: 480px) { .decision-buttons form { flex: 1 1 100%; } }

.track-footer {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin: 8px 0 0;
}
.track-footer a { color: var(--sky-dark); }
