/* Tiya Tech Traders - main stylesheet */
:root {
  --tt-ink:        #0F1B2D;
  --tt-ink-2:      #1B2A44;
  --tt-navy:       #0F1B2D;
  --tt-navy-2:     #19294a;
  --tt-surface:    #FAF7F2;
  --tt-surface-2:  #F1ECE2;
  --tt-white:      #ffffff;
  --tt-line:       #E5E0D6;
  --tt-line-2:     #D7D1C4;
  --tt-muted:      #5E6878;
  --tt-accent:     #B45309;
  --tt-accent-2:   #934408;
  --tt-teal:       #134E4A;
  --tt-success:    #166534;
  --tt-radius:     10px;
  --tt-shadow:     0 14px 30px -18px rgba(15, 27, 45, .18);
  --tt-shadow-soft:0 6px 16px -10px rgba(15, 27, 45, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tt-ink);
  background: var(--tt-surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--tt-ink);
  font-optical-sizing: auto;
}

h1 { font-size: clamp(2.1rem, 3.7vw, 3.3rem); line-height: 1.12; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 2.7vw, 2.35rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.35; }
h4 { font-size: 1.05rem; }
p  { color: var(--tt-ink); }

a { color: var(--tt-accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--tt-accent-2); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--tt-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Navbar ===== */
.tt-navbar {
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--tt-line);
  padding: .9rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.tt-brand {
  display: flex; align-items: center; gap: .65rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--tt-ink);
  letter-spacing: -0.01em;
}
.tt-brand:hover { color: var(--tt-ink); }
.tt-brand-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--tt-ink);
  display: grid; place-items: center;
  color: var(--tt-surface);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -0.02em;
}
.tt-nav .nav-link {
  color: var(--tt-ink);
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .85rem !important;
  border-radius: 6px;
}
.tt-nav .nav-link:hover { color: var(--tt-accent); background: transparent; }
.tt-nav .nav-link.active { color: var(--tt-accent); }
.tt-nav .nav-link.active::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--tt-accent);
  margin: 4px auto 0;
}
.tt-cta-btn {
  background: var(--tt-ink) !important;
  color: var(--tt-surface) !important;
  padding: .55rem 1.15rem !important;
  border-radius: 4px;
  font-weight: 500;
  transition: background .15s ease;
}
.tt-cta-btn:hover { background: var(--tt-accent) !important; }
.tt-nav .dropdown-menu {
  border: 1px solid var(--tt-line);
  border-radius: 8px;
  box-shadow: var(--tt-shadow-soft);
  padding: .4rem;
}
.tt-nav .dropdown-item {
  border-radius: 5px;
  padding: .5rem .8rem;
  color: var(--tt-ink);
}
.tt-nav .dropdown-item:hover {
  background: var(--tt-surface-2);
  color: var(--tt-accent);
}

/* ===== Buttons ===== */
.btn-tt-primary {
  background: var(--tt-ink);
  color: var(--tt-surface);
  border: 1px solid var(--tt-ink);
  padding: .75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: .95rem;
  transition: background .15s ease, border-color .15s ease;
  display: inline-flex;
  align-items: center;
}
.btn-tt-primary:hover {
  background: var(--tt-accent);
  border-color: var(--tt-accent);
  color: var(--tt-surface);
}
.btn-tt-ghost {
  background: transparent;
  color: var(--tt-ink);
  border: 1px solid var(--tt-line-2);
  padding: .75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: .95rem;
  transition: border-color .15s ease, color .15s ease;
}
.btn-tt-ghost:hover {
  border-color: var(--tt-ink);
  color: var(--tt-ink);
  background: transparent;
}

/* ===== Hero ===== */
.tt-hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background: var(--tt-surface);
  border-bottom: 1px solid var(--tt-line);
}
.tt-hero .eyebrow {
  display: inline-block;
  color: var(--tt-accent);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.tt-hero h1 .accent { color: var(--tt-accent); font-style: italic; font-weight: 500; }
.tt-hero p.lead {
  color: var(--tt-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin-top: 1rem;
}
.tt-hero-art {
  position: relative;
  border-radius: 12px;
  padding: 1.6rem;
  background: var(--tt-ink);
  color: var(--tt-surface);
}
.tt-hero-art h3 { color: var(--tt-surface); font-size: 1.05rem; letter-spacing: -0.01em; }
.tt-hero-art .chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(250, 247, 242, .08);
  border: 1px solid rgba(250, 247, 242, .14);
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .78rem;
  color: rgba(250, 247, 242, .85);
}
.tt-hero-art .stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .75rem; margin-top: 1.3rem;
}
.tt-hero-art .stat {
  background: rgba(250, 247, 242, .04);
  border: 1px solid rgba(250, 247, 242, .09);
  border-radius: 8px;
  padding: .9rem;
}
.tt-hero-art .stat .num {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem; font-weight: 600;
  color: var(--tt-surface);
}
.tt-hero-art .stat .lbl {
  font-size: .75rem;
  color: rgba(250, 247, 242, .65);
  letter-spacing: .02em;
}

/* ===== Sections ===== */
.tt-section { padding: 5rem 0; }
.tt-section-tight { padding: 3.5rem 0; }
.tt-section-dark {
  background: var(--tt-ink);
  color: var(--tt-surface);
}
.tt-section-dark h2, .tt-section-dark h3, .tt-section-dark h4 { color: var(--tt-surface); }
.tt-section-dark p { color: rgba(250, 247, 242, .8); }
.tt-section-soft { background: var(--tt-surface-2); }

.tt-eyebrow {
  display: inline-block;
  color: var(--tt-accent);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: .9rem;
}

/* ===== Cards ===== */
.tt-card {
  background: var(--tt-white);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  padding: 1.75rem;
  height: 100%;
  transition: border-color .15s ease, transform .15s ease;
}
.tt-card:hover {
  border-color: var(--tt-line-2);
  transform: translateY(-2px);
}
.tt-card .icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--tt-surface-2);
  color: var(--tt-accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.tt-card h3 { margin-bottom: .5rem; font-size: 1.18rem; }
.tt-card p { color: var(--tt-muted); margin: 0; font-size: .95rem; }

.tt-card-dark {
  background: rgba(250, 247, 242, .04);
  border: 1px solid rgba(250, 247, 242, .1);
  color: var(--tt-surface);
}
.tt-card-dark h3 { color: var(--tt-surface); }
.tt-card-dark p { color: rgba(250, 247, 242, .72); }
.tt-card-dark .icon {
  background: rgba(180, 83, 9, .12);
  color: #E89B5C;
}

/* ===== Step list ===== */
.tt-step {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  background: var(--tt-white);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  height: 100%;
}
.tt-step .num {
  position: absolute;
  left: 1.3rem; top: 1.35rem;
  width: 34px; height: 34px;
  border-radius: 4px;
  background: var(--tt-ink);
  color: var(--tt-surface);
  display: grid; place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: .95rem;
}
.tt-step h4 { margin-bottom: .35rem; font-size: 1.05rem; }
.tt-step p { color: var(--tt-muted); margin: 0; font-size: .92rem; }

/* ===== Marquee ===== */
.tt-marquee {
  overflow: hidden;
  position: relative;
  padding: 1.1rem 0;
  border-top: 1px solid var(--tt-line);
  border-bottom: 1px solid var(--tt-line);
  background: var(--tt-surface);
}
.tt-marquee-track {
  display: flex;
  gap: 3rem;
  animation: tt-scroll 38s linear infinite;
  width: max-content;
}
.tt-marquee-track span {
  color: var(--tt-muted);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: .82rem;
}
@keyframes tt-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Testimonials ===== */
.tt-quote {
  background: var(--tt-white);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  padding: 1.8rem;
  height: 100%;
}
.tt-quote .mark {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem; line-height: .8;
  color: var(--tt-accent);
  margin-bottom: .4rem;
}
.tt-quote p {
  color: var(--tt-ink);
  font-size: 1rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  line-height: 1.55;
  font-style: italic;
}
.tt-quote .who { color: var(--tt-muted); font-size: .85rem; }

/* ===== FAQ ===== */
.tt-faq .accordion-item {
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius) !important;
  margin-bottom: .7rem;
  overflow: hidden;
  background: var(--tt-white);
}
.tt-faq .accordion-button {
  background: var(--tt-white);
  font-weight: 500;
  color: var(--tt-ink);
  padding: 1.05rem 1.2rem;
  font-size: 1rem;
}
.tt-faq .accordion-button:not(.collapsed) {
  background: var(--tt-surface);
  color: var(--tt-accent);
  box-shadow: none;
}
.tt-faq .accordion-button:focus { box-shadow: none; border-color: var(--tt-accent); }
.tt-faq .accordion-body {
  color: var(--tt-muted);
  padding: 0 1.2rem 1.15rem;
  font-size: .95rem;
}

/* ===== CTA Banner ===== */
.tt-cta-banner {
  background: var(--tt-ink);
  color: var(--tt-surface);
  border-radius: 12px;
  padding: 2.75rem 2.5rem;
  border: 1px solid var(--tt-ink-2);
}
.tt-cta-banner h2 { color: var(--tt-surface); }
.tt-cta-banner p { color: rgba(250, 247, 242, .75); }
.tt-cta-banner .btn-tt-primary {
  background: var(--tt-accent);
  border-color: var(--tt-accent);
}
.tt-cta-banner .btn-tt-primary:hover {
  background: var(--tt-accent-2);
  border-color: var(--tt-accent-2);
}

/* ===== Forms ===== */
.tt-form .form-control,
.tt-form .form-select {
  border: 1px solid var(--tt-line-2);
  padding: .8rem 1rem;
  border-radius: 6px;
  background: var(--tt-white);
  font-size: .95rem;
}
.tt-form .form-control:focus,
.tt-form .form-select:focus {
  border-color: var(--tt-ink);
  box-shadow: 0 0 0 3px rgba(15, 27, 45, .08);
}
.tt-form label {
  font-weight: 500;
  color: var(--tt-ink);
  margin-bottom: .35rem;
  font-size: .9rem;
}
.tt-info-card {
  background: var(--tt-white);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  padding: 1.4rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.tt-info-card .icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--tt-surface-2);
  color: var(--tt-accent);
  display: grid; place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.tt-info-card h3 { font-size: 1rem; }
.tt-info-card a { color: var(--tt-accent); font-weight: 500; }

/* ===== Footer ===== */
.tt-footer {
  background: var(--tt-ink);
  color: rgba(250, 247, 242, .7);
  padding: 4rem 0 1.5rem;
}
.tt-footer h5 {
  color: var(--tt-surface);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.tt-footer a {
  color: rgba(250, 247, 242, .65);
  display: block;
  padding: .2rem 0;
  font-size: .92rem;
}
.tt-footer a:hover { color: var(--tt-accent); }
.tt-footer .tt-brand { color: var(--tt-surface); }
.tt-footer .tt-brand:hover { color: var(--tt-surface); }
.tt-footer .tt-brand-mark { background: var(--tt-accent); color: var(--tt-ink); }
.tt-footer .socials a {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 6px;
  background: rgba(250, 247, 242, .06);
  margin-right: .35rem;
  padding: 0;
}
.tt-footer .socials a:hover { background: var(--tt-accent); color: var(--tt-ink); }
.tt-footer .text-warning { color: var(--tt-accent) !important; }
.tt-footer hr { border-color: rgba(250, 247, 242, .1); margin: 2.5rem 0 1rem; }
.tt-footer .small { color: rgba(250, 247, 242, .45); }
.tt-footer .small a { display: inline; padding: 0; }

/* ===== Page header ===== */
.tt-pagehead {
  padding: 4.5rem 0 3.5rem;
  background: var(--tt-surface);
  border-bottom: 1px solid var(--tt-line);
}
.tt-pagehead .crumb {
  color: var(--tt-muted);
  font-size: .85rem;
  margin-bottom: .9rem;
  letter-spacing: .02em;
}
.tt-pagehead .crumb a { color: var(--tt-muted); }
.tt-pagehead .crumb a:hover { color: var(--tt-accent); }
.tt-pagehead h1 .accent { color: var(--tt-accent); font-style: italic; font-weight: 500; }

/* ===== Gallery ===== */
.tt-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .9rem;
}
.tt-gallery .tile {
  aspect-ratio: 4/3;
  border-radius: var(--tt-radius);
  background: var(--tt-ink-2);
  color: rgba(250, 247, 242, .9);
  display: grid; place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  border: 1px solid rgba(250, 247, 242, .06);
}

/* ===== Blog ===== */
.tt-blog-card {
  background: var(--tt-white);
  border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius);
  overflow: hidden;
  height: 100%;
  transition: border-color .15s ease, transform .15s ease;
}
.tt-blog-card:hover { border-color: var(--tt-line-2); transform: translateY(-2px); }
.tt-blog-thumb {
  aspect-ratio: 16/9;
  background: var(--tt-ink);
  position: relative;
}
.tt-blog-thumb.thumb-2 { background: var(--tt-teal); }
.tt-blog-thumb.thumb-3 { background: var(--tt-accent); }
.tt-blog-thumb.thumb-4 { background: var(--tt-ink-2); }
.tt-blog-thumb.thumb-5 { background: var(--tt-accent-2); }
.tt-blog-thumb.thumb-6 { background: #1f3a5f; }
.tt-blog-thumb .tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(15, 27, 45, .55);
  color: var(--tt-surface);
  padding: .25rem .65rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tt-blog-body { padding: 1.4rem; }
.tt-blog-body h3 { font-size: 1.1rem; margin-bottom: .5rem; line-height: 1.3; }
.tt-blog-body a { color: var(--tt-accent); font-weight: 500; font-size: .9rem; }
.tt-blog-meta { color: var(--tt-muted); font-size: .82rem; margin-bottom: .7rem; }
.tt-blog-card.is-hidden,
.blog-item.is-hidden { display: none; }

/* ===== Filter chips ===== */
.tt-filter {
  display: inline-flex;
  align-items: center;
  padding: .4rem .9rem;
  border: 1px solid var(--tt-line-2);
  border-radius: 999px;
  font-size: .82rem;
  background: var(--tt-white);
  color: var(--tt-ink);
  cursor: pointer;
  transition: all .15s ease;
}
.tt-filter:hover { border-color: var(--tt-ink); }
.tt-filter.is-active {
  background: var(--tt-ink);
  color: var(--tt-surface);
  border-color: var(--tt-ink);
}

/* ===== Utilities ===== */
.divider {
  height: 2px; width: 40px;
  background: var(--tt-accent);
  margin: .8rem 0 1.5rem;
}
.text-muted-tt { color: var(--tt-muted) !important; }
.text-accent { color: var(--tt-accent) !important; }
.tt-section-dark .text-white-50 { color: rgba(250, 247, 242, .65) !important; }
.tt-section-dark .tt-eyebrow { color: #E89B5C; }
.tt-section-dark .btn-tt-ghost {
  color: var(--tt-surface);
  border-color: rgba(250, 247, 242, .25);
}
.tt-section-dark .btn-tt-ghost:hover {
  border-color: var(--tt-surface);
  color: var(--tt-surface);
}

/* Bootstrap text-warning override - tame the brightness */
.text-warning { color: var(--tt-accent) !important; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .tt-hero { padding: 3.5rem 0 3rem; }
  .tt-section { padding: 3.5rem 0; }
  .tt-cta-banner { padding: 2rem 1.5rem; }
  .tt-pagehead { padding: 3rem 0 2.5rem; }
}
