/* Focus Shares & Securities - Modern HTML5 Theme */
:root {
  --purple: #2e1a47;
  --purple-dark: #1f1233;
  --purple-nav: #3d2260;
  --orange: #f58220;
  --orange-light: #ffb347;
  --orange-bg: #fff4e6;
  --beige: #fdebd8;
  --text: #333;
  --text-muted: #666;
  --white: #fff;
  --border: #e8e0ef;
  --shadow: 0 4px 20px rgba(46, 26, 71, 0.08);
  --max-width: 1200px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple); transition: color 0.2s; }
a:hover { color: var(--orange); }

/* Site header — branding + orange rule + gray nav */
.site-header {
  background: var(--white);
}

.brand-bar {
  background: var(--white);
}

.brand-bar__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 16px 10px 20px;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 88px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  z-index: 2;
}

.brand-logo__img {
  display: block;
  height: auto;
  width: auto;
  max-height: 72px;
  max-width: min(280px, 52vw);
}

.brand-logo__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--orange-light) 0%, var(--orange) 100%);
  border: 4px solid var(--purple);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.brand-logo__text strong {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  letter-spacing: 0;
}

.brand-logo__text em {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #000;
  font-style: italic;
  font-weight: 400;
}

.brand-name {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 12px;
  padding: 12px 28px 12px 18%;
  background: linear-gradient(90deg, #ffc766 0%, var(--orange) 35%, #f59a38 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  position: relative;
}

.brand-name h1 {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 24px);
  color: var(--purple);
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.nav-separator {
  height: 5px;
  margin: 0;
  border: none;
  background: var(--orange);
}

/* Top strip */
.top-strip {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  font-size: 12px;
}

.top-strip__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.top-strip__member {
  color: #444;
  font-weight: 500;
}

.top-strip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

.top-strip__actions a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.top-strip__actions a:hover {
  color: var(--orange);
}

.top-strip__login {
  background: var(--purple);
  color: #fff !important;
  padding: 5px 14px;
  border-radius: 4px;
  font-weight: 600;
}

.top-strip__login:hover {
  background: var(--purple-dark);
  color: #fff !important;
}

.top-strip__login span {
  font-size: 9px;
  margin-left: 2px;
}

/* Navigation — purple bar, white text */
.main-nav {
  background: var(--purple-nav);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.main-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 12px;
}

.nav-icon {
  font-size: 15px;
  line-height: 1;
  opacity: 0.95;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  border-bottom: 4px solid transparent;
}

.nav-caret {
  font-size: 10px;
  line-height: 1;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.85);
}

.nav-menu > li > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-menu > li.active > a {
  color: #fff;
  border-bottom-color: var(--orange);
  background: rgba(0, 0, 0, 0.12);
}

.nav-menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border: 1px solid #ddd;
  z-index: 100;
}

.nav-menu li:hover .submenu { display: block; }

.nav-menu .submenu a {
  display: block;
  padding: 10px 18px;
  color: #222;
  text-decoration: none;
  font-size: 13px;
}

.nav-menu .submenu a:hover {
  background: var(--orange-bg);
  color: var(--purple);
}

/* Breadcrumb */
.breadcrumb-bar {
  background: #f5f3f8;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13px;
}

.breadcrumb-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  color: var(--purple);
}

.breadcrumb-bar a {
  color: var(--purple);
  text-decoration: none;
}

.breadcrumb-bar a:hover { color: var(--orange); }

/* Search (Markets page) */
.search-bar {
  background: #f0edf5;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.search-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
}

.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.search-bar button {
  background: var(--orange);
  border: none;
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 16px;
}

/* Main layout */
.page-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.page-title {
  color: var(--purple);
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 8px;
  font-weight: 700;
}

.page-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin-top: 8px;
  border-radius: 2px;
}

/* Two column layout */
.layout-two-col {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .layout-two-col { grid-template-columns: 1fr; }
}

.sidebar-box {
  border: 3px solid var(--orange);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.sidebar-box img { width: 100%; }

.sidebar-promo {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-promo .sidebar-box { margin: 0; }

/* Content blocks */
.content-block h2, .content-block h3 {
  color: var(--purple);
  margin-top: 1.5em;
}

.content-block p { margin: 0 0 1em; }

.econtract-login {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 40px;
}

/* Marquee / ticker */
.ticker-wrap {
  background: #fdfdeb;
  border: 1px solid #e8e8c0;
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0;
}

.ticker-wrap marquee {
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: #903;
}

/* Attention list */
.attention-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.attention-list li {
  background: #fdfdeb;
  margin-bottom: 8px;
  padding: 12px 16px;
  border-radius: 4px;
  color: #903;
  border-left: 4px solid var(--orange);
}

/* Download list */
.download-list { list-style: none; padding: 0; margin: 0; }

.download-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.download-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f0edf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.download-item h3 { margin: 0 0 4px; color: var(--purple); font-size: 16px; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--purple);
  color: var(--purple);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.btn-download:hover {
  background: var(--purple);
  color: var(--white);
}

/* Back office cards */
.login-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.login-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.login-card:hover { transform: translateY(-4px); }

.login-card img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto 12px;
}

.login-card strong { color: var(--purple); }

/* Feature icons (back office) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.feature-item {
  text-align: center;
  padding: 16px;
}

.feature-item .icon { font-size: 32px; color: var(--purple); margin-bottom: 8px; }

.feature-item strong { display: block; color: var(--purple); font-size: 13px; }

/* Market cards */
.market-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.market-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(46, 26, 71, 0.15);
}

.market-card__img {
  height: 140px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-nav) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.market-card__body {
  padding: 20px;
  text-align: center;
}

.market-card__body h3 {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 16px;
}

.market-card__body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
  background: #f9f7fc;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--purple);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

.form-group textarea { min-height: 100px; resize: vertical; }

.btn-primary {
  background: var(--purple);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { background: var(--orange); }

.contact-form-table { width: 100%; max-width: 520px; margin: 24px 0; }
.contact-form-table td { padding: 8px 12px 8px 0; vertical-align: top; }
.contact-form-table label { font-weight: 600; color: var(--purple); }

.link-list { list-style: none; padding: 0; margin: 0; }

.link-list li {
  border-bottom: 1px dotted var(--border);
  padding: 14px 0;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
}

.link-list a::after { content: "›"; color: var(--orange); font-size: 20px; }

/* Document links */
.doc-links { list-style: none; padding: 0; }

.doc-links li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.doc-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
}

.doc-links a::before { content: "📄"; }

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: var(--white) !important;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 16px;
}

.btn-cta:hover { background: var(--orange); color: var(--white) !important; }

/* Footer — cream panel + logos + company details */
.site-footer {
  margin-top: 48px;
}

.footer-main {
  background: #fff5e6;
  padding: 22px 20px 28px;
}

.footer-nav {
  max-width: var(--max-width);
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  row-gap: 8px;
  line-height: 1.6;
}

.footer-nav a {
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px 10px;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

.footer-nav a:not(:last-child)::after {
  content: "|";
  margin-left: 10px;
  color: var(--orange);
  font-weight: 400;
  text-decoration: none;
  display: inline-block;
}

@media (min-width: 769px) {
  .footer-nav a {
    white-space: nowrap;
  }
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-nav a.footer-nav__highlight {
  color: #b01030;
  font-weight: 700;
}

.footer-nav a.footer-nav__highlight:hover {
  color: #8b0d26;
}

.footer-logos {
  max-width: var(--max-width);
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-logo-box {
  display: block;
  background: #fff;
  padding: 10px 14px;
  border: 1px solid rgba(245, 130, 32, 0.35);
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(46, 26, 71, 0.08);
  transition: box-shadow 0.2s;
}

.footer-logo-box:hover {
  box-shadow: 0 3px 10px rgba(46, 26, 71, 0.12);
}

.footer-logo-box img {
  width: 110px;
  height: 72px;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

.footer-logos {
  max-width: 1100px;
}

.footer-company {
  max-width: var(--max-width);
  margin: 0 auto;
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  text-align: left;
}

.footer-company--dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.footer-company__col strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.footer-company strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-company--dual {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.footer-copyright-bar {
  background: #fdfaf5;
  border-top: 1px solid rgba(245, 130, 32, 0.45);
  padding: 12px 20px;
  text-align: center;
}

.footer-copyright-bar p {
  margin: 0;
  color: #000;
  font-size: 13px;
  font-weight: 600;
}

.footer-developer-credit {
  margin-top: 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--purple-dark);
}

.footer-developer-credit a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-developer-credit a:hover {
  color: var(--orange);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  z-index: 9999;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: var(--white);
}

/* Mobile nav */
@media (max-width: 992px) {
  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 12px;
  }

  .nav-menu.open { display: flex; }

  .main-nav__inner { flex-wrap: wrap; }

  .nav-menu > li > a {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 16px;
  }

  .nav-menu .submenu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 20px;
  }

  .nav-menu li.submenu-open .submenu { display: block; }

  .brand-bar__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .brand-name {
    clip-path: none;
    margin-left: 0;
    padding: 14px 16px;
    justify-content: center;
  }

  .brand-name h1 { text-align: center; }

  .main-nav__inner { justify-content: flex-start; }

  .footer-nav { gap: 0; row-gap: 8px; }
  .footer-nav a { font-size: 12px; padding: 4px 8px; }
  .footer-logo-box img { width: 90px; height: 60px; }
}

@media (max-width: 600px) {
  .download-item { grid-template-columns: 1fr; text-align: center; }
  .brand-logo__img { max-height: 56px; max-width: min(220px, 70vw); }
}
