/* ═══════════════════════════════════════════════════
   VARIABLES & BASE
═══════════════════════════════════════════════════ */
:root {
  --font-display: 'Syne', sans-serif;
  --font-body:    'Google Sans', sans-serif;
  --brand:        #902943;
  --brand-dark:   #ae0930;
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-body);
  background: #f5f5f5;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Syne', sans-serif;
}

.wrapper { overflow-x: hidden; }
.wrapper-content { padding-top: 0; }


/* ═══════════════════════════════════════════════════
   SHARED BUTTON
═══════════════════════════════════════════════════ */
.btn-brand {
  font-size: 18px;
  background-color: var(--brand);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  box-shadow: 0 3px 0 #797e84, 0 8px 10px #797e84;
}
.btn-brand:hover {
  background-color: #7a1e32;
  color: #fff;
}

/* .to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background-color: #aa0d34;
  color: #fff;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
  z-index: 999;
}
.to-top-btn:hover { background-color: #555; } */


/* ===== Back to Top Button ===== */
.to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #902943;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.to-top-btn:hover {
    background-color: #6f1d34;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .to-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}


/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.gradient-bg {
  background: linear-gradient(135deg, #d9d9d9 0%, #967881 40%, #9b5163 70%, #d9d9d9 100%);
  background-size: 400% 400%;
  animation: backgroundAnim 8s infinite alternate;
  overflow: hidden;
  position: relative;
}

@keyframes backgroundAnim {
  0%   { background-position: 0 0; }
  100% { background-position: 100% 0; }
}

.hero-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero {
  text-align: center;
  padding: 120px 20px 80px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #000;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  margin-top: 10px;
}

.hero-sub-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(41, 12, 12, 0.82);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
}

.typing-wrapper {
  display: inline-block;
  position: relative;
  text-align: left;
  min-width: auto;
  max-width: 90vw;
  white-space: normal;
  word-wrap: break-word;
}

.type-cursor {
  display: inline-block;
  font-weight: 300;
  animation: blink 0.9s step-end infinite;
  transition: opacity 0.8s ease;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Professional Hero Buttons - No Icons */
.hero-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Google Sans', 'DM Sans', sans-serif;
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 21;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Outline Button (Industries We Serve & Our Solutions) */
.hero-pill-btn:not(.hero-pill-cta) {
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.8);
  color: #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-pill-btn:not(.hero-pill-cta):hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* .hero-pill-btn:not(.hero-pill-cta):active {
  transform: translateY(1px);
} */

/* Primary CTA Button (Contact Us) */
.hero-pill-cta {
  background: #ae0930;
  border: 2px solid #ae0930;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(174, 9, 48, 0.3);
}

.hero-pill-cta:hover {
  background: #8a0726;
  border-color: #8a0726;
  /* transform: translateY(-2px); */
  box-shadow: 0 8px 20px rgba(174, 9, 48, 0.4);
}

/* .hero-pill-cta:active {
  transform: translateY(1px);
} */

/* Button group layout */
.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  position: relative;
  z-index: 20;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  
  .hero-pill-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
  }
}

.node-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.node {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.2s ease;
}

.node-connections { position: absolute; top: 0; left: 0; pointer-events: none; }

.connection-line {
  position: absolute;
  background: rgba(255,255,255,0.06);
  height: 0.5px;
  transform-origin: left center;
  pointer-events: none;
  transition: all 0.2s ease;
}


/* ═══════════════════════════════════════════════════
   MISSION STATEMENT
═══════════════════════════════════════════════════ */
.mission-statement {
  background: linear-gradient(135deg, #2a0a12 0%, #ae0930 70%, #2a0a12 100%);
  background-size: 300% 300%;
  animation: missionAnim 10s ease infinite alternate;
  padding: 80px 20px;
  overflow: hidden;
  position: relative;
}

@keyframes missionAnim {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.mission-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.mission-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.mission-q-top {
  position: relative;
  top: -20px;
  left: -20px;
  width: 45px;
  height: auto;
  display: block;
}

.mission-q-bottom {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 45px;
  height: auto;
  transform: rotate(180deg);
}

.mission-lead {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 20px;
}

.mission-body {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 16px;
}

.mission-close {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: rgba(255,255,255,0.55);
  font-style: italic;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════
   SOLUTION SECTION
═══════════════════════════════════════════════════ */
.sol-section {
  background: linear-gradient(135deg, #f0e8e8 0%, #e8c4c4 50%, #f0e8e8 100%);
  padding: 72px 0 88px;
}

.sol-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.sol-head {
  text-align: center;
  margin-bottom: 48px;
}

.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sol-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ae0930;
  background: rgba(174, 9, 48, 0.08);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.sol-h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2a2a6e;
  margin: 0 0 10px;
  line-height: 1.15;
}

.sol-h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #902943 0%, #b55d78 50%, #902943 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sol-card {
  position: relative;
  background: rgba(255, 255, 255, 0.40);
  border: 1px solid rgba(174, 9, 48, 0.12);
  border-radius: 18px;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.sol-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.sol-card:hover::before { transform: translateX(120%); }

.sol-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: 0 0 36px 0 var(--card-glow, rgba(174, 9, 48, 0.18));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.sol-card:hover {
  border-color: var(--card-border, rgba(174, 9, 48, 0.30));
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-4px);
}

.sol-card:hover::after { opacity: 1; }

.sol-icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.sol-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sol-card:hover .sol-icon-wrap {
  transform: scale(1.10) translateY(-3px);
  filter: drop-shadow(0 4px 10px var(--card-glow, rgba(174, 9, 48, 0.22)));
}

.sol-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(74, 10, 26, 0.70);
  line-height: 1.35;
  transition: color 0.25s ease;
}

.sol-card:hover .sol-label { color: #2a2a6e; }

.sol-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--card-color, #ae0930);
  margin-top: 2px;
  transform: scale(0);
  transition: transform 0.2s ease;
}

.sol-card:hover .sol-dot { transform: scale(1); }


/* ═══════════════════════════════════════════════════
   WHY US SECTION
═══════════════════════════════════════════════════ */
.why-us-wrapper {
  background: linear-gradient(135deg, #2a0a12 0%, #ae0930 70%, #2a0a12 100%);
  background-size: 300% 300%;
  animation: missionAnim 10s ease infinite alternate;
  padding: 80px 20px;
}

.why-us {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.why-us.visible {
  opacity: 1;
  transform: translateY(0);
}

.why-us-left, .why-us-right { flex: 1; }

.why-icon-img {
  width: 60px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.why-upper {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.why-us h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 12px;
}

.why-lower {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: rgba(255,255,255,0.55);
  font-style: italic;
  line-height: 1.7;
}

.testimonial-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 15px;
  padding: 30px;
  position: relative;
}

.testimonial-text {
  font-style: italic;
  color: rgba(255,255,255,0.75);
  text-align: justify;
  line-height: 1.8;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  margin: 0;
}

.test-top-icon {
  position: absolute;
  top: -15px;
  left: -15px;
  height: 45px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.test-heart-icon {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE (MERGED & CLEANED)
═══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .hero { padding: 100px 16px 60px; }
  .hero-heading { font-size: 1.8rem; padding: 0 10px; }
  .typing-wrapper { min-width: 280px; }
  
  .mission-statement { padding: 40px 16px; }
  .mission-q-top, .mission-q-bottom { width: 30px; }
  .mission-q-top { top: -10px; left: -10px; }
  .mission-q-bottom { bottom: -10px; right: -10px; }
  
  .sol-section { padding: 48px 0 64px; }
  .sol-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sol-card { padding: 20px 14px 16px; border-radius: 12px; }
  .sol-icon-wrap { width: 50px; height: 50px; }
  .sol-label { font-size: 0.78rem; }
  .sol-head { margin-bottom: 28px; }
  
  .why-us-wrapper { padding: 60px 20px; }
  .why-us { flex-direction: column; gap: 30px; padding: 0 16px; }
  .testimonial-box { padding: 20px; }
  .test-top-icon, .test-heart-icon { width: 30px; }
}

@media (max-width: 480px) {
  .typing-wrapper { min-width: 260px; }
  #typewriter { font-size: 0.9rem; }
  
  .hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-pill-btn { width: 80%; justify-content: center; }
  
  .sol-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }  /* ← CHANGED to 2 columns */
  .sol-card { padding: 16px 10px; font-family: "Google Sans", sans-serif; }
  .sol-icon-wrap { width: 56px; height: 56px; }
}

@media (max-width: 400px) {
  .sol-grid { gap: 8px; }
  .sol-card { padding: 12px 7px 10px; }
  .sol-icon-wrap { width: 42px; height: 42px; }
  .sol-label { font-size: 0.73rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sol-card,
  .sol-card::before,
  .sol-card::after,
  .sol-icon-wrap,
  .sol-label,
  .sol-dot,
  .to-top-btn,
  .btn-brand,
  .hero-pill-btn {
    transition-duration: 0.01ms !important;
  }
}

.mission-statement,
.why-us-wrapper {
  position: relative;
  overflow: hidden; /* already on mission, add to why-us-wrapper */
}