/* ==========================================================================
   BB TRADER — B2B Growth & Digital Marketing
   Custom layer over the Tailwind CDN build. "Art Deco" system:
   cream ground, deep emerald + gold, symmetrical composition, thin gold
   hairlines, chamfered double-line frames, rising-sun fans, diamond motifs.
   Cinzel display, Jost body.
   ========================================================================== */

:root {
  --cream: #F5EFE1;
  --card: #FAF6EC;
  --emerald: #0E3B32;
  --emeraldDeep: #0A2A24;
  --gold: #C6A15B;
  --goldBright: #D8B876;
  --ink: #1B1712;
  --mute: #6E6A5E;
  --ease: cubic-bezier(0.4, 0, 0.1, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.22;
}

::selection { background: var(--gold); color: var(--emerald); }

/* Skip link ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--emerald);
  color: var(--gold);
  font-family: "Jost", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 11px 20px;
  border: 1px solid var(--gold);
}
.skip-link:focus { left: 16px; top: 16px; }

/* Kicker — letter-spaced caps with flanking rules --------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before,
.kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.kicker--start::after { display: none; }
.kicker--start { gap: 12px; }

/* Diamond marker ------------------------------------------------------- */
.dmd {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.dmd--hollow {
  background: transparent;
  border: 1px solid var(--gold);
}

/* Centered rule with a diamond --------------------------------------- */
.rule-diamond {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rule-diamond::before,
.rule-diamond::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}
.rule-diamond > i {
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

.rule-gold { height: 1px; background: var(--gold); }

/* Chamfered double-line frame (the deco card) ----------------------- */
.deco-card {
  position: relative;
  background: var(--card);
  clip-path: polygon(
    13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px),
    calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px
  );
  box-shadow: inset 0 0 0 2px var(--gold);
}
.deco-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  clip-path: polygon(
    9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px),
    calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px
  );
  box-shadow: inset 0 0 0 1px rgba(198, 161, 91, 0.4);
  pointer-events: none;
}
.deco-card--dark { background: rgba(198, 161, 91, 0.05); }

/* Fan (rising-sun) ornament — sized by width utility */
.fan { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Buttons — expanding inner hairline
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border: 1px solid var(--gold);
  color: var(--emerald);
  background: transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(198, 161, 91, 0.35);
  pointer-events: none;
  transition: inset 0.3s var(--ease);
}
.btn:hover::before { inset: 5px; }
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn:hover { background: var(--emerald); color: var(--gold); }
.btn--solid { background: var(--emerald); color: var(--gold); }
.btn--solid:hover { background: var(--emeraldDeep); }
.btn--gold { background: var(--gold); color: var(--emerald); }
.btn--gold:hover { background: var(--goldBright); }
.btn--on-dark { color: var(--gold); }
.btn--on-dark:hover { background: var(--gold); color: var(--emerald); }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marq { overflow: hidden; background: var(--emerald); }
.marq-track {
  display: flex;
  width: max-content;
  animation: marq 34s linear infinite;
}
.marq:hover .marq-track { animation-play-state: paused; }
@keyframes marq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-line {
  opacity: 0;
  transform: scaleX(0.25);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-line.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   FAQ accordion — rotating gold diamond
   ========================================================================== */

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease);
}
.faq-item[data-state="open"] .faq-body { max-height: 26rem; }

.faq-mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--gold);
  transition: background-color 0.3s var(--ease);
}
.faq-mark::before { width: 10px; height: 1px; transform: translate(-50%, -50%); }
.faq-mark::after { width: 1px; height: 10px; transform: translate(-50%, -50%); }
.faq-item[data-state="open"] .faq-mark {
  transform: rotate(135deg);
  background: var(--gold);
}
.faq-item[data-state="open"] .faq-mark::before,
.faq-item[data-state="open"] .faq-mark::after { background: var(--emerald); }
.faq-item[data-state="open"] .faq-q { color: var(--gold); }

/* ==========================================================================
   Forms (emerald contact band)
   ========================================================================== */

.field {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(198, 161, 91, 0.4);
  color: var(--cream);
  font-family: "Jost", sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field::placeholder { color: rgba(245, 239, 225, 0.4); }
.field:focus {
  border-color: var(--gold);
  background: rgba(198, 161, 91, 0.06);
}
.field option { color: var(--ink); }
select.field { appearance: none; }
.field-wrap { position: relative; }
.field-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--emerald);
  color: var(--cream);
  border: 1px solid var(--gold);
  font-family: "Jost", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 15px 20px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.toast.is-shown { transform: none; opacity: 1; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-line { opacity: 1; transform: none; transition: none; }
  .marq-track { animation: none; }
  .btn, .btn__arrow, .btn::before, .faq-mark { transition: none; }
}
