/* ==========================================================================
   Grover Automation LLC — main stylesheet
   Light theme · cream background · blue-indigo accent
   ========================================================================== */

:root {
  --bg: #F7F5F0;
  --bg-alt: #EFECE4;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --ink: #1A1A1A;
  --ink-soft: #3A3A3A;
  --ink-muted: #5A5955;
  --line: #E3DFD6;
  --line-strong: #D4CFC4;
  --accent: #2563EB;
  --accent-strong: #1D4ED8;
  --accent-soft: #3B82F6;
  --accent-2: #6366F1;
  --accent-tint: #E8EEFC;
  --on-accent: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.08);
  --shadow-md: 0 12px 32px rgba(26, 26, 26, 0.10);
  --shadow-lg: 0 24px 56px rgba(26, 26, 26, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--ink-soft);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn-accent:hover {
  background-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.text-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.text-link:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

/* ==========================================================================
   Split navigation — CTA left, links center, logo right
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.split-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.split-nav-cta {
  justify-self: start;
}

.split-nav-cta .btn {
  padding: 0.6rem 1.3rem;
  font-size: 0.88rem;
}

.split-nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: center;
}

.split-nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.18s ease;
}

.split-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.2s ease;
}

.split-nav-links a:hover {
  color: var(--accent);
}

.split-nav-links a:hover::after {
  width: 100%;
}

.split-nav-logo {
  justify-self: end;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.split-nav-logo span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Slanted hero
   ========================================================================== */

.slant-hero {
  position: relative;
  padding: 160px 24px 80px;
  background-color: var(--bg);
  overflow: hidden;
}

.slant-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  background: linear-gradient(118deg, var(--bg) 30%, #F1EFE8 60%, var(--accent-tint) 100%);
  transform: skewY(-4deg);
  transform-origin: top right;
  z-index: 0;
}

.slant-hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.slant-hero-copy h1 {
  margin: 18px 0 22px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* Console visual */
.slant-hero-visual {
  position: relative;
  z-index: 1;
}

.console {
  background-color: #101014;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid #23232a;
}

.console-bar {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background-color: #1B1B21;
  border-bottom: 1px solid #23232a;
}

.console-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.console-bar span:nth-child(1) { background-color: #FF5F57; }
.console-bar span:nth-child(2) { background-color: #FEBC2E; }
.console-bar span:nth-child(3) { background-color: #28C840; }

.console-body {
  padding: 24px;
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-size: 0.95rem;
  line-height: 1.9;
}

.console-body p {
  color: #E8EAED;
}

.c-prompt {
  color: #34D399;
  margin-right: 8px;
  font-weight: 700;
}

.c-muted {
  color: #9CA3AF !important;
}

.c-ok {
  color: #6EE7B7 !important;
}

.c-accent {
  color: #93C5FD !important;
}

.c-caret {
  color: #F9FAFB;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero stats */
.hero-stats {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hero-stat {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.section-sub {
  margin-top: 18px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Numeral features
   ========================================================================== */

.numeral-features {
  padding: 100px 24px;
  background-color: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.numeral-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.numeral-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.numeral-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}

.numeral {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 1;
  margin-bottom: 18px;
}

.numeral-item h3 {
  margin-bottom: 12px;
}

.numeral-item p {
  font-size: 0.98rem;
}

/* ==========================================================================
   Services — alternating rows
   ========================================================================== */

.services-section {
  padding: 100px 24px;
  background-color: var(--bg);
}

.service-row {
  max-width: 1240px;
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

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

.service-row-reverse .service-copy {
  order: 2;
}

.service-row-reverse .service-media {
  order: 1;
}

.service-copy h3 {
  margin-bottom: 16px;
}

.service-copy p {
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.service-media {
  display: flex;
  justify-content: center;
}

.media-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.media-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-accent);
  background-color: var(--accent);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.media-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.media-line {
  display: block;
  height: 10px;
  border-radius: 6px;
  background-color: var(--accent-tint);
  margin-bottom: 10px;
  width: 100%;
}

.media-line.short { width: 55%; background-color: #D6E1FA; }
.media-line.medium { width: 78%; background-color: #C3D3F6; }

.media-card-b .media-tag { background-color: var(--accent-2); }
.media-card-c .media-tag { background-color: var(--accent-strong); }

/* ==========================================================================
   Quote slider
   ========================================================================== */

.quote-slider {
  padding: 100px 24px;
  background-color: var(--ink);
}

.quote-slider .section-head h2 {
  color: #F7F5F0;
}

.quote-slider .section-head .eyebrow {
  color: #93C5FD;
}

.slider {
  max-width: 860px;
  margin: 0 auto;
}

.slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  flex: 0 0 100%;
  background-color: #1F1F26;
  border: 1px solid #2A2A33;
  border-radius: var(--radius-lg);
  padding: 48px;
}

.slide p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.5;
  color: #F7F5F0;
  margin-bottom: 28px;
}

.slide footer {
  display: flex;
  flex-direction: column;
}

.quote-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: #93C5FD;
}

.quote-role {
  font-size: 0.9rem;
  color: #9CA3AF;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #3A3A44;
  background-color: #1F1F26;
  color: #F7F5F0;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.slider-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: #3A3A44;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.slider-dot.active {
  background-color: var(--accent-soft);
  transform: scale(1.3);
}

/* ==========================================================================
   Approach
   ========================================================================== */

.approach-section {
  padding: 100px 24px;
  background-color: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approach-strip {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.approach-step {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
}

.approach-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent);
  margin-bottom: 20px;
  box-shadow: 0 0 0 5px var(--accent-tint);
}

.approach-step h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.approach-step p {
  font-size: 0.95rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section {
  padding: 100px 24px;
  background-color: var(--bg);
}

.contact-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-copy h2 {
  margin: 16px 0 20px;
}

.contact-copy > p {
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.contact-list a {
  font-weight: 600;
  color: var(--ink);
  transition: color 0.18s ease;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-form {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  margin-top: 16px;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background-color: var(--surface-2);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  margin-top: 24px;
  align-self: flex-start;
}

.form-status {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 1.4em;
}

.form-status.success { color: #15803D; }
.form-status.error { color: #B91C1C; }

/* ==========================================================================
   Footer — multi-column
   ========================================================================== */

.footer-cols {
  background-color: var(--ink);
  color: #E8EAED;
  padding: 72px 24px 0;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #F7F5F0;
}

.footer-logo span {
  color: var(--accent-soft);
}

.footer-brand-col p {
  margin-top: 16px;
  color: #9CA3AF;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F7F5F0;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: #9CA3AF;
  font-size: 0.95rem;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: #93C5FD;
}

.footer-bottom {
  border-top: 1px solid #2A2A33;
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: #6B7280;
  font-size: 0.88rem;
}

/* ==========================================================================
   Scroll reveal (safe without JS)
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .split-nav {
    grid-template-columns: 1fr auto;
  }

  .split-nav-cta {
    display: none;
  }

  .split-nav-logo {
    justify-self: start;
  }

  .nav-toggle {
    display: flex;
    justify-self: end;
  }

  .split-nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .split-nav-links.open {
    transform: translateY(0);
  }

  .split-nav-links li {
    width: 100%;
  }

  .split-nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .split-nav-links a::after {
    display: none;
  }

  .slant-hero-grid,
  .service-row,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-row-reverse .service-copy {
    order: 1;
  }

  .service-row-reverse .service-media {
    order: 2;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .slant-hero {
    padding-top: 130px;
  }

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

  .numeral-grid,
  .approach-strip {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .slide {
    padding: 32px 24px;
  }

  .slide p {
    font-size: 1.1rem;
  }

  .contact-form {
    padding: 24px;
  }
}
