:root {
  --tafex-red: #f91814;
  --tafex-gold: #ffbf09;
  --tafex-black: #000000;
  --tafex-white: #ffffff;
  --tafex-text: #1c1c1c;
  --tafex-muted: #666666;
  --tafex-bg: #f5f6f8;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--tafex-text);
  background: var(--tafex-white);
  line-height: 1.7;
}

.tafex-nav {
  background: rgba(0, 0, 0, 0.92);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.tafex-nav.scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.nav-shell {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 28% 28%, #ffcf4d, #ffbf09 46%, transparent 46%),
    linear-gradient(145deg, #ffbf09, #f91814);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-text small {
  font-size: 0.56rem;
  letter-spacing: 0.9px;
  color: rgba(255, 255, 255, 0.7);
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  margin-left: 0.3rem;
  margin-right: 0.3rem;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--tafex-gold);
}

.btn-brand {
  background: linear-gradient(135deg, var(--tafex-red), #d31310);
  border: none;
  color: var(--tafex-white);
  font-weight: 600;
  padding: 0.7rem 1.35rem;
}

.btn-brand:hover,
.btn-brand:focus {
  color: var(--tafex-white);
  background: linear-gradient(135deg, #d31310, var(--tafex-red));
}

.btn-nav {
  padding: 0.62rem 1.1rem;
  border-radius: 10px;
}

.tafex-toggler {
  width: 48px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 191, 9, 0.28), transparent 52%),
    rgba(255, 255, 255, 0.04);
}

.tafex-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(249, 24, 20, 0.25);
}

.tafex-toggler .toggler-core {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}

.tafex-toggler .toggler-line {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
  background: linear-gradient(90deg, #ffffff, #ffbf09);
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}

.tafex-toggler .toggler-line:nth-child(1) {
  top: 0;
}

.tafex-toggler .toggler-line:nth-child(2) {
  top: 6px;
}

.tafex-toggler .toggler-line:nth-child(3) {
  top: 12px;
}

.tafex-toggler.is-open .toggler-line:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.tafex-toggler.is-open .toggler-line:nth-child(2) {
  opacity: 0;
}

.tafex-toggler.is-open .toggler-line:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.hero {
  padding: 8rem 0 5rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 191, 9, 0.22), transparent 30%),
    radial-gradient(circle at 10% 20%, rgba(249, 24, 20, 0.12), transparent 32%),
    var(--tafex-bg);
}

.eyebrow {
  color: var(--tafex-red);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 1.3px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--tafex-muted);
  max-width: 560px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-tags span {
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--tafex-white);
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 0.38rem 0.82rem;
}

.hero-panel {
  background: var(--tafex-white);
  border-radius: 16px;
  border: 1px solid #e9e9e9;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.hero-panel-top {
  background: linear-gradient(125deg, #121212, #000000);
  color: var(--tafex-white);
  padding: 1.25rem;
}

.hero-panel-top h5 {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hero-panel-top p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.panel-grid article {
  padding: 1rem;
  border-right: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
}

.panel-grid article:nth-child(2n) {
  border-right: none;
}

.panel-grid article:nth-last-child(-n + 2) {
  border-bottom: none;
}

.panel-grid h6 {
  margin: 0 0 0.4rem;
  color: var(--tafex-red);
  font-weight: 700;
}

.panel-grid p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.section-space {
  padding: 5rem 0;
}

.section-alt {
  background: #fbfbfb;
}

.section-title {
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 4px;
  margin-top: 0.6rem;
  background: linear-gradient(90deg, var(--tafex-red), var(--tafex-gold));
}

.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  color: var(--tafex-muted);
}

#about p {
  color: #4f4f4f;
}

.about-card {
  background: var(--tafex-white);
  border: 1px solid #ededed;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 1.3rem;
}

.about-card h5 {
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.about-card ul {
  margin: 0;
  padding-left: 1rem;
}

.about-card li {
  margin-bottom: 0.5rem;
  color: #4f4f4f;
}

.service-card {
  background: var(--tafex-white);
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  height: 100%;
  padding: 1.2rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.focus-card {
  background: var(--tafex-white);
  border: 1px solid #e8e8e8;
  border-top: 4px solid var(--tafex-red);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.focus-card h6 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.focus-card p {
  margin: 0;
  color: #585858;
}

.cta-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 191, 9, 0.2), transparent 35%),
    linear-gradient(130deg, #101010, #000000);
}

footer {
  background: #050505;
  color: #c9c9c9;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .nav-shell {
    min-height: 70px;
  }

  .tafex-toggler {
    width: 46px;
    height: 40px;
  }

  .navbar-collapse {
    background: #ffffff;
    border: 1px solid #e9e9e9;
    margin-top: 0.75rem;
    border-radius: 14px;
    padding: 0.8rem;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
  }

  .nav-menu {
    gap: 0.2rem;
  }

  .nav-link {
    color: #1d1d1d;
    margin: 0;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
  }

  .nav-link:hover,
  .nav-link:focus {
    background: #f5f6f8;
    color: var(--tafex-red);
  }

  .nav-cta {
    margin-top: 0.45rem;
  }

  .btn-nav {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-top: 7rem;
    padding-bottom: 4.3rem;
  }

  .hero-title {
    max-width: 16ch;
  }

  .hero-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: 4rem 0;
  }

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

  .panel-grid article,
  .panel-grid article:nth-child(2n) {
    border-right: none;
  }

  .panel-grid article {
    border-bottom: 1px solid #efefef;
  }

  .panel-grid article:last-child {
    border-bottom: none;
  }

  .brand-text small {
    font-size: 0.5rem;
  }

  .brand-text strong {
    font-size: 0.93rem;
  }

  .hero {
    padding-top: 6.5rem;
    padding-bottom: 3.8rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.97rem;
  }

  .hero .btn-lg {
    width: 100%;
    padding-top: 0.78rem;
    padding-bottom: 0.78rem;
  }

  .hero-tags {
    gap: 0.45rem;
  }

  .hero-tags span {
    font-size: 0.76rem;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .service-card,
  .focus-card,
  .about-card {
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .row {
    --bs-gutter-x: 1.25rem;
  }

  .hero-title {
    font-size: 1.72rem;
  }

  .eyebrow {
    font-size: 0.75rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 0.88rem;
  }

  footer .container {
    justify-content: center;
    text-align: center;
  }
}
