/* =======================================================================
   My Compuclinic — Main Stylesheet
   Design direction: premium enterprise technology — deep navy, electric
   blue, cyan glow, bright white sections, soft glassmorphism, subtle
   animated grid backgrounds.
   ======================================================================= */

:root {
  /* Color system */
  --navy-950: #060b1a;
  --navy-900: #0a1128;
  --navy-800: #0f1b3c;
  --navy-700: #16234f;
  --navy-600: #1c2f66;
  --blue-500: #2f6bff;
  --blue-400: #4f8bff;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --white: #ffffff;
  --off-white: #f5f8ff;
  --ink-900: #0b1220;
  --ink-700: #35405c;
  --ink-500: #5c6a8a;
  --border-soft: rgba(148, 178, 255, 0.18);
  --success: #22c55e;
  --danger: #ef4444;

  --gradient-primary: linear-gradient(135deg, var(--blue-500) 0%, var(--cyan-400) 100%);
  --gradient-dark: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 100%);
  --shadow-card: 0 20px 60px -25px rgba(15, 27, 60, 0.35);
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1200px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-700); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient-primary);
  display: inline-block;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-dark {
  background: var(--gradient-dark);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(245, 248, 255, 0.75); }

/* Animated grid / glow background for dark sections */
.tech-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  pointer-events: none;
}
.tech-bg::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 70%);
  top: -180px;
  right: -140px;
  filter: blur(10px);
  pointer-events: none;
}

.section-header { max-width: 680px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 12px 30px -10px rgba(47, 107, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(34, 211, 238, 0.55); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--cyan-300); }
.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: rgba(15,27,60,0.2);
}
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 26, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 178, 255, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 16px;
  flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; border-radius: 8px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.3; white-space: nowrap; }
.brand-text strong { color: var(--white); font-family: var(--font-heading); font-size: 1.05rem; letter-spacing: 0.02em; white-space: nowrap; }
.brand-text span { color: var(--cyan-300); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.main-nav > ul > li { flex-shrink: 0; }
.main-nav a.nav-link {
  display: block;
  color: rgba(245,248,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link:focus-visible { background: rgba(255,255,255,0.08); color: var(--cyan-300); }
.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--navy-900);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(4px);
}
.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: rgba(245,248,255,0.85);
}
.dropdown-panel a:hover { background: rgba(79,139,255,0.14); color: var(--cyan-300); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions > a, .header-actions > button { flex-shrink: 0; }
.call-chip {
  display: flex; align-items: center; gap: 8px;
  color: var(--white); font-weight: 600; font-size: 0.85rem;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap; flex-shrink: 0;
}
.call-chip .chip-label { white-space: nowrap; }
.call-chip:hover { border-color: var(--cyan-300); color: var(--cyan-300); }

.mobile-menu-toggle {
  display: none;
  background: none; border: none; color: var(--white);
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.mobile-menu-toggle span, .mobile-menu-toggle span::before, .mobile-menu-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--white);
  position: relative; transition: all 0.2s ease;
}
.mobile-menu-toggle span::before { position: absolute; top: -7px; }
.mobile-menu-toggle span::after { position: absolute; top: 7px; }

.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy-950);
  padding: 20px 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 14px 6px; color: var(--white); font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav .sub-list { padding-left: 14px; }
.mobile-nav .sub-list a { font-size: 0.92rem; color: rgba(245,248,255,0.75); border-bottom: none; padding: 10px 6px; }
.mobile-close-btn { background: none; border: none; color: var(--white); font-size: 1.6rem; }

/* Breadcrumbs */
.breadcrumbs { padding: 18px 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--ink-500); list-style: none; margin: 0; padding: 0; }
.breadcrumbs a { color: var(--blue-500); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--ink-500); }

/* Hero */
.hero { position: relative; padding: 120px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-badge {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(79,139,255,0.14); border: 1px solid rgba(103,232,249,0.25);
  color: var(--cyan-300);
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero-lead { font-size: 1.08rem; color: rgba(245,248,255,0.8); max-width: 560px; margin-bottom: 32px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats div strong { display: block; color: var(--white); font-family: var(--font-heading); font-size: 1.5rem; }
.hero-stats div span { color: rgba(245,248,255,0.65); font-size: 0.82rem; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(47,107,255,0.22), rgba(34,211,238,0.12));
  border: 1px solid var(--border-soft);
  padding: 28px;
  backdrop-filter: blur(10px);
}
.hero-visual-card {
  background: rgba(10,17,40,0.6);
  border: 1px solid rgba(103,232,249,0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 14px;
}
.hero-visual-card:last-child { margin-bottom: 0; }
.hero-visual-card h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 4px; }
.hero-visual-card p { color: rgba(245,248,255,0.65); font-size: 0.82rem; margin: 0; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400);
  display: inline-block; margin-right: 8px; box-shadow: 0 0 0 0 rgba(34,211,238,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

/* Trust / capability bar */
.capability-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
}
.capability-bar .container {
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between;
  padding: 26px 24px;
}
.capability-item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; color: var(--navy-800); }
.capability-item .icon-chip { width: 34px; height: 34px; }

/* Icon chip */
.icon-chip {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary); color: var(--white); flex-shrink: 0;
}
.icon-chip svg { width: 22px; height: 22px; }

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

.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.4); box-shadow: 0 24px 50px -20px rgba(34,211,238,0.25); }
.card h3 { margin: 16px 0 8px; }
.card p { font-size: 0.92rem; margin-bottom: 14px; }
.card-link { font-weight: 600; font-size: 0.88rem; color: var(--blue-500); display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { color: var(--cyan-400); }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  min-height: 320px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 28px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-700); }
.feature-list .tick {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(34,211,238,0.15);
  color: var(--blue-500); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.75rem; font-weight: 700; margin-top: 2px;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.step-item { position: relative; padding-top: 18px; }
.step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; margin-bottom: 14px;
}
.step-item h4 { color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.step-item p { color: rgba(245,248,255,0.65); font-size: 0.86rem; }

/* CTA banner */
.cta-banner {
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  padding: 52px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.88); }
.cta-banner .btn-primary { background: var(--white); color: var(--blue-500); box-shadow: none; }
.cta-banner .btn-primary:hover { background: var(--navy-950); color: var(--white); }

/* Location */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.location-card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 32px; box-shadow: var(--shadow-card);
}
.location-card dl { display: grid; gap: 16px; margin: 20px 0 26px; }
.location-card dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); margin-bottom: 4px; }
.location-card dd { font-weight: 600; color: var(--navy-900); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-soft); min-height: 340px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* FAQ accordion */
.accordion-item { border-bottom: 1px solid var(--border-soft); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 4px; background: none; border: none; text-align: left;
  font-weight: 600; font-size: 1rem; color: var(--navy-900);
}
.accordion-trigger .plus { transition: transform 0.25s ease; font-size: 1.4rem; color: var(--blue-500); }
.accordion-item.open .plus { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-panel p { padding: 0 4px 20px; font-size: 0.92rem; }

/* Forms */
.form-card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.86rem; font-weight: 600; color: var(--navy-900); }
.form-group .req { color: var(--danger); }
.form-control {
  padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(15,27,60,0.14);
  font-size: 0.94rem; font-family: inherit; background: var(--off-white); color: var(--ink-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47,107,255,0.15); background: var(--white);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--ink-500); }
.form-error { font-size: 0.8rem; color: var(--danger); display: none; }
.form-group.has-error .form-control { border-color: var(--danger); }
.form-group.has-error .form-error { display: block; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert { padding: 16px 18px; border-radius: 12px; font-size: 0.92rem; margin-bottom: 22px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: rgba(34,197,94,0.1); color: #15803d; border: 1px solid rgba(34,197,94,0.3); }
.alert-error { background: rgba(239,68,68,0.1); color: #b91c1c; border: 1px solid rgba(239,68,68,0.3); }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(245,248,255,0.75); padding: 72px 0 0; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; position: relative; z-index: 2;}
.footer-brand img { height: 44px; margin-bottom: 14px; border-radius: 8px; }
.footer-brand p { color: rgba(245,248,255,0.6); font-size: 0.9rem; max-width: 300px; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.footer-social a:hover { background: var(--gradient-primary); border-color: transparent; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; color: rgba(245,248,255,0.68); }
.footer-col a:hover { color: var(--cyan-300); }
.footer-contact li { display: flex; gap: 10px; font-size: 0.88rem; margin-bottom: 14px; align-items: flex-start; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(245,248,255,0.55); position: relative; z-index: 2;
}
.footer-bottom a { color: rgba(245,248,255,0.55); }
.footer-bottom a:hover { color: var(--cyan-300); }

/* Floating buttons */
.floating-actions { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(15,27,60,0.5); transition: transform 0.2s ease;
}
.fab:hover { transform: scale(1.08); }
.fab-whatsapp { background: #25D366; color: var(--white); }
.fab-call { background: var(--gradient-primary); color: var(--white); }
.fab-top { background: var(--white); color: var(--navy-900); border: 1px solid var(--border-soft); width: 46px; height: 46px; opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Badges / pills */
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.pill-blue { background: rgba(47,107,255,0.12); color: var(--blue-500); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-500); }
.divider { height: 1px; background: var(--border-soft); margin: 40px 0; }
.two-col-text { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.disclaimer-box {
  border-left: 3px solid var(--blue-500); background: rgba(47,107,255,0.06);
  padding: 16px 20px; border-radius: 0 12px 12px 0; font-size: 0.88rem; color: var(--ink-700);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Reveal animation (JS adds .in-view) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
