/* Growcept site overrides + page-level styles · v2 */

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface-canvas);
  color: var(--brand-slate-deep);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }

:root {
  --accent: var(--brand-cyan);
  --accent-deep: var(--brand-cyan-deep);
  --accent-soft: var(--brand-cyan-100);
  --accent-whisper: var(--brand-cyan-50);
  --shadow-accent: var(--shadow-brand);
}

[data-accent="evening"] {
  --accent: #2A4F73;
  --accent-deep: #1F3D5C;
  --accent-soft: #DCE6F0;
  --accent-whisper: #EDF3F8;
  --shadow-accent: 0 12px 32px rgba(42, 79, 115, 0.28);
}

/* Layout primitives */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Section rhythm */
section { position: relative; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-tinted { background: var(--surface-sunken); }
.section-cyan { background: var(--surface-tinted); }
.section-deep { background: var(--surface-deep); color: var(--fg-on-dark); }

/* Type helpers (overrides for site context) */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.t-display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--brand-slate-deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 220ms var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-deep);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  background: transparent;
  color: var(--brand-slate-deep);
  border: 1.5px solid var(--brand-slate-100);
  padding: 12.5px 24px;
}
.btn-secondary:hover {
  background: var(--surface-sunken);
  border-color: var(--brand-slate-200);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-slate-deep);
  padding: 10px 16px;
}
.btn-on-dark {
  background: #fff;
  color: var(--brand-slate-deep);
}
.btn-on-dark:hover { background: var(--surface-sunken); }
.btn-outline-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 12.5px 24px;
}
.btn-outline-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

/* Cards */
.card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brand-slate-100);
  transition: all 220ms var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--surface-tinted);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--accent-soft);
}

/* Animations */
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gaugeFill { to { stroke-dashoffset: var(--off, 0); } }
@keyframes drawIn { from { stroke-dashoffset: var(--len, 1000); } to { stroke-dashoffset: 0; } }
@keyframes pulseDot { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); } }
@keyframes spinSlow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes orbit { from { transform: rotate(0) translateX(var(--r)) rotate(0); } to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

/* Hide scrollbars on horizontal lists where used */
.hscroll::-webkit-scrollbar { display: none; }
.hscroll { -ms-overflow-style: none; scrollbar-width: none; }

/* Link focus ring */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Selection */
::selection { background: var(--accent-soft); color: var(--accent-deep); }

/* Grid utilities — collapse on mobile */
.g2 { display: grid; grid-template-columns: 1fr 1fr; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-asym { display: grid; grid-template-columns: 1.15fr 1fr; }
.split-asym-rev { display: grid; grid-template-columns: 1fr 1.4fr; }
.split-15-1 { display: grid; grid-template-columns: 1.5fr 1fr; }
.split-1-13 { display: grid; grid-template-columns: 1fr 1.3fr; }
.split-14-1 { display: grid; grid-template-columns: 1.4fr 1fr; }
.split-1-14 { display: grid; grid-template-columns: 1fr 1.4fr; }
.split-footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.timeline-row { display: grid; grid-template-columns: 120px 1fr; }

/* Tablet */
@media (max-width: 1000px) {
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .split-footer { grid-template-columns: 1.4fr 1fr 1fr; }
  .split-footer > :nth-child(4) { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .container, .container-narrow { padding: 0 20px; }
  .g2, .g3, .g4,
  .split, .split-asym, .split-asym-rev,
  .split-15-1, .split-1-13, .split-14-1, .split-1-14,
  .split-footer {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .timeline-row { grid-template-columns: 1fr !important; gap: 4px !important; }
  .stack-mobile-reverse > :first-child { order: 2; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .center-mobile { text-align: center; }
  .center-mobile > * { margin-left: auto; margin-right: auto; }
  .btn { padding: 13px 22px; font-size: 14px; }
  /* Tighter section paddings */
  .section { padding: 56px 0; }
  /* Footer collapse */
  .footer-grid { gap: 36px !important; }
  /* 4-col stat grids → 2-col on mobile */
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  /* Methodology stages: stack with bottom borders, no right borders */
  .stage-grid > div { border-right: none !important; border-bottom: 1px solid var(--brand-slate-100); }
  .stage-grid > div:last-child { border-bottom: none; }
  /* Hero padding */
  .hero { padding-top: 48px !important; padding-bottom: 72px !important; }
  /* CTA card padding */
  .cta-card { padding: 40px 28px !important; border-radius: 24px !important; }
  /* Service-deep two columns inside card → 1 col */
  .deliverables-grid { grid-template-columns: 1fr !important; }
}

/* Mobile nav */
.nav-toggle { display: none; }
.nav-mobile-menu { display: none; }
@media (max-width: 820px) {
  .nav-links-desktop { display: none !important; }
  .nav-cta-desktop { display: none !important; }
  .nav-toggle { display: inline-flex !important; }
  .nav-mobile-menu.open { display: flex !important; }
}

/* Services page sticky column → static on mobile */
@media (max-width: 720px) {
  .sticky-col { position: static !important; }
  .form-card { padding: 24px !important; }
  /* Hero in mobile: smaller intro padding-top */
  .hero { padding-top: 32px !important; padding-bottom: 56px !important; }
  /* Tighten ServiceDeep section padding */
  section[id="training"], section[id="integration"], section[id="policy"] { padding: 64px 0 !important; }
  /* About/Founder block */
  .founder-img-block { max-width: 240px !important; font-size: 80px !important; }
  /* Trust strip stack */
  .trust-strip { padding: 28px 0 !important; }
  .trust-strip-eyebrow { max-width: 100% !important; flex: 1 1 100% !important; }
}

/* Tablet */
@media (max-width: 820px) {
  .container, .container-narrow { padding: 0 24px; }
}
