/* ==========================================================================
   Binary Digital Services — Home Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   Restricted palette — ONLY these colors are used site-wide:
     #262626  → all backgrounds
     #FFFFFF  → all text
     #D8FF99  → "What our Clients say" headings (and where required per screenshot)
     #9EFF00  → button backgrounds and icons
   Borders use #FFFFFF at low opacity so the screenshot grid layout stays visible.
   -------------------------------------------------------------------------- */
:root {
  --color-text-primary: #FFFFFF;
  --color-text-white: #FFFFFF;
  --color-text-muted: #FFFFFF;
  --color-text-dark: #262626;

  --color-accent: #9EFF00;
  --color-accent-hover: #9EFF00;

  --color-heading-accent: #D8FF99;

  /* Backgrounds — single shade */
  --color-bg-body: #262626;
  --color-bg-card: #262626;
  --color-bg-darker: #262626;
  --color-bg-input: #262626;
  --color-bg-pill: #262626;
  --color-bg-icon: #262626;
  --color-bg-footer-bar: #262626;

  /* Separators — white at low opacity to keep the grid visible */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-light: rgba(255, 255, 255, 0.15);

  --font-family: 'Barlow', sans-serif;

  --header-height: 80px;
  --section-padding-y: 80px;
  --container-max: 1320px;
}

/* --------------------------------------------------------------------------
   Base / Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-body);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--color-accent-hover);
  color: var(--color-text-dark);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
  transition: border-color 0.2s ease;
}

.btn-ghost:hover,
.btn-ghost:focus {
  border-color: var(--color-text-muted);
  color: var(--color-text-primary);
}

.btn-card {
  display: block;
  width: 100%;
  background-color: var(--color-bg-pill);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 8px;
  border: none;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn-card:hover {
  background-color: var(--color-bg-pill);
  color: var(--color-text-primary);
}

.btn-outline-sm {
  background-color: transparent;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.btn-outline-sm:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   Section Shared Styles
   -------------------------------------------------------------------------- */
/* Shared accent eyebrow — mirrors the hero eyebrow for a cohesive style */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(158, 255, 0, 0.08);
  border: 1px solid rgba(158, 255, 0, 0.3);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.section-eyebrow .eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-text-white);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title .title-accent {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Scroll Reveal Utilities
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.85;
}

.section-banner {
  padding: var(--section-padding-y) 0 60px;
}

/* Wavy background — swap image path when final asset is ready */
.bg-wavy {
  background-color: var(--color-bg-body);
  background-image: url('../images/backgrounds/wavy-pattern.svg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(38, 38, 38, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Solid, elevated state once the user scrolls */
.site-header.scrolled {
  background-color: rgba(38, 38, 38, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.header-container {
  max-width: var(--container-max);
  padding: 16px 40px;
  margin: 0 auto;
  transition: padding 0.3s ease;
}

.site-header.scrolled .header-container {
  padding-top: 12px;
  padding-bottom: 12px;
}

.header-logo {
  height: 40px;
  width: auto;
  transition: height 0.3s ease;
}

.site-header.scrolled .header-logo {
  height: 34px;
}

.navbar-toggler {
  border-color: var(--color-border-light);
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-links {
  gap: 4px;
}

.nav-links .nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 8px 18px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Animated accent underline */
.nav-links .nav-link::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-links .nav-link:hover {
  color: var(--color-accent);
}

.nav-links .nav-link:hover::after {
  transform: scaleX(1);
}

.nav-links .nav-link.active {
  color: var(--color-accent);
}

.nav-links .nav-link.active::after {
  transform: scaleX(1);
}

.btn-contact-header {
  padding: 10px 24px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Hero Section — Full-width Slider
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  background-color: var(--color-bg-body);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(158, 255, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 255, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 3;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* Individual slides — stacked and cross-faded */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Slide background image with a slow zoom (Ken Burns) on the active slide */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--slide-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
  z-index: 0;
}

.hero-slide.is-active::before {
  transform: scale(1.15);
}

/* Dark gradient overlay so text stays readable over any image */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 38, 38, 0.96) 0%, rgba(38, 38, 38, 0.85) 40%, rgba(38, 38, 38, 0.45) 75%, rgba(38, 38, 38, 0.25) 100%),
    linear-gradient(0deg, rgba(38, 38, 38, 0.7) 0%, rgba(38, 38, 38, 0) 45%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  padding: 140px 40px 120px;
  width: 100%;
}

.hero-content {
  max-width: 720px;
}

/* Entrance animation for the active slide's content */
.hero-eyebrow,
.hero-title,
.hero-subtitle,
.hero-buttons,
.hero-stats {
  opacity: 0;
  transform: translateY(24px);
}

.hero-slide.is-active .hero-eyebrow { animation: hero-rise 0.7s ease 0.15s forwards; }
.hero-slide.is-active .hero-title { animation: hero-rise 0.7s ease 0.3s forwards; }
.hero-slide.is-active .hero-subtitle { animation: hero-rise 0.7s ease 0.45s forwards; }
.hero-slide.is-active .hero-buttons { animation: hero-rise 0.7s ease 0.6s forwards; }
.hero-slide.is-active .hero-stats { animation: hero-rise 0.7s ease 0.75s forwards; }

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(158, 255, 0, 0.08);
  border: 1px solid rgba(158, 255, 0, 0.3);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(158, 255, 0, 0.2);
  animation: eyebrow-pulse 1.8s ease-in-out infinite;
}

@keyframes eyebrow-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(158, 255, 0, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(158, 255, 0, 0.05); }
}

.hero-title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  color: var(--color-text-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-title-accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 620px;
}

.pill-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-white);
  padding: 3px 14px;
  border-radius: 50px;
  font-weight: 500;
  margin: 3px 2px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-buttons .btn {
  padding: 14px 32px;
  font-size: 15px;
}

/* Hero stat strip */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-right: 40px;
}

.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  width: 1px;
  background-color: var(--color-border-light);
}

.stat-num {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-primary);
  opacity: 0.8;
}

/* Navigation arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(38, 38, 38, 0.55);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  color: var(--color-text-white);
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-arrow:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-dark);
}

.hero-arrow-prev { left: 28px; }
.hero-arrow-next { right: 28px; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  background-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.hero-dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.hero-dot.is-active {
  width: 34px;
  border-radius: 6px;
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Trusted By Section — Animated Logo Slider
   -------------------------------------------------------------------------- */
.trusted-section {
  padding: 48px 0 64px;
  background-color: var(--color-bg-body);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

.trusted-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.logo-slider {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-slider-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 64px;
  animation: logo-scroll 30s linear infinite;
}

.logo-slider:hover .logo-slider-track {
  animation-play-state: paused;
}

.logo-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.logo-slide img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  /* Logos are white-on-black PNGs — screen blend hides the black box on dark bg */
  mix-blend-mode: screen;
  opacity: 0.9;
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services-section {
  background-color: var(--color-bg-body);
}

.services-cards {
  border-top: 1px solid var(--color-border);
}

.service-card {
  padding: 48px 40px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services-cards .col-lg-4:last-child .service-card {
  border-right: none;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background-color: var(--color-bg-icon);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon {
  font-size: 22px;
  color: var(--color-accent);
}

.service-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 16px;
}

.service-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 32px;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   Why Choose Us Section
   -------------------------------------------------------------------------- */
.why-section {
  background-color: var(--color-bg-body);
}

.features-grid {
  border-top: 1px solid var(--color-border);
}

.feature-item {
  padding: 48px 40px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  height: 100%;
}

.features-grid .col-lg-6:nth-child(2n) .feature-item {
  border-right: none;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: var(--color-bg-icon);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  font-size: 20px;
  color: var(--color-accent);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-white);
}

.feature-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.7;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials-section {
  background-color: var(--color-bg-body);
}

.testimonials-grid {
  border-top: 1px solid var(--color-border);
}

.testimonial-card {
  padding: 40px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.testimonials-grid .col-lg-6:nth-child(2n) .testimonial-card {
  border-right: none;
}

.testimonial-headline {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--color-heading-accent);
  line-height: 1.4;
  margin-bottom: 16px;
}

.testimonial-body {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 32px;
  flex-grow: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--color-bg-darker);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: auto;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-white);
  line-height: 1.3;
}

.author-role {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq-section {
  background-color: var(--color-bg-body);
}

.faq-email {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-email:hover {
  color: var(--color-accent);
}

.faq-container {
  max-width: var(--container-max);
  padding: 0 40px 80px;
}

.faq-grid {
  border-top: 1px solid var(--color-border);
}

.faq-column {
  border-right: 1px solid var(--color-border);
}

.faq-column:last-child {
  border-right: none;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 28px 32px;
}

.faq-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.faq-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  background-color: var(--color-bg-pill);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-white);
  flex-shrink: 0;
}

.faq-question {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-white);
  text-align: left;
  line-height: 1.5;
  cursor: pointer;
  padding-top: 10px;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  font-size: 18px;
  color: var(--color-text-white);
  flex-shrink: 0;
}

.faq-answer {
  display: none;
  padding: 16px 0 0 68px;
}

.faq-answer p {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.7;
  opacity: 0.85;
}

/* Active FAQ state */
.faq-item.active .faq-number,
.faq-item.active .faq-question {
  color: var(--color-accent);
}

.faq-item.active .faq-toggle {
  color: var(--color-accent);
}

.faq-item.active .faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  background-color: var(--color-bg-body);
}

.cta-banner {
  padding: 80px 0 100px;
}

.cta-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 32px;
}

.cta-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--color-text-white);
  line-height: 1.3;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.7;
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto 36px;
}

.btn-cta {
  padding: 14px 36px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Contact Form Section
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 60px 0 80px;
  background-color: var(--color-bg-body);
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-form .form-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.contact-form .form-control {
  background-color: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  padding: 14px 18px;
}

.contact-form .form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.contact-form .form-control:focus {
  background-color: var(--color-bg-input);
  border-color: var(--color-border-light);
  color: var(--color-text-primary);
  box-shadow: none;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

/* Custom Checkboxes */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-primary);
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-checkbox .checkmark {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background-color: var(--color-bg-input);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-checkbox input:checked + .checkmark {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.custom-checkbox input:checked + .checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid var(--color-text-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.budget-hint {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* Budget Range Slider */
.budget-slider-wrap {
  padding: 10px 0 0;
}

.budget-slider {
  position: relative;
  height: 40px;
}

.slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--color-bg-pill);
  border-radius: 2px;
  transform: translateY(-50%);
}

.slider-range {
  position: absolute;
  height: 100%;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.budget-slider input[type="range"] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.budget-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background-color: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  border: 3px solid var(--color-bg-body);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.budget-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background-color: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  border: 3px solid var(--color-bg-body);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.budget-values {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.btn-submit {
  padding: 14px 48px;
  font-size: 15px;
  margin-top: 8px;
}

/* Form submission feedback message */
.form-status {
  display: none;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  color: var(--color-heading-accent);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-bg-body);
  border-top: 1px solid var(--color-border);
}

/* Top row — logo | nav | social, vertically centered on one line */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding: 36px 0;
}

.footer-brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 32px;
  flex: 1;
  min-width: 260px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.social-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-bg-icon);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-accent);
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.social-icons a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Bottom bar — contact info | copyright */
.footer-bottom {
  background-color: var(--color-bg-footer-bar);
  border-top: 1px solid var(--color-border);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
}

.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.footer-contact i {
  color: var(--color-accent);
  font-size: 14px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--color-text-muted);
  opacity: 0.7;
  margin: 0;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .header-container {
    padding: 14px 24px;
  }

  .navbar-collapse {
    padding-top: 16px;
  }

  .nav-links {
    margin-bottom: 16px !important;
  }

  .btn-contact-header {
    width: 100%;
    text-align: center;
  }

  .service-card,
  .feature-item {
    border-right: none;
  }

  .testimonials-grid .col-lg-6 .testimonial-card {
    border-right: none;
  }

  .faq-column {
    border-right: none;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-nav {
    justify-content: flex-start;
    flex: none;
    width: 100%;
  }

  .footer-social {
    width: 100%;
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  :root {
    --section-padding-y: 56px;
  }

  .header-container,
  .faq-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-container {
    padding: 120px 24px 110px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-buttons .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .hero-arrow-prev { left: 12px; }
  .hero-arrow-next { right: 12px; }

  .hero-stat {
    padding-right: 24px;
  }

  .hero-stat:not(:last-child)::after {
    right: 0;
  }

  .logo-slider-track {
    gap: 40px;
    animation-duration: 22s;
  }

  .logo-slide img {
    height: 28px;
    max-width: 110px;
  }

  .service-card,
  .feature-item,
  .testimonial-card,
  .faq-item {
    padding: 32px 24px;
  }

  .testimonial-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial-footer .btn-outline-sm {
    width: 100%;
    text-align: center;
  }

  .faq-answer {
    padding-left: 0;
  }

  .faq-header {
    gap: 12px;
  }

  .faq-number {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .faq-question {
    font-size: 15px;
    padding-top: 6px;
  }

  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-contact span {
    white-space: normal;
  }

  .footer-copyright {
    white-space: normal;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .pill-tag {
    display: inline;
    padding: 3px 10px;
  }

  .hero-stats {
    gap: 14px 24px;
  }

  .stat-num {
    font-size: 22px;
  }

  .hero-dots {
    bottom: 24px;
  }
}

/* Accessibility — pause logo slider if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .logo-slider-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 32px 48px;
  }

  .logo-slider {
    mask-image: none;
    -webkit-mask-image: none;
  }

  /* Hide duplicate set when animation is off */
  .logo-slide[aria-hidden="true"] {
    display: none;
  }

  /* Hero — disable Ken Burns zoom, content rise, and dot pulse */
  .hero-slide::before,
  .hero-slide.is-active::before {
    transform: none;
    transition: none;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-buttons,
  .hero-stats {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .eyebrow-dot {
    animation: none;
  }
}

/* ==========================================================================
   Sub-Pages (Contact / Services / Projects / About)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page Banner — top banner on every sub-page (offset for the fixed header)
   -------------------------------------------------------------------------- */
.page-banner {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 70px;
}

/* --------------------------------------------------------------------------
   Contact Page — info pills + meta row
   -------------------------------------------------------------------------- */
.contact-pills-section {
  padding: 40px 0 10px;
  background-color: var(--color-bg-body);
}

.contact-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-bg-pill);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  transition: border-color 0.2s ease;
}

.contact-pill i {
  color: var(--color-accent);
  font-size: 15px;
}

a.contact-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-text-primary);
}

.contact-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 800px;
  margin: 48px auto 0;
  padding: 20px 24px;
  background-color: var(--color-bg-pill);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.contact-meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-meta .meta-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-white);
}

.contact-meta .meta-value {
  font-size: 14px;
  color: var(--color-text-primary);
  background-color: var(--color-bg-body);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 16px;
}

.contact-meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   CTA Strip — shared bottom call-to-action card
   -------------------------------------------------------------------------- */
.cta-strip-section {
  padding: 40px 0 80px;
  background-color: var(--color-bg-body);
}

.cta-strip {
  background-color: var(--color-bg-pill);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px;
}

.cta-strip-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(158, 255, 0, 0.1);
  border: 1px solid rgba(158, 255, 0, 0.3);
  border-radius: 10px;
  margin-bottom: 24px;
}

.cta-strip-icon i {
  font-size: 24px;
  color: var(--color-accent);
}

.cta-strip-text {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 500;
  color: var(--color-text-white);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 900px;
}

.text-accent {
  color: var(--color-accent);
}

.cta-strip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background-color: var(--color-bg-body);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 24px;
}

.cta-strip-label {
  font-size: 15px;
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   Services Page — category blocks and service item grid
   -------------------------------------------------------------------------- */
.service-category-section {
  padding: 60px 0 20px;
  background-color: var(--color-bg-body);
}

.service-category-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.category-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.category-desc {
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.7;
  opacity: 0.85;
}

.service-items-grid {
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.service-item {
  height: 100%;
  padding: 32px 28px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.service-item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-icon);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 20px;
}

.service-item-icon i {
  font-size: 20px;
  color: var(--color-accent);
}

.service-item-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-white);
  margin-bottom: 10px;
}

.service-item-desc {
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.7;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Projects Page — project cards grid
   -------------------------------------------------------------------------- */
.projects-section {
  padding: 60px 0 20px;
  background-color: var(--color-bg-body);
}

.projects-group-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 36px;
  letter-spacing: -0.02em;
}

.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-pill);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: rgba(158, 255, 0, 0.4);
  transform: translateY(-4px);
}

.project-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-bg-body);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
  padding: 28px;
}

.project-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: rgba(158, 255, 0, 0.08);
  border: 1px solid rgba(158, 255, 0, 0.3);
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-white);
  margin-bottom: 12px;
  line-height: 1.4;
}

.project-desc {
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   About Page — intro + story grid
   -------------------------------------------------------------------------- */
.about-intro-section {
  padding: 70px 0 40px;
  background-color: var(--color-bg-body);
}

.about-intro-title {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-intro-text {
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 16px;
}

.about-intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-pill);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 60px 40px;
}

.about-logo {
  max-width: 260px;
  width: 100%;
}

.story-section {
  padding: 50px 0 20px;
  background-color: var(--color-bg-body);
}

.story-heading {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.story-grid {
  border-top: 1px solid var(--color-border);
}

.story-item {
  height: 100%;
  display: flex;
  gap: 28px;
  padding: 44px 36px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.story-grid .col-lg-6:nth-child(2n) .story-item {
  border-right: none;
}

.story-number {
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.story-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-white);
  margin-bottom: 12px;
}

.story-desc {
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.7;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Sub-Pages — responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .story-item {
    border-right: none;
  }
}

@media (max-width: 767.98px) {
  .page-banner {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
  }

  .contact-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-pill {
    justify-content: center;
  }

  .contact-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-strip {
    padding: 28px 22px;
  }

  .cta-strip-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .service-item {
    padding: 26px 20px;
  }

  .story-item {
    flex-direction: column;
    gap: 14px;
    padding: 32px 22px;
  }
}
