/* =========================================================
   Fort Technology — Shared stylesheet
   Design family: Nexera (typography, layout, rhythm)
   Distinct identity: Fort amber accent (from logo)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #ffffff;
  --surface:       #fafbfe;
  --surface-2:     #f5f3ec;
  --primary:       #0d0c19;
  --primary-soft:  #1a1830;
  --text:          rgba(13, 12, 25, 0.82);
  --muted:         rgba(13, 12, 25, 0.58);
  --accent:        #f2a82b;
  --accent-dark:   #c4860d;
  --accent-tint:   #fff5e0;
  --border:        #ece9e2;
  --border-strong: #d8d3c5;
  --shadow-sm:     0 1px 2px rgba(13,12,25,0.04), 0 1px 3px rgba(13,12,25,0.06);
  --shadow-md:     0 4px 10px rgba(13,12,25,0.06), 0 12px 32px rgba(13,12,25,0.08);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-pill:   999px;
  --container:     1200px;
  --section-y:     96px;
  --section-y-sm:  56px;
  --transition:    all .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Base typography ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
p  { margin: 0 0 1em; }
strong { font-weight: 700; color: var(--primary); }
small  { font-size: .875rem; color: var(--muted); }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-y) 0; }
.section--surface { background: var(--surface); }
.section--accent-tint { background: var(--accent-tint); }
.section--dark { background: var(--primary); color: rgba(255,255,255,0.85); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
/* Defensive: any default-dark text inside a dark section becomes light (prevents black-on-black) */
.section--dark p, .section--dark li, .section--dark .lead, .section--dark .text-muted, .section--dark small { color: rgba(255,255,255,0.80); }
.section--dark .eyebrow { color: var(--accent); }
.section--dark a:not(.btn) { color: var(--accent); }
.section--dark .btn--outline { color: #fff; border-color: rgba(255,255,255,0.55); }
.section--dark .btn--outline:hover { background: #fff; color: var(--primary); border-color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--accent {
  background: var(--accent);
  color: var(--primary);
}
.btn--accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--primary); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }

/* ---------- Header / main nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.site-header__logo img { height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 10px 16px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.site-nav a:hover {
  color: var(--primary);
  background: var(--surface);
}
.site-nav a.is-active {
  color: var(--primary);
  background: var(--accent-tint);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.ticker-pill,
.site-nav a.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ticker-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
/* Override generic .site-nav a:hover so the pill stays dark on hover */
.site-nav a.ticker-pill:hover,
.site-nav a.ticker-pill.is-active {
  background: #000;
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 22px; height: 2px;
  background: var(--primary);
  position: relative;
  transition: var(--transition);
}
.nav-toggle span::before { position: absolute; top: -7px; left: 0; }
.nav-toggle span::after  { position: absolute; top:  7px; left: 0; }

@media (max-width: 900px) {
  /* backdrop-filter on the header creates a containing block that traps position:fixed children. Remove on mobile so the full-screen menu is relative to the viewport. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: 72px; right: 0; bottom: 0; left: 0; width: 100%; height: calc(100vh - 72px);
    z-index: 150;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    padding: 24px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { padding: 16px 18px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--border); }
  .ticker-pill--header { display: none; }
}

/* ---------- IR sub-nav (only on /investors pages) ---------- */
.ir-subnav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 90;
}
.ir-subnav__scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ir-subnav__scroll::-webkit-scrollbar { display: none; }
.ir-subnav a {
  padding: 16px 18px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}
.ir-subnav a:hover { color: var(--primary); }
.ir-subnav a.is-active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 88px;
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}
.hero__inner { max-width: 880px; }
.hero h1 { margin-bottom: 20px; }
.hero p.lead { margin-bottom: 32px; font-size: 1.25rem; color: var(--text); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero--sm { padding: 64px 0 48px; }
.hero--sm h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) {
  .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}
.card--hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 8px; }
.card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-weight: 800;
}

/* Statistic / metric tile */
.stat {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.stat__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: .9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Brand card (Products page) */
.brand-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}
.brand-card__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.brand-card__cat {
  font-size: .85rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 16px;
}
.brand-card__meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--muted);
}
.brand-card__meta span strong { color: var(--primary); font-weight: 700; }

/* ---------- Tables ---------- */
table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
table.simple th, table.simple td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.simple th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- Listings / filings ---------- */
.list-rows { border-top: 1px solid var(--border); }
.list-rows > li {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.list-rows__date { font-size: .85rem; color: var(--muted); font-weight: 600; }
.list-rows__title { color: var(--primary); font-weight: 700; }
.list-rows__title small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }
.list-rows__link {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: .9rem;
}
.list-rows__link:hover { color: var(--primary); }
@media (max-width: 640px) {
  .list-rows > li { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Org structure block (About page) ---------- */
.org-tree {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  font-family: 'Mulish', sans-serif;
}
.org-tree__node {
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}
.org-tree__node--parent { background: var(--primary); color: #fff; }
.org-tree__node--root   { background: var(--accent); color: var(--primary); }
.org-tree__node small { display: block; font-weight: 400; opacity: .75; margin-top: 2px; color: inherit; }
.org-tree__children { padding-left: 32px; border-left: 2px dashed var(--border-strong); margin-left: 14px; }

/* ---------- Timeline ---------- */
.timeline { border-left: 2px solid var(--accent); padding-left: 28px; margin-left: 8px; }
.timeline__item { position: relative; padding-bottom: 28px; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -36px; top: 6px;
  width: 14px; height: 14px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--accent);
}
.timeline__date { font-size: .85rem; font-weight: 700; color: var(--accent-dark); letter-spacing: 0.04em; }
.timeline__title { font-weight: 700; color: var(--primary); margin: 4px 0 2px; }

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 16px;
  max-width: 540px;
}
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field label { font-size: .85rem; font-weight: 700; color: var(--primary); }
.form__field input,
.form__field textarea,
.form__field select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary);
  transition: var(--transition);
}
.form__field input:focus,
.form__field textarea:focus,
.form__field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.form__field textarea { min-height: 120px; resize: vertical; }
.form__checks { display: grid; gap: 8px; }
.form__checks label {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
}
.form__checks label:hover { border-color: var(--border-strong); }
.form__checks input[type="checkbox"] { accent-color: var(--accent); }

/* ---------- Disclaimer callout ---------- */
.callout {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: .9rem;
  color: var(--muted);
}
.callout strong { color: var(--primary); display: block; margin-bottom: 6px; }
.callout--warn { background: var(--accent-tint); }

/* ---------- Placeholder block (Governance, Meetings) ---------- */
.placeholder {
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: .95rem;
}
.placeholder strong { display: block; color: var(--primary); font-size: 1rem; margin-bottom: 6px; }
/* Clean "empty state" card (e.g. no shareholder meeting scheduled) */
.empty-state {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.empty-state__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
}
.empty-state h3 { margin: 0 0 6px; }
.empty-state p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  font-size: .9rem;
}
.site-footer h4 {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__brand img {
  height: 28px; width: auto;
  margin-bottom: 16px;
}
.site-footer__brand p { color: rgba(255,255,255,0.6); max-width: 380px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.75); transition: var(--transition); }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 768px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Misc helpers ---------- */
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent-dark); }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; gap: 16px; flex-wrap: wrap; }
.flex--between { justify-content: space-between; align-items: center; }
.flex--center { justify-content: center; align-items: center; }
.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ---------- TradingView widget wrapper ---------- */
.tv-widget-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 24px 0;
  overflow: hidden;
}

/* ---------- Mobile safety ---------- */
@media (max-width: 640px) {
  .section { padding: var(--section-y-sm) 0; }
  .hero { padding: 64px 0 48px; }
  table.simple th, table.simple td { padding: 10px 10px; font-size: .85rem; }
  .empty-state { flex-direction: column; gap: 14px; }
  .org-tree { padding: 20px; }
  .org-tree__children { padding-left: 18px; margin-left: 8px; }
}
