/* TwinVision Associates — Brand + Responsive Layer
   Colors sampled from twin-vision.jpeg business card */

:root {
  /* Primary brand (card wordmark / wave) */
  --tv-navy: #003078;
  --tv-navy-deep: #001848;
  --tv-green: #4c7c2c;
  --tv-green-deep: #387010;
  --tv-green-light: #609030;

  /* Service icon colors (exact card accents) */
  --tv-bank: #003078;
  --tv-subsidy: #4c7c2c;
  --tv-insurance: #401468;
  --tv-college: #e46400;
  --tv-jobs: #0078a8;
  --tv-govt: #94201c;

  --tv-dark: #0b1f3a;
  --tv-muted: #5a6a7a;
  --tv-surface: #ffffff;
  --tv-soft: #f4f7fb;

  --tv-wave: linear-gradient(135deg, #003078 0%, #0a4678 42%, #4c7c2c 100%);
  --tv-footer: linear-gradient(90deg, #003078 0%, #286030 52%, #387010 100%);

  --bs-primary: #003078;
  --bs-secondary: #4c7c2c;
  --bs-dark: #001848;
  --bs-light: #f4f7fb;
  --bs-primary-rgb: 0, 48, 120;
  --bs-secondary-rgb: 76, 124, 44;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: #243447;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.navbar-brand,
.brand-wordmark {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

.text-primary {
  color: var(--tv-navy) !important;
}

.bg-primary {
  background-color: var(--tv-navy) !important;
}

.border-primary {
  border-color: var(--tv-navy) !important;
}

.text-secondary {
  color: var(--tv-green) !important;
}

.bg-secondary {
  background-color: var(--tv-green) !important;
}

.btn.btn-primary {
  background: var(--tv-navy);
  border-color: var(--tv-navy);
}

.btn.btn-primary:hover {
  background: var(--tv-navy-deep);
  border-color: var(--tv-navy-deep);
}

.btn.btn-secondary,
.btn.btn-tv-green {
  background: var(--tv-green);
  border-color: var(--tv-green);
  color: #fff;
}

.btn.btn-tv-green:hover,
.btn.btn-secondary:hover {
  background: var(--tv-green-deep);
  color: #fff;
}

/* ---------- Brand logo (official PNG everywhere) ---------- */
.brand-wordmark,
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  max-width: 100%;
}

.brand-wordmark img,
.brand-logo img,
.navbar-brand.brand-logo img,
.navbar-brand.brand-wordmark img {
  width: auto !important;
  height: 58px !important;
  max-width: min(240px, 58vw);
  object-fit: contain;
  flex-shrink: 0;
}

.footer .brand-wordmark img,
.footer .brand-logo img {
  height: 72px !important;
  max-width: min(280px, 80%);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}

.brand-wordmark .brand-text {
  display: none;
  /* full logo PNG already includes wordmark */
}

@media (max-width: 991.98px) {

  .brand-wordmark img,
  .brand-logo img,
  .navbar-brand.brand-logo img,
  .navbar-brand.brand-wordmark img {
    height: 48px !important;
    max-width: min(200px, 55vw);
  }
}

@media (max-width: 575.98px) {

  .brand-wordmark img,
  .brand-logo img,
  .navbar-brand.brand-logo img,
  .navbar-brand.brand-wordmark img {
    height: 42px !important;
    max-width: min(170px, 52vw);
  }
}

/* ---------- Hero wave (card swoosh) ---------- */
.header-carousel-item,
.tv-hero {
  position: relative;
  overflow: hidden;
  background: var(--tv-wave) !important;
}

.tv-hero::before,
.header-carousel-item::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -25%;
  width: 58%;
  height: 150%;
  background:
    radial-gradient(ellipse at 28% 40%,
      rgba(76, 124, 44, 0.5),
      transparent 55%),
    radial-gradient(ellipse at 72% 58%, rgba(0, 48, 120, 0.55), transparent 52%);
  border-radius: 42% 58% 55% 45%;
  pointer-events: none;
}

.tv-hero::after,
.header-carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(0, 48, 120, 0.94) 0%,
      rgba(0, 48, 120, 0.55) 48%,
      rgba(76, 124, 44, 0.38) 100%);
  pointer-events: none;
}

.header-carousel-item .carousel-caption,
.tv-hero .container {
  position: relative;
  z-index: 2;
}

.header-carousel .header-carousel-item {
  min-height: 560px;
  height: auto !important;
}

.header-carousel .carousel-caption {
  padding-top: 2.5rem !important;
  padding-bottom: 3rem !important;
}

.tv-tagline {
  display: inline-block;
  font-weight: 600;
  color: var(--tv-navy);
  border-top: 2px solid var(--tv-green);
  border-bottom: 2px solid var(--tv-green);
  padding: 6px 14px;
}

/* ---------- Service category accents (card colors) ---------- */
.svc-bank {
  --svc: var(--tv-bank);
}

.svc-subsidy {
  --svc: var(--tv-subsidy);
}

.svc-insurance {
  --svc: var(--tv-insurance);
}

.svc-college {
  --svc: var(--tv-college);
}

.svc-jobs {
  --svc: var(--tv-jobs);
}

.svc-govt {
  --svc: var(--tv-govt);
}

.service-card {
  background: var(--tv-surface);
  border: 1px solid rgba(0, 48, 120, 0.08);
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.6rem;
  height: 100%;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 48, 120, 0.14);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--svc, var(--tv-navy));
}

.service-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--svc, var(--tv-navy));
  margin: 0.35rem auto 1rem;
  font-size: 1.55rem;
  box-shadow: 0 10px 22px rgba(0, 48, 120, 0.18);
  flex-shrink: 0;
}

.service-card h4 {
  color: var(--svc, var(--tv-navy));
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
}

.service-card>p {
  color: var(--tv-muted);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
  flex-grow: 0;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
  text-align: left;
  flex-grow: 1;
}

.service-card ul li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.45rem;
  color: #3d4d5c;
  font-size: 0.92rem;
  line-height: 1.4;
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--svc, var(--tv-navy));
}

.service-card .btn-svc {
  margin-top: auto;
  align-self: center;
  background: var(--svc, var(--tv-navy)) !important;
  border-color: var(--svc, var(--tv-navy)) !important;
  color: #fff !important;
}

.service-card .btn-svc:hover {
  filter: brightness(0.92);
  color: #fff !important;
}

/* Desktop: 3 columns; large screens can show denser grid */
@media (min-width: 1200px) {
  .services-grid>[class*="col-"] {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* ---------- Mini service icons (hero / card front strip) ---------- */
.mini-services {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  justify-content: flex-start;
}

.mini-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 78px;
  text-decoration: none;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.3s ease;
  line-height: 1.2;
}

.mini-service:hover {
  transform: translateY(-4px);
  color: #fff;
}

.mini-service span.icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.mini-service.svc-bank span.icon {
  background: var(--tv-bank);
}

.mini-service.svc-subsidy span.icon {
  background: var(--tv-subsidy);
}

.mini-service.svc-insurance span.icon {
  background: var(--tv-insurance);
}

.mini-service.svc-college span.icon {
  background: var(--tv-college);
}

.mini-service.svc-jobs span.icon {
  background: var(--tv-jobs);
}

.mini-service.svc-govt span.icon {
  background: var(--tv-govt);
}

/* ---------- Contact chips ---------- */
.contact-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 48, 120, 0.08);
  margin-bottom: 10px;
}

.contact-person .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.contact-person .avatar.blue {
  background: var(--tv-navy);
}

.contact-person .avatar.green {
  background: var(--tv-green);
}

.contact-person strong {
  display: block;
  font-size: 0.95rem;
  color: var(--tv-dark);
}

.contact-person a {
  color: var(--tv-navy);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.wa-link {
  color: #25d366 !important;
  margin-left: 6px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--tv-footer) !important;
}

/* Quick Links & Our Services list values */
.footer .footer-item>a {
  color: #ffffff;
}

.footer .footer-item>a:hover {
  color: #ffffff;
  opacity: 0.85;
}

.footer .footer-item>a i.fa-angle-right,
.footer .footer-item>a i.fas.fa-angle-right {
  font-size: 0.75rem;
  width: 0.9rem;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
}

/* Social / action icon buttons — size only */
.footer .footer-btn .btn-md-square {
  width: 40px;
  height: 40px;
}

.footer .footer-btn .btn-md-square i {
  font-size: 1rem;
  line-height: 1;
}

.footer .footer-btn .btn-lg-square {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.footer .footer-btn .btn-lg-square i {
  font-size: 1.15rem !important;
  line-height: 1;
}

/* Address / mail / phone icon boxes — size only */
.footer .btn-xl-square {
  width: 52px;
  height: 52px;
  padding: 0 !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer .btn-xl-square i {
  font-size: 1.25rem !important;
  line-height: 1;
}

.footer-contact-row {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.footer-contact-item {
  width: 100%;
  height: 100%;
}

.footer-contact-item>.flex-grow-1 {
  min-width: 0;
}

.tv-slogan-bar {
  background: var(--tv-footer);
  color: #fff;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
}

/* ---------- Floats ---------- */
.whatsapp-float {
  position: fixed;
  left: 16px;
  bottom: 24px;
  z-index: 99;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
}

.back-to-top {
  right: 16px !important;
  bottom: 24px !important;
}

/* ---------- Feature / about ---------- */
.feature-item .feature-icon {
  background: rgba(0, 48, 120, 0.08);
  color: var(--tv-navy);
  border-radius: 16px;
}

.counter-item {
  border-left: 4px solid var(--tv-green);
}

.bg-breadcrumb {
  background: var(--tv-wave) !important;
}

/* Service color legend strip (optional visual cue) */
.svc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.svc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tv-dark);
}

.svc-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

@keyframes tvRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tv-rise {
  animation: tvRise 0.7s ease both;
}

/* ========== Responsive breakpoints ========== */

/* Large tablets / small desktops */
@media (max-width: 1199.98px) {
  .header-carousel .header-carousel-item {
    min-height: 520px;
  }
}

/* Tablets */
@media (max-width: 991.98px) {
  .mini-services {
    justify-content: center;
  }

  .header-carousel .header-carousel-item {
    min-height: 0;
  }

  .header-carousel .carousel-caption h1.display-3,
  .header-carousel .carousel-caption h1.display-4 {
    font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
  }

  .header-carousel .carousel-caption .fs-5 {
    font-size: 1rem !important;
  }

  .nav-bar .navbar {
    padding: 12px 0;
  }

  .service-card {
    text-align: left;
  }

  .service-icon-circle {
    margin-left: 0;
    margin-right: auto;
  }

  .service-card .btn-svc {
    align-self: flex-start;
  }

  .footer .btn-xl-square {
    width: 44px;
    height: 44px;
    padding: 0 !important;
  }

  .footer .btn-xl-square i {
    font-size: 1.1rem !important;
  }
}

/* Phones */
@media (max-width: 767.98px) {
  .topbar {
    display: none !important;
  }

  .display-4,
  .display-5 {
    font-size: clamp(1.55rem, 7vw, 2.1rem) !important;
  }

  .mini-service {
    width: 72px;
    font-size: 0.65rem;
  }

  .mini-service span.icon {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }

  .service-card {
    padding: 1.25rem 1.1rem 1.35rem;
  }

  .service-icon-circle {
    width: 64px;
    height: 64px;
    font-size: 1.35rem;
  }

  .contact-person {
    flex-wrap: wrap;
  }

  .whatsapp-float {
    left: 12px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    width: 44px !important;
    height: 44px !important;
    right: 12px !important;
    bottom: 18px !important;
  }

  .header-carousel .owl-nav {
    display: none;
  }

  .calrousel-img {
    max-width: 280px;
    margin-inline: auto;
  }

  .d-flex.justify-content-center.justify-content-md-start.flex-shrink-0,
  .d-flex.justify-content-center.justify-content-md-end.flex-shrink-0 {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .d-flex.justify-content-center.justify-content-md-start.flex-shrink-0 .btn,
  .d-flex.justify-content-center.justify-content-md-end.flex-shrink-0 .btn {
    margin: 0 !important;
  }
}

/* Small phones */
@media (max-width: 575.98px) {

  .container,
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .mini-services {
    gap: 10px 8px;
  }

  .mini-service {
    width: 64px;
  }

  .tv-slogan-bar {
    padding: 12px 10px;
    letter-spacing: 0.02em;
  }

  .about-item-content,
  .bg-white.rounded.p-5 {
    padding: 1.25rem !important;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  .service-card,
  .mini-service,
  .whatsapp-float,
  .tv-rise {
    transition: none !important;
    animation: none !important;
  }

  .service-card:hover,
  .mini-service:hover {
    transform: none;
  }
}

/* ---------- Testimonial cards: equal width and height ---------- */
.testimonial-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.testimonial-carousel .owl-item {
  display: flex;
  float: none;
  height: auto;
}

.testimonial-item {
  width: 100%;
  height: 240px;
  min-height: 240px;
  max-height: 240px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.testimonial-item>.row {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.testimonial-item .col-8,
.testimonial-item .col-xl-9,
.testimonial-item .col-4,
.testimonial-item .col-xl-3 {
  display: flex;
}

.testimonial-item .col-8>div,
.testimonial-item .col-xl-9>div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.testimonial-item .col-8>div>p:last-child,
.testimonial-item .col-xl-9>div>p:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0 !important;
}

.testimonial-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 1rem;
}

.testimonial-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(0, 48, 120, 0.18);
  flex-shrink: 0;
}

.testimonial-avatar.av-navy {
  background: var(--tv-bank, #003078);
}

.testimonial-avatar.av-green {
  background: var(--tv-subsidy, #4C7C2C);
}

.testimonial-avatar.av-purple {
  background: var(--tv-insurance, #401468);
}

.testimonial-avatar.av-orange {
  background: var(--tv-college, #E46400);
}

.testimonial-avatar.av-teal {
  background: var(--tv-jobs, #0078A8);
}

.testimonial-avatar.av-maroon {
  background: var(--tv-govt, #94201C);
}

@media (max-width: 575.98px) {
  .testimonial-item {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
  }

  .testimonial-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.05rem;
  }

  .testimonial-avatar-wrap {
    padding: 0.75rem;
  }

  .testimonial-item .col-8>div>p:last-child,
  .testimonial-item .col-xl-9>div>p:last-child {
    -webkit-line-clamp: 5;
  }
}