/* ═══════════════════════════════════════════════════════════
   WAYPOINT - AI WORKFLOW AUTOMATION
   Modern, clean design with Southern Alberta aesthetic
   ═══════════════════════════════════════════════════════════ */

/* ═══════════ CSS VARIABLES ═══════════ */
:root {
  /* Colors - Navy & Gold Prairie Palette */
  --navy-dark: #0F2B4C;
  --navy-medium: #1a3e5f;
  --navy-light: #2d5373;
  --gold: #D4A843;
  --gold-light: #E5C06F;
  --gold-dark: #B8912C;
  
  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Typography */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --section-padding: 120px;
  --section-padding-mobile: 60px;
  
  /* Animations */
  --transition-base: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════ RESET & BASE ═══════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ═══════════ TYPOGRAPHY ═══════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

em {
  font-style: italic;
  color: var(--gold);
}

/* ═══════════ UTILITIES ═══════════ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy-dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(15, 43, 76, 0.15);
}

.btn-primary:hover {
  background: var(--navy-medium);
  box-shadow: 0 6px 20px rgba(15, 43, 76, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--navy-dark);
  border: 2px solid var(--navy-dark);
}

.btn-secondary:hover {
  background: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* ═══════════ NAVIGATION ═══════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-smooth);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo svg {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition-base);
}

.nav-links a:hover {
  color: var(--navy-dark);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--navy-dark);
  color: var(--white) !important;
  border-radius: 6px;
  transition: all var(--transition-smooth);
}

.nav-cta:hover {
  background: var(--navy-medium);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-dark);
  transition: all var(--transition-base);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 2rem;
    border-top: 1px solid var(--gray-200);
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-smooth);
  }
  
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  
  .mobile-toggle {
    display: flex;
  }
}

/* ═══════════ HERO ═══════════ */
.hero {
  padding: 140px 0 var(--section-padding);
  background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-dark);
  margin-bottom: 2rem;
}

.hero-badge-dot svg {
  display: block;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-proof {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
}

.hero-proof-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.hero-proof-text {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.hero-proof-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(15, 43, 76, 0.1);
}

.hero-card-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.workflow-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border-radius: 8px;
  color: var(--gold);
}

.workflow-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.workflow-text strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.workflow-text span {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.workflow-connector {
  width: 2px;
  height: 24px;
  background: var(--gray-200);
  margin: 0.5rem 0 0.5rem 1.25rem;
}

.hero-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--navy-dark);
  color: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 43, 76, 0.3);
}

.hero-float-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.2);
  border-radius: 8px;
  color: var(--gold);
}

.hero-float-text {
  font-size: 1rem;
  font-weight: 600;
}

.hero-float-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-float {
    position: static;
    margin-top: 2rem;
  }
}

/* ═══════════ PROBLEMS ═══════════ */
.problems {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.problem-card {
  padding: 2rem;
  background: var(--gray-50);
  border-radius: 12px;
  transition: all var(--transition-smooth);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 43, 76, 0.1);
}

.problem-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 12px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.problem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ═══════════ SERVICES ═══════════ */
.services {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(15, 43, 76, 0.1);
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border-radius: 12px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(212, 168, 67, 0.1);
  color: var(--gold-dark);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
}

/* ═══════════ PROCESS ═══════════ */
.process {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.process-step {
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: var(--navy-dark);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
}

.process-step h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* ═══════════ INDUSTRIES ═══════════ */
.industries {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.industry-card {
  padding: 2.5rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-smooth);
}

.industry-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 43, 76, 0.1);
}

.industry-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border-radius: 12px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.industry-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.industry-card p {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.industry-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.industry-example,
.industry-tag {
  padding: 0.375rem 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 4px;
}

/* ═══════════ RESULTS / ROI ═══════════ */
.results {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.roi-card {
  background: var(--navy-dark);
  border-radius: 16px;
  padding: 3rem;
  color: var(--white);
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.roi-stat {
  padding: 1.5rem;
}

.roi-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.roi-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.roi-example {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  text-align: center;
}

.roi-example p {
  font-size: 1.125rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.roi-source {
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 500;
}

/* ═══════════ PRICING ═══════════ */
.pricing {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  padding: 2.5rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--navy-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 43, 76, 0.1);
}

.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(212, 168, 67, 0.15);
}

.pricing-card.featured:hover {
  box-shadow: 0 20px 40px rgba(212, 168, 67, 0.25);
}

.pricing-head {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy-dark);
  font-family: var(--font-display);
}

.pricing-amount span {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-500);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.pricing-check {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-body .btn {
  width: 100%;
  margin-top: auto;
}

/* ═══════════ ABOUT ═══════════ */
.about {
  padding: var(--section-padding) 0;
  background: var(--navy-dark);
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
}

.about-logo-large {
  margin-bottom: 2rem;
}

.about-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
  font-family: var(--font-display);
}

.about-content .section-label {
  color: var(--gold-light);
}

.about-content h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.about-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.about-value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-value-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.2);
  border-radius: 8px;
  color: var(--gold-light);
}

.about-value span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
}

@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-values {
    grid-template-columns: 1fr;
  }
}

/* ═══════════ DIFFERENT SECTION ═══════════ */
.different {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
}

/* ═══════════ FAQ ═══════════ */
.faq {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-dark);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
}

/* ═══════════ CTA ═══════════ */
.cta {
  padding: var(--section-padding) 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.cta-note {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.cta-note a {
  color: var(--gold-light);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ═══════════ FOOTER ═══════════ */
footer {
  padding: 4rem 0 2rem;
  background: var(--navy-dark);
  color: var(--white);
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-base);
}

.footer-col a:hover {
  color: var(--gold-light);
}

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

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

/* ═══════════ MOBILE RESPONSIVE ═══════════ */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .hero {
    padding-top: 100px;
  }
  
  .hero-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .hero-proof-divider {
    display: none;
  }
  
  .services-grid,
  .problems-grid,
  .industries-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

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

/* ═══════════ JAVASCRIPT INTERACTIONS ═══════════ */
.faq-item.active .faq-question {
  color: var(--gold);
}
