/* ==========================================================================
   BAGRI TRADERS — Strategic Digital Marketing
   Custom layer over the Tailwind CDN build. Modern Indian trade-house system:
   warm cream, deep navy, antique gold, Zilla Slab display, ledger structure.
   ========================================================================== */

:root {
  --ease: cubic-bezier(0.22, 1, 0.3, 1);
  --gold: #C0871F;
}

* { border-color: #D8D0BD; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.08;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: #1E2A5E; color: #F7F4EC; }

/* Skip link ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #1E2A5E;
  color: #F7F4EC;
  font-size: 13px;
  padding: 10px 18px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Eyebrow -------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Figtree", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
}
.eyebrow--cream { color: #E0AE4B; }
.eyebrow--cream::before { background: #E0AE4B; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn__arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--navy { background: #1E2A5E; color: #F7F4EC; border-color: #1E2A5E; }
.btn--navy:hover { background: #161F49; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(30, 42, 94, 0.22); }

.btn--gold { background: var(--gold); color: #1B1A20; border-color: var(--gold); }
.btn--gold:hover { background: #a9741a; transform: translateY(-1px); }

.btn--line { background: transparent; color: #1E2A5E; border-color: #C4B896; }
.btn--line:hover { border-color: #1E2A5E; background: #1E2A5E; color: #F7F4EC; }

.btn--cream { background: #F7F4EC; color: #1E2A5E; border-color: #F7F4EC; }
.btn--cream:hover { background: #fff; transform: translateY(-1px); }

/* ==========================================================================
   Ledger
   ========================================================================== */

.rule-gold { height: 2px; background: var(--gold); }

.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
}
.ledger-row + .ledger-row { border-top: 1px solid rgba(224, 174, 75, 0.3); }
.ledger-lead {
  flex: 1;
  border-bottom: 1px dotted rgba(224, 174, 75, 0.4);
  transform: translateY(-4px);
}

/* Boxed service cells */
.ledgerbox {
  border: 1px solid #D8D0BD;
  background: #FCFAF3;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.ledgerbox:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(27, 26, 32, 0.07);
  transform: translateY(-2px);
}

/* Certificate-style corner brackets */
.seal-card { position: relative; }
.seal-card::before,
.seal-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--gold);
}
.seal-card::before { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.seal-card::after { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Heading underline that draws in */
.draw {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.draw::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: #D69A2E;
  transition: width 0.7s var(--ease) 0.15s;
}
.reveal.is-visible .draw::after,
.draw.is-visible::after { width: 56px; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s var(--ease);
}
.faq-item[data-state="open"] .faq-body { max-height: 24rem; }

.faq-sign { position: relative; width: 16px; height: 16px; flex: none; color: var(--gold); }
.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq-sign::before { left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); }
.faq-sign::after { top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); }
.faq-item[data-state="open"] .faq-sign::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq-item[data-state="open"] .faq-q { color: #1E2A5E; }

/* ==========================================================================
   Forms (navy card)
   ========================================================================== */

.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(247, 244, 236, 0.22);
  color: #F7F4EC;
  font-family: "Figtree", sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field::placeholder { color: rgba(247, 244, 236, 0.4); }
.field:focus { border-color: #E0AE4B; background: rgba(255, 255, 255, 0.07); }
.field option { color: #1B1A20; }
select.field { appearance: none; }
.field-wrap { position: relative; }
.field-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #E0AE4B;
  border-bottom: 2px solid #E0AE4B;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1E2A5E;
  color: #F7F4EC;
  border: 1px solid #E0AE4B;
  font-size: 13px;
  padding: 15px 20px;
  transform: translateY(18px);
  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 { opacity: 1; transform: none; transition: none; }
  .draw::after { transition: none; width: 56px; }
  .btn, .btn__arrow, .ledgerbox, .faq-sign::before, .faq-sign::after { transition: none; }
  .btn:hover, .ledgerbox:hover { transform: none; box-shadow: none; }
}
