/* ============================
   DataCure IT Solutions
   style.css
   ============================ */

/* --- TOKENS --- */
:root {
  --navy:       #0D1B2A;
  --navy-mid:   #1E3A5F;
  --navy-light: #2A4A72;
  --cyan:       #00C2E0;
  --cyan-dim:   #00A3BF;
  --white:      #FFFFFF;
  --off-white:  #F0F4F8;
  --tint:       #EAF0F6;
  --grey:       #8A9BB0;
  --grey-dark:  #4A5D72;
  --text:       #1A2E42;
  --text-light: #5A7080;
  --border:     #D0DCE8;

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --max-w: 1160px;
  --nav-h: 68px;
  --radius: 6px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 4px rgba(13,27,42,0.08);
  --shadow-md: 0 4px 20px rgba(13,27,42,0.10);
  --shadow-lg: 0 12px 48px rgba(13,27,42,0.14);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- LAYOUT --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- NAV --- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: var(--nav-h);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-radius: 4px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-weight: 400;
  color: var(--grey);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.18s, background 0.18s;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.nav-cta {
  background: var(--cyan) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
}

.nav-cta:hover {
  background: var(--cyan-dim) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* --- HERO --- */
.hero {
  position: relative;
  background: var(--navy);
  padding: calc(var(--nav-h) + 80px) 0 100px;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,194,224,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,224,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-n {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-l {
  font-size: 12px;
  color: var(--grey);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.1s;
  line-height: 1;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
}

.btn-primary:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan-dim);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy-mid);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan-dim);
}

.btn-full { width: 100%; }

/* --- SECTIONS --- */
.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-tinted {
  background: var(--tint);
}

.section-header {
  max-width: 600px;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

.section-header-light h2 { color: var(--white); }
.section-header-light p  { color: rgba(255,255,255,0.55); }

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.services-grid .service-card:last-child {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
}

.services-grid .service-card:last-child .service-icon {
  flex-shrink: 0;
  margin-top: 4px;
}

.services-grid .service-card:last-child > div:not(.service-icon),
.services-grid .service-card:last-child > h3,
.services-grid .service-card:last-child > p,
.services-grid .service-card:last-child > ul {
  flex: 1;
}

.service-card {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--cyan-dim);
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.service-list li {
  font-size: 13px;
  color: var(--grey-dark);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 1.5px;
  background: var(--cyan);
  border-radius: 2px;
}

/* --- WHY GRID --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.why-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.why-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 420px;
}

/* --- TECHNOLOGIES --- */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tech-primary {
  background: var(--navy);
  color: var(--white);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.tech-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tech-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
}

.tech-versions span {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  color: rgba(255,255,255,0.6);
}

.tech-versions .current {
  border-color: var(--cyan);
  color: var(--cyan);
}

.tech-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.tech-secondary {
  background: var(--off-white);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tech-secondary-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-secondary .tech-label {
  color: var(--navy-mid);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}

/* --- ENGAGEMENT --- */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.engagement-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.engagement-card:hover {
  box-shadow: var(--shadow-md);
}

.engagement-badge {
  position: absolute;
  top: -1px; right: 24px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 0 0 6px 6px;
}

.engagement-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.eng-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
}

.eng-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}

.eng-list li {
  font-size: 13px;
  color: var(--grey-dark);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.eng-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 1.5px;
  background: var(--cyan);
  border-radius: 2px;
}

/* --- CONTACT --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan-dim);
}

.contact-item a,
.contact-item span {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.contact-item a:hover {
  color: var(--cyan-dim);
}

/* --- FORM --- */
.contact-form-wrap {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #ADB8C4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 3px rgba(0,194,224,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-note {
  font-size: 12px;
  color: var(--grey);
  text-align: center;
  margin-top: -8px;
}

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 28px;
  margin-top: 4px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.18s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  margin-top: 4px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-links { display: none; }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy);
    padding: 20px 24px 32px;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }

  .nav-links.open a {
    padding: 12px 16px;
    font-size: 15px;
  }

  .hero {
    padding: calc(var(--nav-h) + 48px) 0 72px;
  }

  .hero-stats {
    flex-direction: row;
    gap: 20px;
  }

  .stat-div { display: none; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .engagement-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .tech-primary,
  .tech-secondary {
    padding: 36px 28px;
  }

  .contact-form-wrap {
    padding: 28px 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* --- PLATFORMS STRIP --- */
.platforms-strip {
  background: var(--navy-mid);
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.platforms-headline {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 36px;
}

.platforms-groups {
  display: flex;
  gap: 0;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.platform-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 220px;
}

.platform-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ptag {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 13px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}

.ptag-accent {
  border-color: rgba(0,194,224,0.3);
  color: var(--cyan);
  background: rgba(0,194,224,0.06);
}

.platform-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* --- OS TAGS (tech primary panel) --- */
.tech-os-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.os-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: rgba(255,255,255,0.5);
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}
