/* ==========================================================
   All Things Spatial LLC - styles.css
   ========================================================== */

/* -------------------------
   Color System (Design Tokens)
   ------------------------- */
:root {
  /* Core brand blues */
  --ats-primary: #0061ff; /* main ATS blue (Digital Sky start) */
  --ats-primary-bright: #60efff; /* light ATS blue (Digital Sky end) */
  --ats-primary-soft: #f3f7ff; /* softened alt section background */

  /* Hero gradient stops */
  --ats-hero-top: #0061ff;
  --ats-hero-mid: #3187ff;
  --ats-hero-bottom: #60efff;

  /* Neutrals / accents */
  --ats-navy: #212529;
  --ats-accent-gold: #ffbf0b;
  --ats-slate: #495057;
  --ats-bg-light: #ffffff;
  --ats-border-soft: #dde3f0;
  --ats-panel-text: #374151;
}

/* -------------------------
   Global Styles
   ------------------------- */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ats-slate);
  background-color: var(--ats-bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

/* Layout helpers for hero spacing (accounts for fixed navbar) */
.pt-7 {
  padding-top: 6.5rem !important;
}
.pb-6 {
  padding-bottom: 5rem !important;
}

/* -------------------------
   Navbar
   ------------------------- */
.ats-navbar {
  background-color: var(--ats-navy);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.ats-logo-header {
  height: 36px;
  width: auto;
}

.navbar-nav .nav-link {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--ats-primary-bright);
}

/* -------------------------
   Hero Section
   ------------------------- */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--ats-hero-top) 0%,
    var(--ats-hero-mid) 40%,
    var(--ats-hero-bottom) 100%
  );
  color: #ffffff;
}

/* top kicker text */
.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

/* main hero header */
.hero-title {
  font-size: clamp(2.4rem, 3vw + 1.5rem, 3.4rem);
  font-weight: 700;
}

/* small descriptive text */
.hero-subtitle {
  font-size: 1rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.97);
  font-weight: 500;
}

/* Gradient Text (“Data-Driven World”) */
.text-gradient {
  background: linear-gradient(90deg, #7fe8ff, #d8f9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* -------------------------
   Hero Panel (floating white card)
   ------------------------- */
.hero-panel {
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.3);
  color: var(--ats-panel-text);
  padding: 2rem;
}

.hero-panel h2 {
  color: #111827;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-panel-text {
  font-size: 0.9rem;
  color: var(--ats-panel-text);
  font-weight: 400;
  line-height: 1.5;
}

/* CTA text inside panel bottom */
.hero-panel-cta {
  color: #374151;
  font-size: 0.9rem;
}

/* “Let’s talk.” link */
.hero-link {
  color: var(--ats-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* -------------------------
   Hero Chips
   ------------------------- */
.hero-chip {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background-color: #f8fbff;
  border: 1px solid #dce8ff;
}

.hero-chip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ats-primary);
}

.hero-chip-text {
  font-size: 0.86rem;
  color: #1f2937;
}

/* Focus pill tags under hero */
.hero-focus-tags .focus-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.8rem;
}

/* -------------------------
   Hero Buttons (glass effect on blue background)
   ------------------------- */

/* PRIMARY BUTTON — “Schedule a conversation” */
.hero-section .btn-primary {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  backdrop-filter: blur(4px);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.hero-section .btn-primary:hover,
.hero-section .btn-primary:focus {
  background-color: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* OUTLINE BUTTON — “Explore services” */
.hero-section .btn-outline-primary {
  border-color: rgba(255, 255, 255, 0.9);
  color: #ffffff;
  font-weight: 500;
  transition: all 0.25s ease;
}

.hero-section .btn-outline-primary:hover,
.hero-section .btn-outline-primary:focus {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--ats-primary);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

/* -------------------------
   Sections
   ------------------------- */
.section-light {
  background-color: var(--ats-bg-light);
}

.section-alt {
  background-color: var(--ats-primary-soft);
}

.section-title {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.3rem);
  font-weight: 700;
  color: var(--ats-heading-strong, #0a6fff);
}

.section-subtitle {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 0.98rem;
  color: #6b7280;
}

/* -------------------------
   Cards (Services / Solutions / Portfolio / Training / About / Visuals)
   ------------------------- */
.service-card,
.solution-card,
.portfolio-card,
.training-card,
.about-panel,
.visual-card {
  padding: 1.6rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid var(--ats-border-soft);
  border-top: 4px solid var(--ats-primary);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.solution-card h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* -------------------------
   Buttons (Site-Wide Defaults)
   ------------------------- */
.btn-primary {
  background-color: var(--ats-primary);
  border-color: var(--ats-primary);
  color: #ffffff;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
}

.btn-outline-primary {
  border-color: var(--ats-primary);
  color: var(--ats-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--ats-primary);
  color: #ffffff;
}

/* -------------------------
   Contact Section (Updated Modern Version)
   ------------------------- */
.contact-section {
  background-color: #ffffff; /* clean white background */
}

/* New soft gradient card */
.contact-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f3ff 100%);
  border-radius: 1.25rem;
  border: 1px solid var(--ats-border-soft);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
}

/* Make section heading pop */
#contact .section-title {
  color: var(--ats-primary); /* ATS blue */
}

/* Make labels slightly darker for contrast */
#contact .form-label {
  color: #1f2937;
  font-weight: 600;
}

/* Ensure inputs stay crisp */
#contact .form-control {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

/* Slight highlight on focus */
#contact .form-control:focus {
  border-color: var(--ats-primary);
  box-shadow: 0 0 0 2px rgba(0, 97, 255, 0.2);
}

/* -------------------------
   Footer (match navbar exactly)
   ------------------------- */
.footer {
  background-color: var(--ats-navy) !important;
  color: #ffffff;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.25); /* subtle lift to match navbar depth */
}

.footer .text-light,
.footer .text-light-muted,
.footer-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

.footer-link:hover {
  color: var(--ats-primary-bright) !important;
}

/* -------------------------
   Mobile Tweaks
   ------------------------- */
/* Mobile tweaks */
@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 6rem; /* was taller on desktop */
    padding-bottom: 3rem;
    text-align: center;
  }

  .hero-section .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-section .hero-subtitle {
    font-size: 0.98rem;
  }

  .hero-section .d-flex.flex-wrap.gap-3 {
    justify-content: center; /* center the buttons */
  }

  .hero-focus-tags {
    justify-content: center;
  }

  .hero-panel {
    margin-top: 2rem;
  }

  /* Slightly shrink logo on very small screens if needed */
  .ats-logo-header {
    max-height: 32px;
  }
}
