/* ============================================================
   Cavendish Trade Group — custom design system
   Palette: petrol ink + burnished brass on warm surfaces
   ============================================================ */

:root {
  --ink:        #0E2A33;
  --ink-deep:   #081C23;
  --ink-mid:    #143845;
  --brass:      #C28E3C;
  --brass-soft: #D9B36A;
  --paper:      #F7F5F0;
  --sand:       #EFEAE0;
  --line:       #DDD6C8;
  --body:       #3A4B52;
  --white:      #ffffff;
  --radius:     3px;
  --shadow:     0 14px 34px rgba(8, 28, 35, .14);
  --ease-out:   cubic-bezier(.22, .8, .3, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.15;
  margin-top: 0;
}
p { margin: 0 0 1.1em; }
a { color: var(--ink-mid); }
a:hover, a:focus { color: var(--brass); text-decoration: none; }
img, video { max-width: 100%; }

/* ---------- shared section chrome ---------- */
.section { padding: 96px 0; position: relative; }
.band-ink   { background: var(--ink); color: #C9D6DA; }
.band-ink h1, .band-ink h2, .band-ink h3, .band-ink h4 { color: var(--white); }
.band-deep  { background: var(--ink-deep); color: #B9C9CE; }
.band-deep h1, .band-deep h2, .band-deep h3 { color: var(--white); }
.band-sand  { background: var(--sand); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: 12px;
}
.section-title { font-size: 40px; margin-bottom: 18px; }
.section-lead  { font-size: 19px; max-width: 640px; }
.band-ink .section-lead, .band-deep .section-lead { color: #AFC2C8; }

/* clipped divider between bands */
.clip-top::before, .clip-bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 56px;
  background: inherit;
  z-index: 2;
  pointer-events: none;
}
.clip-top::before    { top: -1px; clip-path: polygon(0 0, 100% 0, 100% 22%, 0 100%); }
.clip-bottom::after  { bottom: -1px; clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%); }

/* ---------- buttons ---------- */
.btn-cvt {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all .28s var(--ease-out);
}
.btn-brass { background: var(--brass); color: var(--ink-deep); }
.btn-brass:hover, .btn-brass:focus {
  background: var(--brass-soft); color: var(--ink-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(194, 142, 60, .35);
}
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn-ghost-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-ink:hover { background: var(--ink); color: var(--white); }

/* ---------- navbar ---------- */
.navbar-cvt {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  padding: 18px 0;
  background: transparent;
  border: 0;
  margin: 0;
  transition: background .35s var(--ease-out), padding .35s var(--ease-out), box-shadow .35s;
}
.navbar-cvt .navbar-brand {
  padding: 4px 15px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-cvt .brand-name {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}
.navbar-cvt .brand-name small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .34em;
  color: var(--brass-soft);
}
.navbar-cvt .brand-logo { height: 46px; width: auto; }
.navbar-cvt .nav > li > a {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 13px;
  background: transparent !important;
  transition: color .25s;
}
.navbar-cvt .nav > li > a:hover, .navbar-cvt .nav > li.active > a { color: var(--brass-soft); }
.navbar-cvt .nav-cta {
  margin: 5px 0 0 12px;
  padding: 9px 20px !important;
  border: 1.5px solid var(--brass);
  color: var(--brass-soft) !important;
  border-radius: var(--radius);
  transition: all .25s;
}
.navbar-cvt .nav-cta:hover { background: var(--brass) !important; color: var(--ink-deep) !important; }
.navbar-cvt.scrolled {
  background: rgba(8, 28, 35, .96);
  padding: 10px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.navbar-cvt .navbar-toggle { border-color: rgba(255,255,255,.4); margin-top: 8px; }
.navbar-cvt .navbar-toggle .icon-bar { background: var(--white); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink-deep);
  overflow: hidden;
  color: var(--white);
}
.hero-media, .hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,28,35,.72) 0%, rgba(8,28,35,.52) 45%, rgba(8,28,35,.92) 100%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 3; padding-top: 140px; padding-bottom: 120px; }
.hero h1 {
  color: var(--white);
  font-size: 58px;
  max-width: 15ch;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--brass-soft); }
.hero-sub {
  font-size: 20px;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-bottom: 38px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(8,28,35,.55);
  backdrop-filter: blur(6px);
}
.hero-stats .stat { padding: 22px 10px; text-align: center; }
.hero-stats .stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.hero-stats .num {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--brass-soft);
}
.hero-stats .lbl {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}
.scroll-hint {
  position: absolute;
  right: 34px; bottom: 96px;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px; height: 44px;
  background: var(--brass);
  margin: 12px auto 0;
  animation: drip 2.2s var(--ease-out) infinite;
}
@keyframes drip {
  0%   { transform: scaleY(0); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: top; }
  56%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- about ---------- */
.about-media { position: relative; }
.about-media img, .about-media video { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media::before {
  content: "";
  position: absolute;
  top: -18px; left: -18px;
  width: 100%; height: 100%;
  border: 2px solid var(--brass);
  border-radius: var(--radius);
  z-index: -1;
}
.about-facts { list-style: none; padding: 0; margin: 26px 0 0; }
.about-facts li {
  padding: 12px 0 12px 34px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}
.about-facts li::before {
  content: "\52";
  font-family: 'ElegantIcons';
  position: absolute; left: 0; top: 12px;
  color: var(--brass);
  font-size: 18px;
}

/* ---------- capability cards ---------- */
.cap-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 34px 28px;
  height: 100%;
  transition: transform .3s var(--ease-out), background .3s, border-color .3s;
}
.cap-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.cap-card .cap-icon {
  font-size: 34px;
  color: var(--brass-soft);
  margin-bottom: 18px;
  display: block;
}
.cap-card h3 { font-size: 19px; margin-bottom: 12px; color: var(--white); }
.cap-card p { font-size: 15px; color: #AFC2C8; margin: 0; }

/* ---------- commodities tabs ---------- */
.comm-tabs { list-style: none; padding: 0; margin: 0; }
.comm-tabs li { border-bottom: 1px solid var(--line); }
.comm-tabs a {
  display: block;
  padding: 22px 18px 22px 26px;
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
  position: relative;
  transition: all .25s var(--ease-out);
}
.comm-tabs a small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8A9AA0;
  margin-top: 4px;
}
.comm-tabs a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--brass);
  transform: scaleY(0);
  transition: transform .3s var(--ease-out);
}
.comm-tabs li.active a { padding-left: 40px; color: var(--brass); }
.comm-tabs li.active a::before { transform: scaleY(1); }
.comm-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}
.comm-panel img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.comm-panel .comm-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px;
  background: linear-gradient(180deg, transparent, rgba(8,28,35,.92));
  color: var(--white);
}
.comm-overlay h4 { color: var(--white); font-size: 22px; margin-bottom: 6px; }
.comm-overlay p { color: #C9D6DA; font-size: 14.5px; margin: 0; }
.comm-tags { margin-top: 12px; }
.comm-tags span {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 20px;
  padding: 5px 13px;
  margin: 0 6px 6px 0;
  color: var(--brass-soft);
}
.comm-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility .45s;
}
.comm-pane.active { opacity: 1; visibility: visible; }

/* ---------- process timeline ---------- */
.timeline { position: relative; margin-top: 70px; }
.timeline::before {
  content: "";
  position: absolute;
  top: 27px; left: 4%; right: 4%;
  height: 2px;
  background: rgba(255,255,255,.14);
}
.timeline .tl-fill {
  position: absolute;
  top: 27px; left: 4%;
  height: 2px;
  width: 0;
  background: var(--brass);
  transition: width 1.6s var(--ease-out);
}
.timeline.in-view .tl-fill { width: 92%; }
.tl-step { text-align: center; padding: 0 10px; }
.tl-dot {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  background: var(--ink-deep);
  color: var(--brass-soft);
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  transition: background .4s, color .4s, transform .4s var(--ease-out);
}
.timeline.in-view .tl-dot { background: var(--brass); color: var(--ink-deep); }
.tl-step:hover .tl-dot { transform: scale(1.12); }
.tl-step h4 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.tl-step p { font-size: 13.5px; color: #9FB4BA; margin: 0; }

/* ---------- suppliers ---------- */
.supplier-check { list-style: none; padding: 0; margin: 24px 0 34px; }
.supplier-check li {
  padding: 14px 0 14px 40px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  font-size: 16px;
}
.supplier-check li::before {
  content: "\4e";
  font-family: 'ElegantIcons';
  position: absolute;
  left: 4px; top: 13px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ink-deep);
  font-size: 13px;
  line-height: 24px;
  text-align: center;
}
.supplier-media { position: relative; }
.supplier-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 6px;
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
  transition: color .25s;
}
.faq-q:hover { color: var(--brass); }
.faq-q .faq-icon {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  position: relative;
  transition: transform .35s var(--ease-out), background .35s;
}
.faq-q .faq-icon::before, .faq-q .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--brass);
  top: 50%; left: 50%;
  transition: background .3s;
}
.faq-q .faq-icon::before { width: 12px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-q .faq-icon::after  { width: 1.5px; height: 12px; transform: translate(-50%,-50%); }
.faq-item.open .faq-icon { transform: rotate(135deg); background: var(--brass); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: var(--ink-deep); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease-out);
}
.faq-a p { padding: 0 44px 26px 6px; margin: 0; }

/* ---------- contact ---------- */
.contact-block { padding-right: 40px; }
.contact-direct { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-direct li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-direct .cd-label {
  display: block;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 4px;
}
.contact-direct a, .contact-direct span.val { color: var(--white); font-size: 18px; font-weight: 700; }
.contact-form-wrap {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 40px;
}
.form-control {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  color: var(--white);
  height: auto;
  padding: 13px 16px;
  font-size: 15px;
  box-shadow: none;
}
.form-control:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(194,142,60,.18);
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.form-control::placeholder { color: rgba(255,255,255,.42); }
select.form-control option { color: var(--ink); }
label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-soft); font-weight: 700; }
.form-group { margin-bottom: 20px; }
label.error { color: #E8A598; text-transform: none; letter-spacing: 0; font-size: 12.5px; margin-top: 6px; }
.form-control.error { border-color: #C96B57; }
.form-more-toggle {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass-soft);
  border-bottom: 1px dashed var(--brass-soft);
  cursor: pointer;
  margin-bottom: 18px;
}
.form-more { display: none; }
.form-more.open { display: block; }
.form-status { margin-top: 16px; font-weight: 700; }
.form-status.ok  { color: #9CCB9C; }
.form-status.err { color: #E8A598; }

/* ---------- closing banner ---------- */
.closing { background: var(--brass); color: var(--ink-deep); text-align: center; }
.closing h2 { color: var(--ink-deep); font-size: 40px; max-width: 22ch; margin: 0 auto; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink-deep);
  color: #8FA6AD;
  padding: 70px 0 30px;
  font-size: 14.5px;
}
.footer h4 { color: var(--white); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 20px; }
.footer a { color: #8FA6AD; }
.footer a:hover { color: var(--brass-soft); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 5px 0; }
.footer .foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer .foot-brand img { height: 90px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 50px;
  padding-top: 24px;
  font-size: 12.5px;
  color: #628089;
}
.footer-legal a { color: #628089; margin: 0 10px; }
.footer-legal a:hover { color: var(--brass-soft); }
.back-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ink-deep);
  text-align: center;
  line-height: 46px;
  font-size: 20px;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all .35s var(--ease-out);
  box-shadow: var(--shadow);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-4px); color: var(--ink-deep); }

/* ---------- sticky mobile CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1050;
  background: var(--ink-deep);
  border-top: 1px solid rgba(255,255,255,.14);
}
.mobile-cta a {
  display: block;
  text-align: center;
  padding: 15px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
}
.mobile-cta a i { display: block; font-size: 17px; margin-bottom: 3px; color: var(--brass-soft); }
.mobile-cta a.primary { background: var(--brass); color: var(--ink-deep); }
.mobile-cta a.primary i { color: var(--ink-deep); }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-left.in-view, .reveal-right.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-hint::after { animation: none; }
  .timeline.in-view .tl-fill { transition: none; width: 92%; }
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .section { padding: 70px 0; }
  .hero h1 { font-size: 42px; }
  .section-title { font-size: 32px; }
  .scroll-hint { display: none; }
  .navbar-cvt .navbar-collapse {
    background: var(--ink-deep);
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 12px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .timeline::before, .timeline .tl-fill { display: none; }
  .tl-step { text-align: left; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 30px; }
  .tl-dot { margin: 0; flex: 0 0 auto; width: 46px; height: 46px; }
  .contact-block { padding-right: 0; margin-bottom: 40px; }
  .comm-panel { min-height: 340px; margin-top: 30px; }
  .mobile-cta { display: block; }
  body { padding-bottom: 62px; }
  .footer { padding-bottom: 90px; }
  .closing h2 { font-size: 28px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .contact-form-wrap { padding: 26px 20px; }
}
