/* Trilink Holdings — Custom Stylesheet (Strict Zero-SVG Policy) */
:root {
  --trilink-dark: #0E131D;
  --trilink-darker: #090D14;
  --trilink-amber: #F59E0B;
  --trilink-gold: #FACC15;
  --trilink-orange: #EA580C;
  --trilink-bg: #F7F8FA;
  --trilink-ink: #111827;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--trilink-bg);
  color: var(--trilink-ink);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-main, .brand-sub {
  font-family: 'Poppins', 'Inter', sans-serif;
}

/* Override Bootstrap defaults that use SVG data URIs so ZERO SVG exists anywhere */
.navbar-toggler-icon,
.form-select,
.form-check-input,
.btn-close,
.accordion-button::after,
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none !important;
}

.dropdown-toggle::after {
  display: none !important;
}

.small-chevron {
  font-size: 10px;
  color: #64748b;
}

.text-amber {
  color: var(--trilink-amber) !important;
}

.text-orange {
  color: var(--trilink-orange) !important;
}

.bg-footer-dark {
  background-color: var(--trilink-dark) !important;
}

/* Top Utility Bar */
.top-utility-bar {
  background-color: var(--trilink-dark);
  color: #E2E8F0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-link {
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.utility-link:hover {
  color: var(--trilink-amber);
}

.lang-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94A3B8;
  cursor: pointer;
}

.lang-item.active {
  color: #FFFFFF;
  font-weight: 600;
}

/* Pure CSS Flags (Zero SVG) */
.flag-uk {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background:
    linear-gradient(to right, transparent 42%, #FFFFFF 42%, #FFFFFF 58%, transparent 58%),
    linear-gradient(to bottom, transparent 36%, #FFFFFF 36%, #FFFFFF 64%, transparent 64%),
    linear-gradient(to right, transparent 45%, #CF142B 45%, #CF142B 55%, transparent 55%),
    linear-gradient(to bottom, transparent 42%, #CF142B 42%, #CF142B 58%, transparent 58%),
    linear-gradient(29deg, transparent 45%, #FFFFFF 45%, #FFFFFF 55%, transparent 55%),
    linear-gradient(-29deg, transparent 45%, #FFFFFF 45%, #FFFFFF 55%, transparent 55%),
    #00247D;
}

.flag-lk {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  border: 1.5px solid #FFBE29;
  background: linear-gradient(
    to right,
    #00534E 0%, #00534E 20%,
    #EB7400 20%, #EB7400 40%,
    #FFBE29 40%, #FFBE29 45%,
    #8D153A 45%, #8D153A 100%
  );
}

/* Pure CSS Geometric Trilink Triangle Logo (Zero SVG) */
.trilink-emblem {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.trilink-emblem-sm {
  width: 44px;
  height: 38px;
}

.trilink-emblem-lg {
  width: 68px;
  height: 58px;
}

.trilink-emblem-outer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #FBBF24 0%, #F59E0B 60%, #D97706 100%);
  clip-path: polygon(50% 2%, 98% 96%, 2% 96%);
}

.trilink-emblem-cut {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 22%, 82% 84%, 18% 84%);
}

.trilink-emblem-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #F59E0B 0%, #EA580C 100%);
  clip-path: polygon(50% 38%, 68% 74%, 32% 74%);
}

.trilink-emblem-core {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 54%, 58% 70%, 42% 70%);
}

.trilink-emblem-link {
  position: absolute;
  left: 34%;
  right: 34%;
  bottom: 18%;
  height: 11%;
  background: #F59E0B;
}

.brand-main {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--trilink-ink);
}

.brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--trilink-amber);
  margin-top: 2px;
}

/* Buttons */
.btn-amber-grad,
.nav-home-active {
  background: linear-gradient(180deg, #FBBF24 0%, #F59E0B 60%, #EA8A08 100%) !important;
  color: #111827 !important;
  border: none;
}

.btn-orange-grad {
  background: linear-gradient(180deg, #FBB017 0%, #F5920A 55%, #E87A04 100%) !important;
  color: #FFFFFF !important;
  border: none;
}

.btn-orange-grad:hover,
.btn-amber-grad:hover {
  filter: brightness(1.05);
}

/* Hero Banner */
.hero-banner {
  position: relative;
  min-height: 430px;
  background-color: #0B1220;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: right center;
  display: flex;
  align-items: center;
  padding: 44px 0 78px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 14, 26, 0.94) 0%,
    rgba(10, 18, 34, 0.85) 36%,
    rgba(12, 22, 40, 0.4) 60%,
    rgba(12, 22, 40, 0.08) 100%
  );
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.09;
  color: #FFFFFF;
}

.hero-title .text-gold {
  color: var(--trilink-gold);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-feature-item:last-child {
  border-right: none;
}

/* Floating Search Bar */
.floating-search-wrap {
  margin-top: -38px;
  position: relative;
  z-index: 20;
}

.floating-search-bar {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 999px;
  padding: 8px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

@media (max-width: 767.98px) {
  .floating-search-bar {
    border-radius: 18px;
  }
}

.search-field-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  position: relative;
}

/* Section Accent Bar */
.section-accent-bar {
  display: inline-block;
  width: 5px;
  height: 24px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FBBF24 0%, #F59E0B 100%);
  flex-shrink: 0;
}

/* Category Cards */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--trilink-ink);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--trilink-amber);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  color: var(--trilink-ink);
}

.category-thumb {
  width: 100%;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-more-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1F2937;
}

/* Listing Cards */
.listing-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
}

.listing-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
  border-color: #FCD34D;
}

.listing-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #F1F5F9;
}

.listing-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-featured {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--trilink-amber);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.btn-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.btn-wishlist.active {
  background: var(--trilink-orange);
}

.listing-price {
  color: var(--trilink-orange);
  font-weight: 800;
  font-size: 14px;
}

/* Middle 3-Column Showcase */
.mid-showcase-strip {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  overflow: hidden;
}

.sri-lanka-map-box {
  position: relative;
  min-height: 365px;
  background: #B5E2FA;
  overflow: hidden;
}

.sri-lanka-map-canvas {
  position: absolute;
  inset: 0;
  transition: transform 0.25s ease;
  transform-origin: 42% 65%;
}

.sri-lanka-map-canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.css-map-pin {
  position: absolute;
  transform: translate(-50%, -100%) rotate(-45deg);
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #FBBF24 0%, #EA580C 100%);
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.css-map-pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
}

.map-overlay-card {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 18px;
  max-width: 225px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.why-tile {
  background: #FFFDF9;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  height: 100%;
}

.promo-sunset-wrap {
  position: relative;
  overflow: visible;
}

.promo-sunset-box {
  position: relative;
  min-height: 350px;
  background: #120E09;
  overflow: hidden;
}

.promo-sunset-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-sunset-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 4, 0.35) 0%, rgba(10, 10, 12, 0.90) 100%);
}

.promo-content-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.promo-title {
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (min-width: 992px) {
  .promo-sunset-wrap {
    position: relative;
    margin-left: -18px;
    z-index: 5;
  }
  .promo-gold-stripe {
    position: absolute;
    inset: 0;
    left: -5px;
    width: calc(100% + 5px);
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 60%, #D97706 100%);
    clip-path: polygon(26px 0%, 100% 0%, 100% 100%, 0% 100%);
    border-radius: 0 16px 16px 0;
    pointer-events: none;
  }
  .promo-sunset-box {
    clip-path: polygon(28px 0%, 100% 0%, 100% 100%, 3px 100%);
    padding-left: 48px !important;
    padding-right: 20px !important;
    border-radius: 0 16px 16px 0;
  }
}

@media (max-width: 991.98px) {
  .promo-sunset-wrap {
    margin-top: 16px;
    padding: 0 12px;
  }
  .promo-sunset-box {
    border-radius: 16px;
    clip-path: none !important;
    padding: 32px 24px !important;
    min-height: 240px;
    border-left: 5px solid #F59E0B;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  .promo-gold-stripe {
    display: none !important;
  }
}

/* Pricing Cards */
.pricing-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card-popular {
  background: #FFFBF2;
  border: 2px solid var(--trilink-amber);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.18);
}

.popular-pill {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--trilink-amber);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Testimonials */
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
}

.testimonial-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #F1F5F9;
}

/* Footer */
.trilink-footer {
  background-color: var(--trilink-dark);
  color: #CBD5E1;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-list li {
  margin-bottom: 8px;
  font-size: 13.5px;
}

.footer-list a {
  color: #CBD5E1;
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--trilink-amber);
}

.social-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--trilink-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-circle:hover {
  background: var(--trilink-amber);
  color: #FFFFFF;
}

.footer-gold-line {
  height: 4px;
  background: linear-gradient(90deg, #D97706 0%, #FBBF24 50%, #F59E0B 100%);
}

.footer-bottom {
  background-color: var(--trilink-darker);
  color: #CBD5E1;
}

/* ==========================================================================
   Comprehensive Responsive Enhancements
   ========================================================================== */

/* Tablet & Mobile (Below 992px) */
@media (max-width: 991.98px) {
  .hero-banner {
    padding-top: 50px;
    padding-bottom: 70px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }
  .floating-search-wrap {
    margin-top: -30px;
    padding: 0 12px;
  }
  .floating-search-bar {
    border-radius: 16px;
    padding: 12px;
  }
  .search-field-group {
    border-right: none !important;
    border-bottom: 1px solid #E2E8F0;
    padding: 8px 10px;
  }
  .mid-showcase-strip .row {
    row-gap: 20px;
  }
  .sri-lanka-map-box {
    min-height: 320px;
    border-radius: 16px;
    margin: 0 12px;
  }
  .sri-lanka-map-canvas {
    border-radius: 16px;
  }
  .why-tile {
    padding: 12px 8px;
  }
}

/* Small Mobile (Below 576px) */
@media (max-width: 575.98px) {
  .top-utility-bar {
    font-size: 11px;
  }
  .top-utility-bar .utility-link {
    font-size: 11px;
  }
  .hero-feature-item {
    border-right: none;
    padding-right: 0;
    width: 100%;
    margin-bottom: 6px;
  }
  .category-thumb {
    width: 48px;
    height: 48px;
  }
  .listing-card .listing-img-wrap {
    height: 160px;
  }
  .listing-card .listing-img-wrap img {
    height: 160px;
  }
  .map-overlay-card {
    padding: 12px;
    max-width: 190px;
  }
  .map-overlay-card h3 {
    font-size: 13px;
  }
  .promo-sunset-box {
    padding: 24px 18px !important;
    min-height: 220px;
  }
  .promo-title {
    font-size: 1.15rem;
  }
  #bankSlipModal .modal-body {
    padding: 12px;
  }
  #modalSlipImage {
    max-height: 360px;
  }
}

/* Touch targets & smooth wrapping */
.btn, .form-select, .form-control {
  min-height: 42px;
}
.btn-sm {
  min-height: 32px;
}
img {
  max-width: 100%;
  height: auto;
}

