/*
 * AFA Index – modern, friendly, responsive overrides
 * Keeps all content; improves layout, spacing, and mobile experience.
 */

/* ---- Variables ---- */
:root {
  --index-font-sans: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  --index-font-heading: 'Heebo', sans-serif;
  --index-color-bg: #fafbfc;
  --index-color-card: #ffffff;
  --index-color-text: #2d3748;
  --index-color-muted: #718096;
  --index-color-accent: #0d9488;
  --index-color-accent-hover: #0f766e;
  --index-radius: 12px;
  --index-radius-sm: 8px;
  --index-shadow: 0 1px 3px rgba(0,0,0,.06);
  --index-shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --index-nav-height: 72px;
}

.index-page {
  background: var(--index-color-bg);
  color: var(--index-color-text);
}

/* ---- Navbar: modern bar + Login + burger ---- */
.index-page .navbar {
  padding: 0.5rem 0;
  min-height: var(--index-nav-height);
  background: #000 !important;
  box-shadow: var(--index-shadow-md);
  color: #fff;
}

.index-page .navbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.index-page .navbar-brand {
  width: auto;
  max-width: 160px;
}

.index-page .navbar-brand img {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.index-page .navbar-toggler {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--index-radius-sm);
  color: #fff;
}

.index-page .navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(255,255,255,.3);
}

.index-page .navbar-toggler-icon {
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.index-page .navbar-collapse {
  width: 100%;
  left: 0;
  text-align: left;
}

@media (min-width: 992px) {
  .index-page .navbar-collapse {
    width: auto;
    flex-grow: 0;
  }
}

.index-page .navbar-nav.nav {
  gap: 0.25rem;
}

.index-page .navbar-nav .nav-link {
  color: rgba(255,255,255,.9) !important;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--index-radius-sm);
  transition: color .2s, background .2s;
}

.index-page .navbar-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.08);
}

.index-page .nav-nav-login {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,.15);
}

.index-page .nav-link-login {
  display: inline-block;
  padding: 0.4rem 1rem !important;
  background: rgba(255,255,255,.12);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.9rem;
}

.index-page .nav-link-login:hover {
  background: var(--index-color-accent) !important;
  color: #fff !important;
}

@media (min-width: 992px) {
  .index-page .nav-nav-login {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    margin-left: 0.5rem;
  }
}

/* ---- Intro ---- */
.index-page .intro {
  margin-top: var(--index-nav-height);
  padding: 3rem 0 4rem;
  background: linear-gradient(160deg, #000 0%, #1a1a1a 100%);
  color: #fff;
}

.index-page .intro h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.index-page .intro .content p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,.9);
  margin-bottom: 0;
}

.index-page .intro .content-image {
  margin-right: 0;
  text-align: center;
}

.index-page .intro .content-image img {
  width: 85%;
  max-width: 380px;
}

@media (max-width: 991px) {
  .index-page .intro .content-image {
    margin-top: 2rem;
  }
}

/* ---- Clients strip ---- */
.index-page .clients {
  padding: 2.5rem 1rem;
  background: var(--index-color-card);
  box-shadow: var(--index-shadow);
}

.index-page .clients .row {
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.index-page .clients img {
  padding: 0 1rem;
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.4);
  opacity: 0.85;
}

/* ---- About ---- */
.index-page .about {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--index-color-card);
}

.index-page .about h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.index-page .about .content p {
  color: var(--index-color-muted);
  margin-bottom: 1rem;
}

.index-page .about ul {
  list-style: none;
  padding-left: 0;
}

.index-page .about ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.index-page .about ul.about-list-icons {
  list-style: none;
  padding-left: 0;
}
.index-page .about ul.about-list-icons li {
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}
.index-page .about ul.about-list-icons li::before {
  content: none;
}
.index-page .about ul.about-list-icons .bi-check-circle-fill {
  color: var(--index-color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.index-page .about ul:not(.about-list-icons) li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--index-color-accent);
}

.index-page .about .content-image img {
  border-radius: var(--index-radius);
  box-shadow: var(--index-shadow-md);
}

/* ---- Achievement ---- */
.index-page .achievement .content {
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: var(--index-radius);
  margin: 0 0.5rem;
}

.index-page .achievement i.achievement-icon,
.index-page .achievement i.bi {
  font-size: 2.5rem;
  color: var(--index-color-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.index-page .achievement h2 {
  font-size: 2rem;
  margin: 0.5rem 0;
}

.index-page .achievement p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--index-color-muted);
}

/* ---- Services ---- */
.index-page .services {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--index-color-bg);
}

.index-page .services h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.index-page .services .content-left,
.index-page .services .content-right {
  margin: 0;
}

.index-page .services .content {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--index-color-card);
  border-radius: var(--index-radius);
  box-shadow: var(--index-shadow);
  transition: box-shadow .2s, transform .2s;
}

.index-page .services .content:hover {
  box-shadow: var(--index-shadow-md);
}

.index-page .services .content img {
  height: 48px;
  width: auto;
}

.index-page .services .content h5 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.05rem;
}

.index-page .services .content ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.index-page .services .content ul li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--index-color-muted);
}

/* ---- Testimonial ---- */
.index-page .testimonial .content-box {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2.5rem;
  padding: 2rem;
  background: linear-gradient(160deg, #000 0%, #1a1a1a 100%);
  border-radius: var(--index-radius);
}

.index-page .testimonial .content-image {
  flex: 0 1 42%;
  max-width: 42%;
}

.index-page .testimonial .swiper {
  flex: 1 1 50%;
  min-width: 0;
  float: none;
  margin-top: 0;
}

.index-page .testimonial .content {
  padding: 1.5rem 0;
}

.index-page .testimonial .content i {
  font-size: 2rem;
  color: #fff;
}

.index-page .testimonial .content p {
  color: #fff;
  margin-bottom: 1rem;
}

.index-page .testimonial h5 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.index-page .testimonial span {
  color: rgba(255,255,255,.85);
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .index-page .testimonial .content-image {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }
  .index-page .testimonial .swiper {
    flex: 0 0 100%;
    margin-top: 0.5rem;
  }
}

/* ---- Contact ---- */
.index-page .contact {
  padding-top: 4rem;
  padding-bottom: 2rem;
  background: var(--index-color-card);
}

.index-page .contact h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

.index-page .contact h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--index-color-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}
.index-page .contact h5 .bi {
  font-size: 1rem;
}

.index-page .contact span,
.index-page .contact a {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--index-color-text);
}

.index-page .contact a:hover {
  color: var(--index-color-accent);
}

/* ---- Footer ---- */
.index-page footer {
  background: #000;
  color: #fff;
}

.index-page footer .row {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
}

.index-page footer ul {
  text-align: center;
}

.index-page footer ul li a {
  color: #fff;
}

.index-page footer ul li a:hover {
  color: rgba(255,255,255,.8);
}

.index-page footer .col-md.col-sm.col-12 {
  text-align: center;
}

@media (min-width: 576px) {
  .index-page footer .row.reverse {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .index-page footer ul {
    text-align: right;
  }
  .index-page footer .col-md:first-child {
    text-align: left;
  }
}

/* ---- Responsive: mobile-first tweaks ---- */
@media (max-width: 991px) {
  .index-page .navbar-collapse {
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .index-page .navbar-nav .nav-item {
    padding: 0.25rem 0;
  }
  .index-page .navbar-nav .nav-link {
    padding: 0.6rem 0.75rem;
  }
  .index-page .intro .row,
  .index-page .about .row,
  .index-page .contact .row {
    --bs-gutter-x: 1.5rem;
  }
  .index-page .services .row.gx-5 {
    --bs-gutter-x: 1rem;
  }
  .index-page .clients img {
    padding: 0 0.5rem;
    max-height: 40px;
  }
}

@media (max-width: 575px) {
  .index-page .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .index-page .intro {
    padding: 2rem 0 3rem;
  }
  .index-page .clients .row {
    flex-direction: column;
  }
  .index-page .clients img {
    padding: 0.5rem 0;
    max-height: 36px;
  }
  .index-page .achievement .content .row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .index-page .contact .row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .index-page footer .reverse {
    flex-direction: column-reverse !important;
  }
  .index-page footer .col-md.col-sm.col-12 {
    margin-bottom: 0.75rem;
  }
}

/* ---- Touch-friendly ---- */
@media (hover: none) {
  .index-page .navbar-nav .nav-link,
  .index-page .nav-link-login {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .index-page .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }
}
