/* ============================================================
   BRANCH TECHNICAL MERIT — style.css
   Custom rules only; all utility styling lives in Tailwind.
   ============================================================ */

/* ── Fonts & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── Tailwind custom config colours injected via CDN ──
   (defined in tailwind.config inside index.html)
   Primary:    #7B1113  (btm-red)
   Dark:       #4A0000  (btm-dark)
   Light:      #B91C1C  (btm-red-lt)
   Accent:     #F5F5F5  (btm-off)
   Text grey:  #6B7A90  (btm-grey)
*/

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: #fff;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  height: 60px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  background: #fff;
}

/* ── Nav logo text ── */
.nav-logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.nav-logo-tag {
  font-size: 1rem;
  color: #fca5a5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Nav links underline effect ── */
.nav-link {
  position: relative;
  color: #7B1113;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fca5a5;
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav-link:hover {
  color: #000;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* ── Mobile nav ── */
.mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2d0000;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  transition: color 0.25s;
}

.mobile-nav a:hover {
  color: #fca5a5;
}

/* ── Hero ── */
.hero-section {
  min-height: 100vh;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Full-width banner */
.hero-banner {
  width: 100%;
  height: 90vh;
  position: relative;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(74, 0, 0, 0.55) 0%,
      rgba(74, 0, 0, 0.3) 50%,
      rgba(74, 0, 0, 0.75) 100%);
}

.hero-banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* Hero content below banner */
.hero-content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 5%;
  background: #fff;
}

/* ── Section labels & titles ── */
.section-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #7B1113;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #2d0000;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.section-title-white {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.section-sub {
  color: #6B7A90;
  max-width: 580px;
  margin-bottom: 3rem;
  font-size: 1.02rem;
  line-height: 1.72;
}

/* ── Divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 17, 19, 0.2), transparent);
}

/* ── Hero stat items ── */
.hero-stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #7B1113;
  line-height: 1;
}

.hero-stat-label {
  font-size: 1rem;
  color: #6B7A90;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.15rem;
}

/* ── About image wrap ── */
.about-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(74, 0, 0, 0.15);
  aspect-ratio: 4/3;
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: #7B1113;
  color: #fff;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  text-align: center;
  box-shadow: 0 8px 24px rgba(74, 0, 0, 0.25);
}

.about-badge .badge-year {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge .badge-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Service cards ── */
.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  border: 1px solid rgba(123, 17, 19, 0.1);
  box-shadow: 0 4px 24px rgba(123, 17, 19, 0.06);
  transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7B1113, #B91C1C);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(123, 17, 19, 0.14);
  border-color: #7B1113;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.28s;
}

.service-card:hover .service-icon-wrap {
  background: #7B1113;
}

.service-icon-wrap svg {
  width: 24px;
  height: 24px;
  stroke: #7B1113;
  transition: stroke 0.28s;
}

.service-card:hover .service-icon-wrap svg {
  stroke: #fff;
}

.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #2d0000;
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

.service-card p {
  font-size: 1rem;
  color: #6B7A90;
  line-height: 1.65;
}

.service-bullet {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7B1113;
  flex-shrink: 0;
}

/* ── Project cards ── */
.project-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(123, 17, 19, 0.1);
  box-shadow: 0 4px 24px rgba(123, 17, 19, 0.06);
  transition: transform 0.28s, box-shadow 0.28s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7B1113, #B91C1C);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(123, 17, 19, 0.14);
}

.project-meta-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 0.25rem;
}

.project-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2d0000;
  margin-bottom: 1.1rem;
  line-height: 1.1;
}

.project-scope {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1.1rem;
  line-height: 1.45;
}

.project-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #7B1113;
}

/* ── Policy cards ── */
.policy-card {
  background: #2d0000;
  border-radius: 14px;
  padding: 2.5rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s;
}

.policy-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.policy-card:hover {
  transform: translateY(-5px);
}

.policy-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.policy-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  color: #fca5a5;
  margin-bottom: 0.8rem;
}

.policy-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.policy-point {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.policy-point::before {
  content: '→';
  color: #fca5a5;
  font-size: 1rem;
  margin-top: 0.05rem;
  flex-shrink: 0;
}

.policy-point span {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Client cards ── */
.client-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.6rem 1rem;
  border: 1px solid rgba(123, 17, 19, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
  box-shadow: 0 2px 10px rgba(123, 17, 19, 0.05);
}

.client-card:hover {
  box-shadow: 0 8px 24px rgba(123, 17, 19, 0.12);
  border-color: #7B1113;
  transform: translateY(-3px);
}

.client-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d0000;
  text-align: center;
}

.client-sub {
  font-size: 1rem;
  color: #6B7A90;
  text-align: center;
  margin-top: 0.3rem;
}

/* ── Team cards ── */
.team-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid rgba(123, 17, 19, 0.08);
  box-shadow: 0 4px 24px rgba(123, 17, 19, 0.06);
  transition: transform 0.28s, box-shadow 0.28s;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7B1113, #B91C1C);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(123, 17, 19, 0.14);
}

/* ── vmp cards ── */
.vmp-card {
  background: #fff5f5;
  border-radius: 10px;
  padding: 1.4rem;
  border-left: 3px solid #7B1113;
}

.vmp-card h4 {
  font-size: 1rem;
  color: #7B1113;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.vmp-card p {
  font-size: 1rem;
  color: #6B7A90;
  line-height: 1.6;
}

.vmp-card ul {
  margin-top: 0.4rem;
}

.vmp-card li {
  font-size: 1rem;
  color: #6B7A90;
  line-height: 1.65;
  padding-left: 0.9rem;
  position: relative;
}

.vmp-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #7B1113;
}

/* ── Contact form ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 1rem;
  font-weight: 700;
  color: #2d0000;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-input {
  padding: 0.78rem 1rem;
  border: 1.5px solid rgba(74, 0, 0, 0.18);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #2d0000;
  background: #fff;
  outline: none;
  width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-input:focus {
  border-color: #7B1113;
  box-shadow: 0 0 0 3px rgba(123, 17, 19, 0.1);
}

.form-input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ── Floating CTA ── */
.float-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
}

.float-call {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  background: #7B1113;
  color: #fff;
  box-shadow: 0 8px 24px rgba(123, 17, 19, 0.35);
  transition: background 0.25s, transform 0.25s;
  border: none;
  cursor: pointer;
}

.float-call:hover {
  background: #B91C1C;
  transform: scale(1.05);
}

.float-call svg {
  width: 18px;
  height: 18px;
}

/* ── Gallery image hover ── */
.gallery-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(123, 17, 19, 0.08);
}

.gallery-img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(123, 17, 19, 0.2);
}

/* ── Footer ── */
.footer-link {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.25s;
}

.footer-link::before {
  content: '›';
  color: #fca5a5;
}

.footer-link:hover {
  color: #fca5a5;
}

/* ── Marquee ── */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-track {
  animation: marquee 22s linear infinite;
  will-change: transform;
}

/* ── Pulse dot ── */
@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fca5a5;
  animation: pulse-dot 2s infinite;
}

/* ── Scroll reveal (JS applied) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .about-visual {
    order: -1;
  }

  .about-badge {
    right: 1rem;
  }
}

@media (max-width: 900px) {
  .hero-content-row {
    grid-template-columns: 1fr !important;
  }

  .hero-right-cards {
    display: none !important;
  }

  .policy-grid {
    grid-template-columns: 1fr !important;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {

  /* Reduce massive section padding on mobile */
  section.py-28,
  section.py-20,
  section.py-16 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .hero-section {
    padding-top: 70px !important;
  }

  /* Restore hero offset */

  .desktop-nav {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
  }

  .vmp-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .clients-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .footer-bottom-row {
    flex-direction: column !important;
    gap: 0.8rem;
    text-align: center;
  }

  .hero-banner {
    height: 85vh;
  }

  /* Make sure titles are appropriately sized on mobile */
  .section-title,
  .section-title-white {
    font-size: 2.2rem !important;
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr !important;
  }

  .stats-row {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .stats-row .w-px {
    display: none;
  }

  /* Hide vertical dividers on mobile stats */
  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .hero-banner-text {
    padding: 1rem;
  }
}