/* ============================================================
   COTIS Ltd — Modern Redesign
   Deep navy + electric purple + royal blue
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --navy:         #04033f;
  --navy-mid:     #07055a;
  --navy-card:    rgba(255,255,255,0.05);
  --purple:       #c107e1;
  --blue:         #1904da;
  --text:         #eceef6;
  --text-muted:   rgba(236,238,246,0.65);
  --glass-border: rgba(255,255,255,0.12);
  --grad-main:    linear-gradient(135deg,#c107e1 0%,#1904da 100%);
  --grad-text:    linear-gradient(135deg,#e040fb,#7c4dff,#40c4ff);
  --grad-hero:    linear-gradient(135deg,rgba(4,3,63,.93) 0%,rgba(7,5,90,.82) 50%,rgba(193,7,225,.28) 100%);
  --glow:         0 0 40px rgba(193,7,225,.3);
  --shadow:       0 8px 32px rgba(0,0,0,.45);
  --radius:       16px;
  --radius-pill:  50px;
  --ease:         .3s ease;
  --max:          1100px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--navy);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img   { display: block; max-width: 100%; }
ul    { list-style: none; }
a     { color: inherit; }

/* ── Reduce Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── Skip Link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: white; color: var(--navy);
  padding: .5rem 1rem; border-radius: 8px;
  font-weight: 700; z-index: 9999; text-decoration: none;
  transition: top var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ── Focus ──────────────────────────────────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 2px solid #40c4ff;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── Utility ────────────────────────────────────────────────── */
.container   { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.nav-offset  { padding-top: 80px; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-btn {
  display: inline-block;
  background: var(--grad-main);
  color: white; text-decoration: none;
  padding: .8rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem;
  transition: transform var(--ease), box-shadow var(--ease);
  border: none; cursor: pointer;
}
.gradient-btn:hover { transform: translateY(-2px); box-shadow: var(--glow); color: white; }

.outline-btn {
  display: inline-block;
  background: transparent;
  color: white; text-decoration: none;
  padding: .8rem 2rem;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem;
  transition: border-color var(--ease), background var(--ease);
}
.outline-btn:hover { border-color: var(--purple); background: rgba(193,7,225,.1); color: white; }

.section-label {
  display: block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--purple); margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: white;
  margin-bottom: .75rem;
}

.section-sub {
  color: var(--text-muted); font-size: 1rem;
  max-width: 540px; margin-bottom: 3rem;
  line-height: 1.8;
}

.divider {
  height: 1px; border: none;
  background: linear-gradient(90deg,transparent,rgba(193,7,225,.4),rgba(25,4,218,.4),transparent);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.site-nav {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  background: rgba(4,3,63,.88) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  z-index: 1030;
  padding: .75rem 0 !important;
}
.site-nav .navbar-brand img {
  height: 52px; width: auto;
  border-radius: 6px; object-fit: contain;
}
.site-nav .navbar-toggler {
  border-color: rgba(255,255,255,.25) !important;
}
.site-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.site-nav .navbar-nav { gap: .25rem; align-items: center; }
.site-nav .nav-link {
  color: rgba(236,238,246,.85) !important;
  font-weight: 500; font-size: .95rem;
  padding: .5rem 1rem !important;
  border-radius: 8px;
  transition: color var(--ease), background var(--ease);
}
.site-nav .nav-link:hover { color: white !important; background: rgba(255,255,255,.08); }
.site-nav .nav-link.active { color: white !important; background: rgba(193,7,225,.18); }
.site-nav .nav-cta {
  background: var(--grad-main) !important;
  color: white !important;
  border-radius: var(--radius-pill) !important;
  padding: .5rem 1.4rem !important;
  margin-left: .25rem;
  font-weight: 600 !important;
}
.site-nav .nav-cta:hover { opacity: .9; box-shadow: 0 4px 16px rgba(193,7,225,.4); background: var(--grad-main) !important; }

/* Mobile collapse style */
@media (max-width: 991px) {
  .site-nav .navbar-collapse {
    background: rgba(4,3,63,.97);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1rem;
    margin-top: .75rem;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .site-nav .navbar-nav { align-items: flex-start; }
  .site-nav .nav-link { width: 100%; }
  .site-nav .nav-cta { margin-left: 0 !important; margin-top: .5rem; }
}

/* ============================================================
   HERO — index page
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--grad-hero);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 680px; padding: 5rem 0;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(236,238,246,.6);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.12;
  color: white; margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.1rem; color: rgba(236,238,246,.78);
  max-width: 500px; margin-bottom: 2.25rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO — inner pages (with image background)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 9rem 0 5rem;
  overflow: hidden;
  min-height: 52vh;
  display: flex; align-items: center;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  display: block;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(4,3,63,.96) 0%,
    rgba(7,5,90,.88) 55%,
    rgba(193,7,225,.22) 100%
  );
}
.page-hero-content {
  position: relative; z-index: 1;
}
.page-hero-label {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple); margin-bottom: .5rem;
}
.page-hero-title {
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 800; color: white;
  margin-bottom: .75rem;
}
.page-hero-sub {
  color: var(--text-muted); font-size: 1.05rem;
  max-width: 540px; line-height: 1.8;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section      { padding: 5rem 0; }
.section-alt  { background: var(--navy-mid); }

/* ============================================================
   GLASS CARDS
   ============================================================ */
.glass-card {
  background: var(--navy-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(193,7,225,.35);
}
.card-number {
  font-size: 3rem; font-weight: 800; line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.card-title  { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: .6rem; }
.card-body   { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   INTRO STRIP (index)
   ============================================================ */
.intro-strip {
  border-left: 3px solid;
  border-image: var(--grad-main) 1;
  padding-left: 1.5rem;
}
.intro-strip p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.85; }

/* ============================================================
   CAPABILITIES (about)
   ============================================================ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.capability-card {
  background: var(--navy-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.capability-card h3 {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 1rem;
}
.capability-card li {
  color: var(--text-muted); font-size: .9rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: .5rem;
}
.capability-card li:last-child { border-bottom: none; }
.capability-card li::before { content: '›'; color: var(--purple); font-size: 1.1rem; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-strip {
  display: flex; flex-wrap: wrap;
  gap: 1rem; align-items: center; justify-content: center;
}
.partner-pill {
  background: var(--navy-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: .75rem 1.75rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.partner-pill:hover {
  border-color: rgba(193,7,225,.4);
  box-shadow: 0 4px 20px rgba(193,7,225,.15);
}
.partner-pill img {
  height: 38px; width: auto; max-width: 110px;
  object-fit: contain;
  opacity: .85;
  transition: opacity var(--ease);
}
.partner-pill:hover img { opacity: 1; }

/* ============================================================
   CONTACT CARDS
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: var(--navy-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color var(--ease);
}
.contact-card:hover { border-color: rgba(193,7,225,.35); }
.contact-icon { font-size: 2rem; margin-bottom: .75rem; display: block; }
.contact-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple); margin-bottom: .6rem;
}
.contact-card a, .contact-card p {
  color: white; font-size: 1rem;
  text-decoration: none; line-height: 1.65;
}
.contact-card a:hover { color: rgba(255,255,255,.75); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 2.5rem 0;
  text-align: center;
}
.footer-links {
  display: flex; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: .875rem;
  transition: color var(--ease);
}
.footer-links a:hover { color: white; }
.footer-copy { color: var(--text-muted); font-size: .8rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 576px) {
  .hero-content { padding: 3rem 0; }
  .hero-actions { flex-direction: column; }
  .gradient-btn, .outline-btn { text-align: center; }
  .section { padding: 3.5rem 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  body { background: white; color: black; }
  .site-nav, .hero-overlay, .hero-bg { display: none; }
}
