/*
Theme Name: Hexdata Technologies Custom Theme
Theme URI: https://hexdatatechnologies.com
Description: Custom enterprise website theme for Hexdata Technologies.
Version: 1.1
Author: Hexdata Technologies
Text Domain: hexdata-theme
*/

:root {
  --hex-dark: #050B14;
  --hex-blue: #2563EB;
  --hex-slate: #64748B;
  --hex-bg: #FFFFFF;
  --hex-section-light: #F8FAFC;
  --hex-border: rgba(5, 11, 20, 0.08);
  --hex-muted: #94A3B8;
  --hex-footer: #050B14;
  --hex-radius: 8px;
  --hex-shadow: 0 10px 30px rgba(5, 11, 20, 0.05);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--hex-dark);
  background: var(--hex-bg);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1400px, calc(100% - 16%));
  margin: 0 auto;
}

/* Header */

.site-header-custom {
  min-height: 88px;
  padding: 18px 8%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--hex-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 220px;
}

.site-logo {
  height: clamp(42px, 4vw, 68px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.header-nav-custom {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  flex-wrap: wrap;
}

.header-nav-custom a {
  color: var(--hex-slate);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.header-nav-custom a:hover,
.header-nav-custom a.active {
  color: var(--hex-dark);
}

.btn-nav,
.btn-nav:visited {
  background: var(--hex-dark);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
  display: inline-block;
}

/* Buttons */

.btn-nav-blue,
.btn-nav-blue:visited {
  background: var(--hex-blue);
  color: #fff !important;
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 48px;
}

.btn-secondary,
.btn-secondary:visited {
  color: var(--hex-dark) !important;
  font-weight: 800;
  border-bottom: 2px solid var(--hex-blue);
  padding-bottom: 4px;
  background: transparent !important;
  border-radius: 0 !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  color: var(--hex-blue) !important;
  opacity: 0.85;
}

/* Typography */

.eyebrow {
  color: var(--hex-blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 4px;
  margin: 0 0 20px 0;
  display: block;
}

.section-head {
  margin-bottom: 42px;
}

.section-head h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--hex-dark);
  line-height: 1.05;
  margin: 0 0 22px 0;
  max-width: 880px;
}

.section-head p {
  margin: 0;
  max-width: 760px;
  color: var(--hex-slate);
  font-size: 1rem;
  line-height: 1.6;
}

/* Hero */

.hero-container {
  padding: 72px 8% 56px;
  background: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: 42px;
  align-items: center;
  width: min(1400px, 100%);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 4.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
  word-spacing: 0.1em;
  margin: 0 0 1.5rem;
  color: var(--hex-dark);
  max-width: 900px;
}

.hero-copy {
  font-size: 1.2rem;
  color: var(--hex-slate);
  margin: 0 0 2.5rem;
  max-width: 690px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 760px;
}

.hero-stat {
  border-top: 1px solid var(--hex-border);
  padding-top: 16px;
}

.hero-stat-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--hex-dark);
}

.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--hex-slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-image {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  min-height: 400px;
  background: linear-gradient(180deg, #F1F5F9 0%, #E9EFF5 100%);
  border-radius: 6px;
  border: 1px solid var(--hex-border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-panel-label {
  font-weight: 900;
  color: var(--hex-blue);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.hero-panel-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 460px;
  color: var(--hex-dark);
  margin: 0;
}

.hero-panel-copy {
  color: var(--hex-slate);
  font-size: 0.96rem;
  max-width: 460px;
  margin: 14px 0 0;
  line-height: 1.55;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}

.hero-mini-card {
  background: #fff;
  border: 1px solid var(--hex-border);
  border-radius: 6px;
  padding: 18px;
}

.hero-mini-card small {
  display: block;
  color: var(--hex-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  font-weight: 700;
}

.hero-mini-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--hex-dark);
  font-weight: 800;
}

/* Partner / Strategy */

.partner-section {
  background: var(--hex-section-light);
  padding: 24px 8%;
  border-top: 1px solid var(--hex-border);
  border-bottom: 1px solid var(--hex-border);
}

.partner-grid {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 20px;
}

.partner-grid img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-grid img:hover {
    opacity: 1;
}

.strategy-band {
  padding: 26px 8%;
  background: #fff;
  border-top: 1px solid var(--hex-border);
  border-bottom: 1px solid var(--hex-border);
}

.strategy-grid {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.strategy-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--hex-dark);
}

.strategy-item span {
  display: block;
  margin-top: 4px;
  color: var(--hex-slate);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Sections */

.solutions-section,
.delivery-section {
  padding: 88px 8%;
  background: #fff;
}

.industries-section {
  padding: 88px 8%;
  background: var(--hex-section-light);
  border-top: 1px solid var(--hex-border);
  border-bottom: 1px solid var(--hex-border);
}

/* Cards */

.service-grid,
.industry-grid,
.industry-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-top: 18px;
}

.industry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.industry-card,
.industry-feature-card {
  background: #fff;
  border: 1px solid var(--hex-border);
  border-radius: 6px;
  height: 100%;
  min-height: 230px;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card {
  padding: 40px;
}

.industry-card {
  padding: 28px;
}

.service-card:hover,
.industry-card:hover,
.industry-feature-card:hover {
  border-color: var(--hex-blue);
  transform: translateY(-4px);
  box-shadow: var(--hex-shadow);
}

.service-card h3 {
  font-size: 1.45rem;
  font-weight: 900;
  margin: 0 0 15px;
  color: var(--hex-dark);
  line-height: 1.15;
}

.industry-card h3 {
  font-size: 1rem;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--hex-dark);
  line-height: 1.3;
}

.service-card p,
.industry-card p,
.industry-feature-card p {
  color: var(--hex-slate);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.industry-card p {
  font-size: 0.9rem;
}

.service-list {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
}

.service-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--hex-blue);
  line-height: 1.5;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hex-blue);
}

/* Delivery */

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 18px;
}

.delivery-step {
  border-top: 2px solid var(--hex-blue);
  padding-top: 18px;
  height: 100%;
}

.delivery-step .step-number {
  color: var(--hex-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
}

.delivery-step h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 10px 0;
  color: var(--hex-dark);
  line-height: 1.3;
}

.delivery-step p {
  color: var(--hex-slate);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* Dark Operations */

.ops-full-width {
  background: var(--hex-dark);
  color: #fff;
  padding: 72px 8%;
}

.ops-grid {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.ops-content .eyebrow,
.positioning-left .eyebrow {
  color: rgba(255,255,255,0.65);
}

.ops-content h2,
.positioning-left h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0 0 18px;
  color: #fff;
}

.ops-content p,
.positioning-left p {
  margin: 0 0 35px;
  max-width: 620px;
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  line-height: 1.65;
}

.ops-btn,
.ops-btn:visited {
  background: #fff;
  color: var(--hex-dark) !important;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: 900;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
}

.ops-feature-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ops-feature {
  border-left: 2px solid var(--hex-blue);
  padding-left: 20px;
}

.ops-feature h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--hex-blue);
  margin: 0 0 5px;
  line-height: 1.3;
}

.ops-feature p {
  opacity: 0.72;
  font-size: 0.88rem;
  margin: 0;
  color: #fff;
  line-height: 1.6;
}

/* Positioning Stack */

.positioning-stack {
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.positioning-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.positioning-row:first-child {
  border-top: 1px solid rgba(255,255,255,0.14);
}

.positioning-number {
  color: var(--hex-blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.positioning-row h3 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.positioning-row p {
  color: rgba(255,255,255,0.72);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}

/* CTA */

.final-cta {
  padding: 48px 8% 64px;
  background: #fff;
  margin: 0;
}

.cta-box {
  width: min(1400px, 100%);
  margin: 0 auto;
  background: #f3f6fa;
  border: 1px solid rgba(5,11,20,0.10);
  border-radius: 14px;
  padding: 44px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
}

.cta-left h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  margin: 0;
  color: var(--hex-dark);
  font-weight: 900;
}

.cta-left p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--hex-slate);
  font-size: 1rem;
  line-height: 1.6;
}

.cta-card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(5,11,20,0.08);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(5,11,20,0.04);
}

.cta-card-label {
  display: block;
  color: var(--hex-blue);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.cta-card-copy,
.cta-card p {
  color: var(--hex-dark);
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0 0 24px;
  font-weight: 600;
}

.cta-card .btn-nav-blue {
  width: 100%;
}

/* Insights */

.insights-hero {
  padding: 68px 8% 52px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--hex-border);
}

.insights-title {
  font-size: clamp(2.75rem, 6vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 900;
  color: var(--hex-dark);
  margin: 0;
  max-width: 900px;
}

.insights-copy {
  margin-top: 24px;
  max-width: 760px;
  color: var(--hex-slate);
  font-size: 1.15rem;
  line-height: 1.6;
}

.insights-featured-section,
.latest-insights-section {
  padding: 68px 8%;
  background: #fff;
}

.insights-topics-section {
  padding: 64px 8%;
  background: var(--hex-section-light);
  border-top: 1px solid var(--hex-border);
  border-bottom: 1px solid var(--hex-border);
}

.featured-insights-grid,
.latest-insights-grid,
.insights-topic-grid {
  display: grid;
  gap: 22px;
  width: 100%;
}

.featured-insights-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.latest-insights-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insights-topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-insight-card,
.latest-insight-card,
.insights-topic-card {
  background: #fff;
  border: 1px solid var(--hex-border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 12px 34px rgba(15,23,42,0.04);
  height: 100%;
}

.featured-insight-card {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-dark {
  background: var(--hex-dark);
  border-color: var(--hex-dark);
  color: #fff;
}

.featured-dark h2,
.featured-dark h3,
.featured-dark strong,
.featured-dark p {
  color: #fff !important;
}

.featured-dark p {
  opacity: 0.74;
}

.insight-tag {
  display: inline-block;
  color: var(--hex-blue);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.featured-dark .insight-tag {
  color: rgba(255,255,255,0.72);
}

.featured-insight-card h3 {
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
  margin: 0 0 16px;
  color: var(--hex-dark);
}

.latest-insight-card h3 {
  font-size: 1.25rem;
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin: 0 0 12px;
  color: var(--hex-dark);
}

.insights-topic-card strong {
  display: block;
  color: var(--hex-dark);
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.featured-insight-card p,
.latest-insight-card p,
.insights-topic-card p,
.insights-topic-card span {
  color: var(--hex-slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

.insight-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--hex-dark);
  font-weight: 900;
  font-size: 0.82rem;
  border-bottom: 2px solid var(--hex-blue);
  padding-bottom: 4px;
}

.featured-dark .insight-link {
  color: #fff;
  border-color: var(--hex-blue);
}

/* Footer */

.hex-footer-section,
.hex-integrated-footer {
  background: var(--hex-footer);
  color: #fff;
  padding: 40px 5%;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */

@media (max-width: 1180px) {
  .site-logo {
    height: 56px;
  }

  .logo {
    min-width: 200px;
  }

  .hero-grid,
  .ops-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .hero-image {
    max-width: 100%;
    justify-self: stretch;
  }

  .industry-grid,
  .service-grid,
  .delivery-grid,
  .strategy-grid,
  .latest-insights-grid,
  .insights-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header-custom {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .header-nav-custom {
    gap: 12px 18px;
  }

  .final-cta {
    padding: 36px 6% 52px;
  }

  .cta-box {
    padding: 32px;
    gap: 30px;
  }
}

@media (max-width: 780px) {
  .container {
    width: 88%;
  }

  .site-header-custom {
    min-height: auto;
    padding: 14px 6%;
  }

  .site-logo {
    height: 42px;
  }

  .logo {
    min-width: auto;
  }

  .hero-container,
  .solutions-section,
  .industries-section,
  .delivery-section,
  .ops-full-width,
  .partner-section,
  .strategy-band,
  .final-cta,
  .insights-hero,
  .insights-featured-section,
  .insights-topics-section,
  .latest-insights-section {
    padding-left: 6%;
    padding-right: 6%;
  }

  .hero-container {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .hero-title {
    font-size: 2.9rem;
    letter-spacing: -2px;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .section-head h2,
  .ops-content h2,
  .positioning-left h2,
  .cta-left h2 {
    font-size: 2rem;
  }

  .hero-meta,
  .hero-mini-grid,
  .industry-grid,
  .service-grid,
  .delivery-grid,
  .strategy-grid,
  .partner-grid,
  .latest-insights-grid,
  .insights-topic-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 340px;
  }

  .service-card,
  .featured-insight-card,
  .latest-insight-card,
  .insights-topic-card {
    padding: 26px;
  }

  .positioning-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
  }

  .btn-nav-blue {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-nav-custom {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header-nav-custom .btn-nav {
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-secondary {
    align-self: flex-start;
  }

  .cta-box {
    padding: 26px;
  }
}

/* INSIGHTS STABLE LAYOUT PATCH */
.featured-insights-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  width: 100%;
}

@media (max-width: 1180px) {
  .featured-insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .insights-hero {
    padding-top: 48px;
    padding-bottom: 46px;
  }

  .insights-title {
    font-size: 2.75rem;
    letter-spacing: -0.045em;
  }

  .featured-insight-card {
    min-height: auto;
  }
}
