/* ============================================
   QATARFXPRO.COM — MAROON / QATAR FLAG INSPIRED
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --qt-bg: #0a0606;
  --qt-surface: #140d0d;
  --qt-card: #1c1212;
  --qt-border: #2e1a1a;
  --qt-primary: #7f1d1d;
  --qt-primary-light: #991b1b;
  --qt-primary-glow: rgba(127, 29, 29, 0.12);
  --qt-secondary: #ffffff;
  --qt-accent: #b91c1c;
  --qt-highlight: #fef2f2;
  --qt-maroon: #8b1a1a;
  --text: #e8d8d8;
  --text-muted: #a89090;
  --text-dim: #6b5555;
  --white: #faf5f5;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.3s ease;
  --font-heading: 'Albert Sans', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --max-width: 1200px;
  --article-width: 820px;
}

/* --- RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.74;
  color: var(--text);
  background-color: var(--qt-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--qt-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #dc2626;
}

ul, ol {
  padding-left: 1.5rem;
}

/* --- DIAGONAL STRIPE BACKGROUND --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 80px,
      rgba(127, 29, 29, 0.015) 80px,
      rgba(127, 29, 29, 0.015) 81px
    );
  pointer-events: none;
  z-index: 0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
}

h1 { font-size: 2.9rem; }
h2 { font-size: 2.05rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

/* --- UTILITY --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --- HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 6, 6, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qt-border);
  padding: 0.8rem 0;
  transition: box-shadow var(--transition);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
}

.header__logo span {
  color: var(--qt-accent);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--qt-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--white);
  border: 2px solid var(--qt-accent);
}

/* --- NAVIGATION --- */
.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
  background: var(--qt-primary-glow);
}

.nav__cta {
  padding: 0.55rem 1.3rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--white) !important;
  background: var(--qt-primary);
  border: 1px solid var(--qt-accent);
  border-radius: var(--radius-sm);
  margin-left: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--qt-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.3);
}

/* --- MOBILE NAV TOGGLE --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2.5px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}

/* --- HERO SECTION --- */
.hero {
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(to left, rgba(127, 29, 29, 0.08), transparent);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--qt-primary), var(--qt-accent), var(--qt-primary));
}

.hero__content {
  max-width: 730px;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--qt-accent);
  background: var(--qt-primary-glow);
  border: 1px solid rgba(127, 29, 29, 0.4);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero__title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.06;
  margin-bottom: 1.25rem;
}

.hero__title span {
  color: var(--qt-accent);
}

.hero__subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 610px;
  line-height: 1.78;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--qt-card);
  color: var(--white);
  border: 1px solid var(--qt-border);
}

.btn--primary:hover {
  border-color: var(--qt-primary);
  background: var(--qt-primary-glow);
}

.btn--accent {
  background: var(--qt-primary);
  color: var(--white);
  border: 1px solid var(--qt-accent);
}

.btn--accent:hover {
  background: var(--qt-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(185, 28, 28, 0.25);
  color: var(--white);
}

.btn--large {
  padding: 0.88rem 2.1rem;
  font-size: 0.98rem;
}

/* --- SECTIONS --- */
.section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 1;
}

.section--alt {
  background: var(--qt-surface);
}

.section--bordered {
  border-top: 1px solid var(--qt-border);
  border-bottom: 1px solid var(--qt-border);
}

.section__header {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--qt-accent);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* --- STATS BAR --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 2.5rem 0;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--qt-card);
  border-radius: var(--radius);
  border: 1px solid var(--qt-border);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--qt-primary);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--white);
}

.stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  background: var(--qt-card);
  border: 1px solid var(--qt-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  text-align: center;
}

.feature:hover {
  border-color: var(--qt-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(127, 29, 29, 0.12);
}

.feature__icon {
  font-size: 2rem;
  color: var(--qt-accent);
  margin-bottom: 1rem;
  width: 56px;
  height: 56px;
  background: var(--qt-primary-glow);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature__title {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.feature__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- CARD GRID --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--qt-card);
  border: 1px solid var(--qt-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--qt-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  border-color: rgba(127, 29, 29, 0.4);
  transform: translateY(-2px);
}

.card__rank {
  margin-bottom: 0.75rem;
}

.rank-badge {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rank-badge--gold {
  background: rgba(127, 29, 29, 0.2);
  color: #ef4444;
  border: 1px solid rgba(127, 29, 29, 0.4);
}

.rank-badge--silver {
  background: rgba(168, 144, 144, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(168, 144, 144, 0.15);
}

.rank-badge--blue {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card__title a {
  color: var(--white);
}

.card__title a:hover {
  color: var(--qt-accent);
}

.card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  align-items: center;
}

/* --- CTA BOX --- */
.cta-box {
  background: var(--qt-card);
  border: 1px solid var(--qt-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--qt-accent), var(--qt-primary));
}

.cta-box:hover {
  border-color: rgba(127, 29, 29, 0.4);
}

.cta-box__title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.cta-box__desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 1.25rem;
}

/* --- FOOTER --- */
.footer {
  background: var(--qt-surface);
  border-top: 2px solid var(--qt-primary);
  padding: 3.5rem 0 1.5rem;
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer__brand-name span {
  color: var(--qt-accent);
}

.footer__brand-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer__heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--qt-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--qt-accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--qt-border);
  margin-bottom: 1.5rem;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer__legal {
  display: flex;
  gap: 1.25rem;
}

.footer__legal a {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer__legal a:hover {
  color: var(--qt-accent);
}

.footer__disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.65;
  padding: 1.25rem;
  background: rgba(28, 18, 18, 0.8);
  border: 1px solid var(--qt-border);
  border-radius: var(--radius);
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--qt-primary);
  color: var(--white);
  border: 1px solid var(--qt-accent);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--qt-accent);
  transform: translateY(-2px);
}

/* --- ARTICLE PAGE STYLES --- */
.article-header {
  padding: 4rem 0 2rem;
  position: relative;
}

.article-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--qt-primary), var(--qt-accent), var(--qt-primary));
}

.article-header__breadcrumb {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.article-header__breadcrumb a {
  color: var(--text-dim);
}

.article-header__breadcrumb a:hover {
  color: var(--qt-accent);
}

.article-header h1 {
  font-size: 2.4rem;
  max-width: var(--article-width);
  margin-bottom: 1rem;
}

.article-header__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.article-body {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article-body h2 {
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--qt-border);
}

.article-body h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body blockquote {
  border-left: 4px solid var(--qt-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--qt-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-body th,
.article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--qt-border);
  text-align: left;
  font-size: 0.92rem;
}

.article-body th {
  background: var(--qt-card);
  color: var(--qt-accent);
  font-weight: 700;
}

/* --- INLINE CTA --- */
.inline-cta {
  background: linear-gradient(135deg, var(--qt-card), rgba(127, 29, 29, 0.08));
  border: 1px solid var(--qt-primary);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2rem 0;
  text-align: center;
}

.inline-cta h4 {
  margin-bottom: 0.75rem;
  color: var(--qt-accent);
}

.inline-cta p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* --- FAQ --- */
.qatar-qa {
  border: 1px solid var(--qt-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.qatar-q {
  padding: 1rem 1.25rem;
  background: var(--qt-card);
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.qatar-q:hover {
  background: var(--qt-border);
}

.qatar-q::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--qt-accent);
  transition: transform var(--transition);
}

.qatar-qa.active .qatar-q::after {
  content: '-';
}

.qatar-a {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.qatar-qa.active .qatar-a {
  padding: 1rem 1.25rem;
  max-height: 500px;
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--qt-surface);
    border-bottom: 1px solid var(--qt-border);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .nav.active {
    display: flex;
  }

  .nav__link {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .nav__cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .hero__title {
    font-size: 1.85rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn--large {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 2.5rem 0;
  }

  .article-header h1 {
    font-size: 1.7rem;
  }
}