/* ==========================================================================
   IGP — Inbound Growth Partner (Bento Redesign)
   Design System: Navy + Coral with Extreme Radius & Bento Blocks
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* -- Primary Palette -- */
  --color-primary: #0D1B3E;      /* Midnight Navy — authority, depth */
  --color-primary-light: #1E3A6E;/* Active Navy — nav, sections */
  --color-primary-dark: #080F24; /* Deep Navy — footer, dark blocks */
  --color-nav-bg: #FFFFFF;

  /* -- Accent Palette -- */
  --color-accent: #FF6B4A;       /* Electric Coral — CTAs, emphasis */
  --color-accent-light: #FF8F75; /* Soft Coral — hover, secondary */

  /* -- Neutral Palette -- */
  --color-neutral-900: #111827;
  --color-neutral-700: #374151;
  --color-neutral-400: #9CA3AF;
  --color-neutral-200: #E5E7EB;
  --color-neutral-100: #F3F4F6;
  --color-neutral-50: #FFFFFF; /* Pure white for outer body in bento */
  --color-white: #FFFFFF;

  /* -- Spacing Scale (8px rhythm) -- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 96px;
  --space-11: 128px;
  --space-12: 160px;

  /* -- Typography -- */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* -- Borders & Shadows (EXTREME RADIUS) -- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-2xl: 64px;
  --radius-pill: 9999px;
  
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-lift: 0 16px 40px rgba(13, 27, 62, 0.1);
  --shadow-glow: 0 8px 32px rgba(255, 107, 74, 0.4);
  
  /* -- Transitions -- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-neutral-700);
  background-color: var(--color-neutral-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--space-4); /* margin at bottom of site */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.text-display { 
  font-size: clamp(3rem, 7vw, 5.5rem); 
  font-weight: 800; 
  line-height: 1.05; 
  letter-spacing: -0.04em; 
}
.text-h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.text-h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;}
.text-h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; line-height: 1.2; }
.text-h4 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.text-body-lg { font-size: 1.25rem; font-weight: 400; line-height: 1.6;}
.text-small { font-size: 0.9375rem; line-height: 1.5; }
.text-caption { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

a { color: var(--color-primary-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent); }
img, picture, video { max-width: 100%; display: block; }

/* ==========================================================================
   Bento Block Layout (Floating massive rounded sections)
   ========================================================================== */

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 768px) { .container { max-width: 720px; padding: 0 var(--space-5); } }
@media (min-width: 1024px) { .container { max-width: 1140px; padding: 0 var(--space-6); } }
@media (min-width: 1440px) { .container { max-width: 1320px; } }

/* The new massive dark block wrapper */
.bento-block-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-neutral-200);
  border-radius: var(--radius-xl);
  margin: var(--space-4);
  padding: var(--space-9) 0;
  overflow: hidden;
}
@media (min-width: 1024px) { 
  .bento-block-dark { 
    margin: var(--space-6) auto;
    border-radius: var(--radius-2xl);
    padding: var(--space-12) 0;
    max-width: 1400px; /* bounds it nicely in ultra wide screens */
  } 
}

.bento-block-dark h1, .bento-block-dark h2, .bento-block-dark h3, .bento-block-dark h4 { color: var(--color-white); }
.bento-block-dark .text-neutral-700 { color: var(--color-neutral-400); }

/* The standard light section (without huge wrappers, just paddings) */
.section { padding: var(--space-8) 0; }
@media (min-width: 768px) { .section { padding: var(--space-10) 0; } }
@media (min-width: 1024px) { .section { padding: var(--space-12) 0; } }

/* Grid Utilities */
.grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.text-center { text-align: center; }

/* ==========================================================================
   UI Components (Redesigned for Bento)
   ========================================================================== */

/* Buttons - Now fully pill shaped */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 0 var(--space-6);
  min-height: 56px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none !important;
}

@media (max-width: 767px) {
  .btn { font-size: 0.9375rem; min-height: 48px; padding: 0 var(--space-5); }
}

.btn-primary { background-color: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-primary-light); transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--color-white); }

.btn-secondary { background-color: transparent; color: var(--color-primary); border: 2px solid var(--color-neutral-200); }
.btn-secondary:hover { border-color: var(--color-primary); background-color: var(--color-primary); color: var(--color-white); }
.bento-block-dark .btn-secondary { color: white; border-color: rgba(255,255,255,0.2); }
.bento-block-dark .btn-secondary:hover { background: white; color: var(--color-primary-dark); }

.btn-cta { background-color: var(--color-accent); color: var(--color-primary-dark); }
.btn-cta:hover { background-color: var(--color-accent-light); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* Stylized Highlight Pill (Like "Creative" in reference) */
.highlight-pill {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  transform: rotate(-2deg);
  line-height: 1.1;
  margin: 0 4px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-coral { background-color: var(--color-accent); color: var(--color-primary-dark); }
.badge-navy { background-color: rgba(13, 27, 62, 0.05); color: var(--color-primary); border: 1px solid rgba(13,27,62,0.1); }
.bento-block-dark .badge-navy { background: rgba(255,255,255,0.1); color: white; border-color: transparent; }

/* Bento Cards */
.card-bento {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--color-neutral-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .card-bento { border-radius: var(--radius-xl); padding: var(--space-6); }
}

.card-bento:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.bento-block-dark .card-bento {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
  color: var(--color-neutral-200);
}
.bento-block-dark .card-bento:hover { background: rgba(255,255,255,0.06); }

/* Circular Arrow Icon inside Cards */
.card-arrow {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: white;
  align-items: center; justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-base);
}
.bento-block-dark .card-bento:hover .card-arrow { background: var(--color-accent); transform: rotate(45deg); color: var(--color-primary-dark); }

/* Monochrome to Color Hover Images */
.img-mono-hover {
  filter: grayscale(100%) contrast(1.1);
  border-radius: var(--radius-md);
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.card-bento:hover .img-mono-hover {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.02);
}

.img-wrapper-radius {
   overflow: hidden;
   border-radius: var(--radius-md);
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 80px;
  background-color: transparent;
  z-index: 1000;
  transition: all var(--transition-base);
}
.site-header.scrolled {
  height: 64px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--color-primary); text-decoration: none !important; display: flex; align-items: center; gap: var(--space-2); }
.logo span { color: var(--color-accent); }
.desktop-nav { display: none; }
@media (min-width: 1024px) {
  .desktop-nav { display: flex; align-items: center; gap: var(--space-6); background: white; padding: 4px 4px 4px 24px; border-radius: var(--radius-pill); box-shadow: var(--shadow-soft); border: 1px solid var(--color-neutral-100);}
  .desktop-nav a.nav-link { color: var(--color-neutral-700); font-weight: 500; font-size: 0.9375rem; }
  .desktop-nav a.nav-link:hover { color: var(--color-primary); text-decoration: none; }
  .mobile-menu-btn { display: none; }
}
.mobile-menu-btn { background: none; border: none; cursor: pointer; color: var(--color-primary); padding: var(--space-2); }
.mobile-menu-btn svg { width: 24px; height: 24px; }

/* Scroll Reveal Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Spinning Badge / Text Circle */
.spinning-badge {
  width: 120px;
  height: 120px;
  position: absolute;
  right: var(--space-4);
  bottom: -60px;
  z-index: 10;
  animation: spin 15s linear infinite;
  background: var(--color-accent);
  border-radius: 50%;
  border: 8px solid var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lift);
}
.spinning-badge svg { fill: var(--color-primary-dark); width: 60px; height: 60px; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Footer */
.site-footer .footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.875rem;
  color: var(--color-neutral-400);
}
@media(min-width: 768px){ .site-footer .footer-bottom { flex-direction: row; justify-content: space-between; } }
