/* ============================================
   CLOUDTIP — Design Tokens (Dark theme)
   ============================================ */
:root {
  /* Base surfaces — charcoal, layered for depth (not flat black) */
  --navy-950: #16191E;   /* page background */
  --navy-900: #1D2128;   /* card / panel surface */
  --navy-800: #262B33;   /* elevated panel / hover / alt section */
  --navy-700: #363C45;   /* borders on dark panels, dividers */
  --footer-bg: #101317;  /* footer — slightly deeper than page bg */

  /* Accent — brand blue for text/icons, deep blue for diagonal panels */
  --slate-700: #2F62C4;
  --blue-deep: #0C2A4A;
  --teal-400: #4E8CE8;   /* primary accent (links, icons, headline highlight) */
  --teal-300: #7CADF2;   /* hover / lighter accent */
  --amber: #F0A93C;      /* CTA accent — bold contrast, like a pro MSP brand */
  --amber-600: #D9922E;  /* CTA hover */

  /* Text */
  --white: #FFFFFF;
  --off-white: #16191E;
  --text-primary: #F1F3F6;
  --gray-500: #9AA4B2;   /* body copy on dark */
  --gray-300: #6C7583;   /* muted / tags / footer links */

  --panel-blue: rgba(78,140,232,0.08);
  --border-soft: rgba(255,255,255,0.10);
  --border-soft-dark: rgba(255,255,255,0.06);

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1280px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

@media (min-width: 1680px) {
  :root { --max-width: 1480px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { color: var(--gray-500); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-300);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-300);
  box-shadow: 0 0 0 3px rgba(78,140,232,0.25);
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--amber-600); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border-soft);
}
.btn-ghost:hover { border-color: var(--teal-400); color: var(--teal-300); }

.btn-ghost-light {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-soft);
  border-width: 1.5px;
}
.btn-ghost-light:hover { border-color: var(--teal-400); color: var(--teal-300); }

.btn-dark {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--border-soft);
}
.btn-dark:hover { background: var(--navy-700); transform: translateY(-1px); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,11,20,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  color: var(--gray-500);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a.active { color: var(--text-primary); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal-400);
}

.nav-right { display: flex; align-items: center; gap: 18px; }

.nav-phone {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal-300);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .menu-toggle { display: block; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  }
}

/* ============================================
   HERO — full-bleed split layout
   ============================================ */
.hero {
  position: relative;
  background: var(--navy-950);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 34px);
  z-index: 0;
}

.hero-flex {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  min-height: 600px;
}

.hero-left {
  flex: 1 1 56%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px clamp(24px, 6vw, 40px) 80px clamp(24px, 5vw, 64px);
}

.hero-left .eyebrow { color: var(--teal-300); }

.hero h1 {
  color: var(--text-primary);
  max-width: 620px;
  margin: 0 0 22px;
  text-align: left;
}
.hero h1 .accent { color: var(--teal-300); }

.hero-sub {
  max-width: 480px;
  margin: 0 0 36px;
  font-size: 1.1rem;
  color: var(--gray-500);
  text-align: left;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-right {
  flex: 1 1 44%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px clamp(32px, 5vw, 72px);
  background: linear-gradient(150deg, var(--blue-deep) 0%, var(--slate-700) 65%, var(--teal-400) 130%);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-right-inner {
  display: flex;
  flex-direction: column;
  gap: 34px;
  width: 100%;
  max-width: 300px;
}

.hero-stat-block {
  border-left: 3px solid rgba(255,255,255,0.55);
  padding-left: 18px;
}

.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

@media (max-width: 900px) {
  .hero-flex { flex-direction: column; min-height: 0; }
  .hero-left { padding: 100px 24px 56px; }
  .hero h1, .hero-sub { max-width: 100%; }
  .hero-right {
    clip-path: none;
    padding: 48px 24px;
  }
  .hero-right-inner {
    max-width: 420px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 auto;
  }
  .hero-stat-block { flex: 1 1 auto; min-width: 130px; }
}

/* status strip */
.status-strip {
  background: var(--panel-blue);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.status-strip .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 22px 24px;
}

.status-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
}

.status-value {
  color: var(--teal-300);
  font-size: 1.05rem;
  font-weight: 600;
}

.status-label {
  color: var(--gray-500);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================
   SECTIONS — generic
   ============================================ */
.section {
  padding: 88px 24px;
}

.section-dark {
  background: var(--navy-900);
  border-top: 1px solid var(--border-soft-dark);
  border-bottom: 1px solid var(--border-soft-dark);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--gray-300); }

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

.service-card {
  background: var(--navy-900);
  padding: 38px 32px;
  transition: background 0.2s ease;
}

.service-card:hover { background: var(--navy-800); }

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--teal-300);
}

.service-icon svg { width: 100%; height: 100%; }

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

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
}

.services-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 700px) {
  .services-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   WHY US / FEATURE LIST
   ============================================ */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(78,140,232,0.16);
  color: var(--teal-300);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-check svg { width: 13px; height: 13px; }

.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.feature-item p { font-size: 0.92rem; }

@media (max-width: 700px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* ============================================
   TWO COL LAYOUT
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--slate-700) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 56px;
  text-align: center;
  margin: 0 24px;
}

.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { max-width: 480px; margin: 0 auto 30px; color: rgba(255,255,255,0.75); }
.cta-band .hero-ctas { margin-bottom: 0; }

@media (max-width: 600px) {
  .cta-band { padding: 40px 24px; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--gray-300);
  padding: 64px 24px 28px;
  border-top: 1px solid var(--border-soft-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { max-width: 280px; font-size: 0.9rem; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-weight: 500;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: var(--gray-300); transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-300); }

.footer-bottom {
  border-top: 1px solid var(--border-soft-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   PAGE HEADER (sub-pages)
   ============================================ */
.page-header {
  background: var(--navy-950);
  padding: 90px clamp(24px, 6vw, 64px) 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft-dark);
}

.page-header .hero-pattern {
  mask-image: radial-gradient(ellipse 70% 100% at 20% 0%, black 30%, transparent 80%);
}

.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  background: linear-gradient(150deg, var(--blue-deep) 0%, var(--slate-700) 65%, var(--teal-400) 130%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

@media (max-width: 760px) {
  .page-header::after { display: none; }
}

.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-header p { max-width: 540px; margin-top: 14px; font-size: 1.05rem; }

/* ============================================
   FORMS (Contact page)
   ============================================ */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--navy-950);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-300); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal-400);
  outline: none;
}

.form-group select {
  color-scheme: dark;
}

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

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

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Contact info cards */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.contact-info-card {
  background: var(--navy-900);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-info-card .service-icon { width: 36px; height: 36px; margin-bottom: 16px; }
.contact-info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-info-card a, .contact-info-card p { font-size: 0.92rem; }
.contact-info-card a { color: var(--teal-300); font-weight: 600; }
.contact-info-card a:hover { color: var(--teal-400); }

@media (max-width: 860px) {
  .contact-info-grid { grid-template-columns: 1fr; }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
}

.contact-form-card {
  background: var(--navy-900);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 40px;
}

.contact-side {
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 40px;
  color: var(--white);
}

.contact-side h3 { color: var(--white); margin-bottom: 18px; }
.contact-side .map-note {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.88rem;
  color: var(--gray-300);
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* About page specifics */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.value-card {
  padding: 32px 30px;
  border-left: 3px solid var(--teal-400);
  background: var(--navy-800);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.value-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.value-card p { font-size: 0.92rem; }

@media (max-width: 700px) {
  .value-grid { grid-template-columns: 1fr; }
}

.stat-row {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 6px;
}

/* Services page detail rows */
.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding: 44px;
  background: var(--navy-900);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}

.service-detail:hover { border-color: rgba(78,140,232,0.3); }

.service-detail:last-child { margin-bottom: 0; }

.service-detail-icon {
  width: 56px;
  height: 56px;
  padding: 14px;
  color: var(--teal-300);
  background: rgba(78,140,232,0.12);
  border-radius: 12px;
  margin-bottom: 18px;
}

.service-detail-icon svg { width: 100%; height: 100%; }

.service-detail ul { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }

.service-detail ul li {
  display: flex;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--gray-500);
}

.service-detail ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  margin-top: 8px;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .service-detail { grid-template-columns: 1fr; gap: 20px; }
}
