/* =========================================================
   CIVVARIONE — Enterprise Security Company Profile
   Light, enterprise-grade theme. Green (Schneider-inspired) as
   the sole accent; white/off-white dominate. Dark reserved for
   the hero and footer only.
   ========================================================= */

:root {
  --brand: #2e9e44;
  --brand-dark: #1f7a34;
  --brand-light: #e9f7ec;
  --deep: #0e2e17;
  --ink: #15181a;
}

html {
  scroll-behavior: auto; /* Lenis handles smoothing */
}

body {
  cursor: default;
}

/* ---------- Section rhythm ---------- */
.section-pad {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--brand-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  color: var(--ink);
  line-height: 1.15;
  max-width: 42ch;
  letter-spacing: -0.01em;
}

.section-lede {
  margin-top: 1.1rem;
  max-width: 60ch;
  color: #5b6560;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- Hero (only dark surface outside the footer) ---------- */
#hero {
  background: radial-gradient(ellipse 90% 70% at 50% 0%, #16351f 0%, var(--deep) 55%, #0a1f10 100%);
}

.text-brand-gradient {
  background: linear-gradient(120deg, #7fe08f, var(--brand) 55%, #3ec456);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 90%);
}

.capability-chip {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #dfeee2;
  font-size: .82rem;
  font-weight: 400;
}
.capability-chip i { color: #6fe07f; flex-shrink: 0; }

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.animate-bounce-slow { animation: bounce-slow 2.4s ease-in-out infinite; }

/* ---------- Nav ---------- */
#site-nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
#site-nav.nav-scrolled {
  border-bottom: 1px solid #e3e8e3;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 8px 24px -18px rgba(0,0,0,0.15);
}
.nav-link {
  position: relative;
  color: #4a524e;
  transition: color .25s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

.mobile-link { color: var(--ink); transition: color .2s ease; }
.mobile-link:hover { color: var(--brand-dark); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  transition: box-shadow .3s ease, transform .3s ease, background .3s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 30px -10px rgba(46,158,68,0.5);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid #d7ddd7;
  color: var(--ink);
  border-radius: 999px;
  transition: border-color .3s ease, background .3s ease, transform .3s ease, color .3s ease;
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-light);
  transform: translateY(-1px);
}

/* Buttons rendered on the dark hero need lighter default borders */
#hero .btn-outline {
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
#hero .btn-outline:hover {
  border-color: var(--brand);
  background: rgba(46,158,68,0.12);
  color: #fff;
}

/* ---------- Cards ---------- */
.glass-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e6eae6;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(20,24,20,0.03);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: #bfe6c7;
  box-shadow: 0 24px 48px -24px rgba(20,60,30,0.18);
}
/* Reserved for isolated overlays only (modal, command palette) */
.glass-blur {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
}

.icon-tile {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  margin-bottom: 1.25rem;
}
#hero .icon-tile { background: rgba(255,255,255,0.08); color: #7fe08f; }

.card-title {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: .5rem;
}
.card-body {
  color: #5b6560;
  font-size: .92rem;
  line-height: 1.65;
  font-weight: 300;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--brand-light);
  border: 1px solid #d9efdd;
  border-radius: 12px;
  padding: .8rem 1rem;
  font-size: .8rem;
  color: #1f4327;
}

.tag-list { display: flex; flex-direction: column; gap: .55rem; }
.tag-list li {
  font-size: .85rem;
  color: #4a524e;
  padding-left: 1.1rem;
  position: relative;
}
.tag-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .5em;
  width: 6px; height: 1px;
  background: var(--brand);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--brand-light);
  border: 1px solid #d9efdd;
  color: #1f4327;
  font-size: .78rem;
  font-weight: 500;
}

.social-chip {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid #e0e5e0;
  display: flex; align-items: center; justify-content: center;
  color: #4a524e;
  transition: all .25s ease;
}
.social-chip:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-light); transform: translateY(-2px); }

/* ---------- Leadership timeline ---------- */
.founder-timeline { display: flex; flex-direction: column; gap: 1.5rem; position: relative; }
.founder-timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(46,158,68,0.55), rgba(46,158,68,0.05));
}
.ft-item { display: flex; gap: 1.25rem; position: relative; }
.ft-dot { width: 11px; height: 11px; border-radius: 999px; background: var(--brand); margin-top: 4px; box-shadow: 0 0 0 4px rgba(46,158,68,0.15); flex-shrink: 0; }
.ft-year { color: var(--brand-dark); font-size: .78rem; font-weight: 600; letter-spacing: .05em; display: block; margin-bottom: .2rem; }
.ft-item p { color: #5b6560; font-size: .88rem; line-height: 1.6; font-weight: 300; }

/* ---------- Service / Industry cards ---------- */
.service-card, .industry-card {
  cursor: pointer;
  padding: 1.9rem;
}
.service-card .icon-tile, .industry-card .icon-tile { margin-bottom: 1.5rem; }
.service-card .learn-more, .industry-card .learn-more {
  margin-top: 1.25rem;
  font-size: .78rem;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  opacity: .9;
}

/* ---------- Methodology timeline ---------- */
.method-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.method-step {
  flex: 0 0 220px;
  padding: 1.5rem;
}
.method-index {
  font-family: "Space Grotesk", sans-serif;
  color: var(--brand-dark);
  font-size: .78rem;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}

.framework-badge {
  padding: .55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid #d9efdd;
  color: #1f4327;
  font-size: .78rem;
  letter-spacing: .08em;
  background: var(--brand-light);
}

/* ---------- Why Us ---------- */
.whyus-card { padding: 1.9rem; }

/* ---------- Certification cards ---------- */
.cert-card {
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.cert-badge {
  width: 52px; height: 52px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  margin: 0 auto 1.1rem;
}
.cert-name {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .35rem;
}
.cert-desc { color: #5b6560; font-size: .78rem; line-height: 1.5; }

/* ---------- Trust & compliance ---------- */
.trust-badge {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 1.4rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e6eae6;
}
.trust-badge .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.trust-pillar {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #4a524e;
  font-size: .85rem;
}
.trust-pillar i { color: var(--brand-dark); flex-shrink: 0; }

/* ---------- Tools grid ---------- */
.tool-tile {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  border-radius: 16px;
  border: 1px solid #e6eae6;
  background: #ffffff;
  transition: all .3s ease;
  cursor: default;
}
.tool-tile:hover {
  border-color: var(--brand);
  transform: translateY(-3px) scale(1.03);
  background: var(--brand-light);
}
.tool-tile span { font-size: .72rem; color: #5b6560; letter-spacing: .02em; }
.tool-tile:hover span { color: #1f4327; }

/* ---------- Engagement ---------- */
.engagement-step {
  padding: 1.6rem;
  position: relative;
}
.engagement-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  color: #cdeed4;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .75rem;
}

/* ---------- Contact ---------- */
.contact-row { display: flex; align-items: flex-start; gap: 1rem; }
.contact-label { display: block; font-size: .72rem; letter-spacing: .1em; color: #8a918d; text-transform: uppercase; }
.contact-value { display: block; font-size: .95rem; color: var(--ink); margin-top: .2rem; }
a.contact-value:hover { color: var(--brand-dark); }

/* ---------- Footer (dark, per exception) ---------- */
footer {
  background: var(--deep);
  color: #cdd6cf;
}
.footer-heading { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #7fa88a; margin-bottom: 1rem; }
.footer-link { display: block; font-size: .88rem; color: #cdd6cf; margin-bottom: .65rem; transition: color .2s ease; }
.footer-link:hover { color: #7fe08f; }

/* ---------- Reveal animation base state ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }

/* ---------- Command palette ---------- */
.cmdk-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  font-size: .88rem;
  color: #4a524e;
  cursor: pointer;
  transition: background .15s ease;
}
.cmdk-item:hover, .cmdk-item.active { background: var(--brand-light); color: var(--ink); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d3d9d3; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #b9c2b9; }

/* ---------- Cursor glow ---------- */
#cursor-glow::before {
  content: '';
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 480px; height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(46,158,68,0.06), transparent 70%);
  border-radius: 999px;
}

/* ---------- Modal panel scrollbar polish ---------- */
#modal-panel { scrollbar-gutter: stable; }

@media (max-width: 767px) {
  .method-step { flex: 0 0 78vw; }
}

/* ---------- Print-only company profile ---------- */
#print-profile { display: none; }
@media print {
  body * { visibility: hidden; }
  #print-profile, #print-profile * { visibility: visible; }
  #print-profile {
    display: block !important;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    background: #fff;
    color: #111;
    padding: 40px;
    font-family: "Inter", sans-serif;
  }
  #print-profile h1 { font-family: "Space Grotesk", sans-serif; font-size: 28px; margin-bottom: 4px; }
  #print-profile .p-tagline { color: #1f7a34; font-weight: 600; margin-bottom: 24px; }
  #print-profile h2 { font-size: 16px; margin-top: 22px; margin-bottom: 8px; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
  #print-profile p, #print-profile li { font-size: 12.5px; line-height: 1.6; color: #222; }
  #print-profile ul { padding-left: 18px; }
}
