/* WorkFlow Styling - Matched strictly to the Proposal PDF */

html {
  scroll-behavior: smooth;
}

:root {
  /* Brand Palette from Proposal / Design System */
  --mr-jade: #05A37F;
  --mr-jade-600: #048469;
  --mr-jade-100: #D6F1E9;
  --mr-brunswick: #013D35; /* Deep Green */
  --mr-blue: #5787B2; /* Horizon Blue */
  --mr-linen: #EDE4DA;
  --mr-canvas: #F2F2F2;
  --mr-sage: #E9EFEC; /* Light background from proposal */
  --mr-amber: #C08A2D; /* Warning/friction */

  /* Semantic */
  --bg-dark: var(--mr-brunswick);
  --bg-light: var(--mr-sage);
  --bg-card: #FFFFFF;
  --text-dark: var(--mr-brunswick);
  --text-light: #FFFFFF;
  --text-muted-dark: #33403B;
  --text-muted-light: rgba(255,255,255,0.7);
  --accent-primary: var(--mr-jade);
  --accent-secondary: var(--mr-blue);

  /* Typography */
  --font-display: 'Alice', serif;
  --font-body: 'Jost', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-muted-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography base */
h1, h2, h3, h4, .alice {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.2;
}

/* Overlines (O V E R V I E W) */
.overline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.overline-blue {
  color: var(--accent-secondary);
}

.overline-amber {
  color: var(--mr-amber);
}

.pill-tag {
  display: inline-block;
  background-color: #E2F0EA;
  color: var(--accent-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 80px 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* 
  Hero Section (Dark Brunswick Green like the Proposal Cover)
*/
.hero-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}

/* Large abstract circle matching the cover - replaced by dynamic blobs */
.hero-dark::before {
  display: none;
}

.hero-dark .container {
  position: relative;
  z-index: 2;
}

.hero-dark h1, .hero-dark h2 {
  color: var(--text-light);
}

.hero-dark .overline {
  color: var(--accent-primary);
}

/* Header/Nav inside dark area */
.header-dark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}
.header-dark .logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-dark .logo-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.header-dark .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Make the logo white */
  filter: brightness(0) invert(1); 
}
.header-dark .logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-light);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.nav-links a:hover {
  opacity: 0.7;
}

/* Cards (Like the white boxes on the sage background) */
.card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #DCE5E0;
  box-shadow: 0 4px 20px rgba(1, 61, 53, 0.03);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow for cards */
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(5, 163, 127, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(5, 163, 127, 0.15), 0 0 0 2px rgba(5, 163, 127, 0.3);
  border-color: rgba(5, 163, 127, 0.5);
}

.card:hover::after {
  opacity: 1;
}

.card-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-radius: 12px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(1, 61, 53, 0.15);
}
.card-dark h3 {
  color: var(--text-light);
}
.card-dark .text-muted {
  color: var(--text-muted-light);
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover {
  background-color: var(--mr-jade-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(5, 163, 127, 0.3);
}
.btn:active {
  transform: scale(0.97);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-outline:hover {
  background-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(5, 163, 127, 0.2);
}

/* Graphics & Animations */
.infinity-svg path {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw-flow 5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
.infinity-svg path:nth-child(2) {
  animation-delay: -2.5s;
}
@keyframes draw-flow {
  0% { stroke-dashoffset: 260; opacity: 0.4; }
  10% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Mindfulness Duck Logo Pulse */
@keyframes soft-pulse-wave {
  0% { box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 0 0 rgba(5, 163, 127, 0.4); }
  70% { box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 0 25px rgba(5, 163, 127, 0); }
  100% { box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 0 0 rgba(5, 163, 127, 0); }
}
.duck-logo {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.duck-logo:hover, .duck-logo:focus, .duck-logo:active {
  animation: soft-pulse-wave 1.5s infinite;
  transform: scale(1.05);
}

/* Ambient Flow Blobs */
.ambient-flow {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  filter: blur(100px);
  border-radius: 50%;
  opacity: 0.4;
  animation: float-blob 25s infinite cubic-bezier(0.4, 0, 0.2, 1) alternate;
}
.blob-1 {
  width: 45vw; height: 45vw;
  background-color: var(--mr-jade);
  top: -10%; left: -10%;
}
.blob-2 {
  width: 40vw; height: 40vw;
  background-color: var(--mr-blue);
  bottom: -15%; right: -5%;
  animation-delay: -7s;
  animation-duration: 20s;
}
.blob-3 {
  width: 30vw; height: 30vw;
  background-color: var(--mr-jade-100);
  top: 20%; left: 40%;
  animation-delay: -14s;
  opacity: 0.15;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(6vw, -4vh) scale(1.1) rotate(15deg); }
  66% { transform: translate(-4vw, 6vh) scale(0.9) rotate(-10deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }

/* Image Hover effects */
.hover-scale {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hover-scale-parent:hover .hover-scale {
  transform: scale(1.05);
}

/* Header transition */
.header-dark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header-scrolled {
  background-color: rgba(1, 61, 53, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 40px !important;
  margin-bottom: 0 !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Utility */
.text-muted {
  color: var(--text-muted-dark);
}

/* Netlify Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background-color: rgba(255,255,255,0.05);
  color: var(--mr-linen);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background-color: rgba(255,255,255,0.1);
}
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* Mobile Responsiveness Overrides */
@media (max-width: 768px) {
  .hero-dark { padding: 80px 0 60px; }
  .hero-dark h1 { font-size: 2.5rem !important; }
  .hero-dark p { font-size: 1.1rem !important; }
  .section { padding: 50px 0; }
  h2 { font-size: 2rem !important; }
  .container { padding: 0 20px; }
  
  .header-dark { 
    flex-direction: column; 
    gap: 20px; 
    align-items: flex-start; 
    padding: 16px 20px !important;
  }
  .header-scrolled {
    flex-direction: row;
    gap: 12px;
  }
  .nav-links { 
    gap: 12px; 
    flex-wrap: wrap; 
    justify-content: flex-start; 
    font-size: 0.85rem;
  }
  
  .grid-2, .grid-3 { gap: 24px; }
  .contact-form { width: 100%; max-width: 100%; }
  .blob { filter: blur(60px); }
  
  .card-dark { padding: 24px; }
  .card-dark h3 { font-size: 1.5rem !important; }
  .card-dark .duck-logo { width: 180px !important; height: 180px !important; }
}
