/* ============================================================
   NOWCOM — Home Page Styles
   ============================================================ */

/* ── Hero ── */
.home-hero {
  min-height: 640px;
  background: #FBFBFC;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.home-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.hero-content {
  padding: 80px 0;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27,79,202,0.08);
  color: var(--color-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '★';
  font-size: 11px;
}

.hero-heading {
  font-family: 'Inter', var(--font-primary), sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #101828;
  margin-bottom: 24px;
}
.hero-heading .blue { color: #155dfc; }

.hero-text {
  font-family: 'Inter', var(--font-primary), sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #4a5565;
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: #155dfc;
  color: #fff;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: 'Inter', var(--font-ui), sans-serif;
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition);
}
.btn-hero-primary:hover { background: #1340a8; transform: translateY(-1px); }

.btn-hero-secondary {
  background: transparent;
  color: #101828;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: 'Inter', var(--font-ui), sans-serif;
  font-size: 16px;
  font-weight: 500;
  border: 2px solid var(--color-border);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-hero-secondary:hover { border-color: #155dfc; color: #155dfc; transform: translateY(-1px); }

.hero-visual {
  position: relative;
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 4rem;
}
.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(21,93,252,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-terminal {
  position: relative;
  width: 420px;
  background: #101828;
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
  overflow: hidden;
}
.terminal-titlebar {
  background: #1e2939;
  border-bottom: 1px solid #364153;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.terminal-dot.red   { background: #fb2c36; }
.terminal-dot.yellow{ background: #f0b100; }
.terminal-dot.green { background: #00c950; }
.terminal-tab {
  font-family: var(--font-ui);
  font-size: 12px;
  color: #8899aa;
  margin-left: 8px;
}
.terminal-body {
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.7;
  min-height: 260px;
}
.t-comment { color: #4a5565; }
.t-keyword  { color: #155dfc; }
.t-string   { color: #00c950; }
.t-function { color: #f0b100; }
.t-text     { color: #99a1af; }
.t-cursor   {
  display: inline-block;
  width: 8px; height: 14px;
  background: #155dfc;
  animation: blink 1.2s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Logos ticker ── */
.full-width-section {
  padding-left: 0;
  padding-right: 0;
}
.specialty-intro.full-width-section,
.product-section.full-width-section {
  padding-left: 0;
  padding-right: 0;
}
.full-width-section .container {
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.logos-ticker {
  overflow: hidden;
  padding: 20px 0;
}
.logos-track {
  display: flex;
  gap: 32px;
  width: max-content;
  transform: translateZ(0);
  animation: service-marquee 17s linear infinite;
  will-change: transform;
}
.logos-ticker:hover .logos-track { animation-play-state: paused; }

.logo-item {
  height: 180px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: filter var(--transition);
}

/* ── Our Specialty ── */
.specialty-intro,
.product-section {
  background: #FFF;
  text-align: center;
  padding: 40px var(--container-pad);
}
.specialty-intro h2,
.product-section h2 {
  font-weight: 700;
  margin-bottom: 20px;
}
.specialty-intro h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}
.product-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.specialty-intro p,
.product-section p.compact-p {
  max-width: 1080px;
}
.specialty-intro p,
.product-section p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--color-text-light);
  margin: 0 auto;
  line-height: 1.75;
}
.product-section .btn {
  display: inline-flex;
  min-width: 283px;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  margin: 36px auto 0;
}
.product-section .container {
  border-radius: 48px;
  background: #F9FAFB;
  padding: 48px 64px;
}
.rive-animation-container {
  margin-top: 36px;
  width: 100%;
  max-width: 1200px;   /* default / large desktop */
  aspect-ratio: 16 / 9;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1920px) {
  .rive-animation-container { max-width: 1280px; }
}

@media (min-width: 1440px) and (max-width: 1919px) {
  .rive-animation-container { max-width: 1100px; }
}

@media (max-width: 1200px) {
  .rive-animation-container { max-width: 900px; }
}

@media (max-width: 1024px) {
  .rive-animation-container { max-width: 760px; }
}

@media (max-width: 768px) {
  .rive-animation-container { max-width: 100%; }
}
.rive-animation-container canvas,
.rive-animation-container iframe,
.rive-animation-container > * {
  width: 100% !important;
  height: 100% !important;
}


/* ── Specialty product rows ── */
.specialty-section {
  padding: 0;
}
.specialty-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 440px;
}
.specialty-row.row-alt .specialty-text { order: 1; }
.specialty-row.row-alt .specialty-img  { order: 2; }

.specialty-text {
  padding: 64px 56px 64px var(--container-pad);
  max-width: 640px;
  margin-left: auto;
}
.specialty-row.row-alt .specialty-text {
  padding: 64px var(--container-pad) 64px 56px;
  margin-left: 0;
}

.specialty-text h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}
.specialty-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-light);
  margin-bottom: 28px;
}
.specialty-img {
  background: var(--color-bg-light);
  height: 100%;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px;
}
.specialty-img img {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
.row-dark-bg .specialty-img {
  background: #1a1f2e;
}

/* ── Call Center ── */
.call-center-section {
  background: var(--color-bg-light);
  padding: 80px 0;
  text-align: center;
}
.call-center-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.call-center-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.call-center-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.call-center-card .cc-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: rgba(27,79,202,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
}
.call-center-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.call-center-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ── Service Slider (marquee) ── */
.service-slider-container {
  overflow: hidden;
  width: 100%;
  cursor: default;
  margin-top: 36px;
  padding: 10px 0 15px;
}
.service-slider {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: service-marquee 17s linear infinite;
  will-change: transform;
}
@keyframes service-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.service-slide {
  display: flex;
  max-width: 400px;
  min-height: 250px;
  height: auto;
  padding: 34px;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-radius: 16px;
  background: #FFF;
  box-shadow: var(--shadow-card, 0 2px 16px rgba(0,0,0,.08));
  flex-shrink: 0;
}
.service-slide span {
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-slide span img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.service-slide h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  text-align: left;
}
.service-slide p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin: 0;
  text-align: left;
}

/* ── Feature Image Gallery ── */
.feature-image-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 24px 0 48px;
}
.feature-image {
  position: relative;
  flex-shrink: 0;
  width: clamp(90px, 26.6vw, 420px);
  height: clamp(58px, 17.1vw, 270px);
  margin-right: max(-170px, -10.8vw);
  border-radius: 8px;
  border: clamp(2px, 0.4vw, 6px) solid #FFF;
  background-color: lightgray;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: -2px 12px 30.6px 0 rgba(0, 0, 0, 0.13);
  transform: scale(0.72);
  z-index: 1;
  transition: transform 0.5s ease, z-index 0s;
}
.feature-image:last-child {
  margin-right: 0;
}
.feature-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: rgba(211, 211, 211, 0.5);
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.feature-image.active::before {
  opacity: 0;
}

/* ── Websites ── */
.websites-section {
  padding: 80px 0;
  overflow: hidden;
}
.websites-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.website-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  aspect-ratio: 16/10;
  background: var(--color-bg-light);
}
.website-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.website-card img { width: 100%; height: 100%; object-fit: cover; }

/* ── Recent Projects ── */
.projects-section {
  background: var(--color-bg-light);
  padding: 80px 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}
.project-card {
  background: #f9fafb;
  border-radius: 48px;
  overflow: hidden;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.project-card-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: visible;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.project-card-photo {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.project-card-image > img,
.project-card-photo > img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}
.project-card-image:hover .project-card-photo > img {
  transform: scale(3.0);
}
.project-card p {
  font-size: 0.95rem;
  color: #4a5565;
  line-height: 1.7;
  text-align: left;
}
.project-card-badge {
  position: absolute;
  bottom: -18px;
  left: 0px;
  display: inline-block;
  padding: 6px;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 7px 5px 16.6px 0 rgba(0, 0, 0, 0.25);
  line-height: 0;
  padding: 12px;
  z-index: 2;

}
.project-card-badge.tbos-badge {
  padding: 0px;
}
.project-card-badge img {
  height: 42px;
  max-width: 100%;
  width: auto;
  display: block;
}
.project-card-badge.tbos-badge img {
  height: 70px;
}

/* ── Hankey Clients ── */
.clients-section {
  padding: 80px 0;
  text-align: center;
}
.clients-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 48px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 16px;
  align-items: center;
  justify-items: center;
}
.client-logo {
  height: 48px;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter var(--transition);
}
.client-logo:hover { filter: grayscale(0) opacity(1); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .product-section .container { padding: 40px 40px; border-radius: 32px; }
  .home-hero            { min-height: auto; }
  .home-hero .container { grid-template-columns: 1fr; }
  .hero-visual          { display: none; }
  .hero-content         { padding: 60px 0; max-width: 100%; }
  .specialty-row        { grid-template-columns: 1fr; }
  .specialty-row.row-alt .specialty-text { order: 2; }
  .specialty-row.row-alt .specialty-img  { order: 1; }
  .specialty-text       { padding: 40px var(--container-pad); max-width: 100%; margin: 0; }
  .specialty-row.row-alt .specialty-text { padding: 40px var(--container-pad); }
  .specialty-img        { min-height: 280px; }
  .call-center-grid     { grid-template-columns: repeat(2, 1fr); }
  .websites-gallery     { grid-template-columns: repeat(2, 1fr); }
  .projects-grid        { grid-template-columns: repeat(2, 1fr); }
  .clients-grid         { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .product-section .container { padding: 32px 24px; border-radius: 24px; }
  .product-section .btn { min-width: 0; width: 100%; }
  .service-slide { min-width: 75vw; max-width: 80vw; }
  .service-slider { animation-duration: 30s; }
  .call-center-grid  { grid-template-columns: 1fr 1fr; }
  .projects-grid     { grid-template-columns: 1fr; }
  .clients-grid      { grid-template-columns: repeat(3, 1fr); }
  .websites-gallery  { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-section .container { padding: 24px 16px; border-radius: 16px; }
  .product-section .btn { min-width: 0; width: 100%; }
  .service-slide { min-width: 70vw; max-width: 80vw; }
  .service-slider { animation-duration: 35s; }
  .call-center-grid  { grid-template-columns: 1fr; }
  .clients-grid      { grid-template-columns: repeat(2, 1fr); }
  .hero-actions      { flex-direction: column; }
}
