/* 
  Theme: Modern Retro (Nostalgic UI)
  Brand: Ideospect
  Colors: #1E3A5F (Primary Dark), #4A90E2 (Primary Blue), #2C3E50 (Accent Dark)
  Fonts: Roboto Slab (Headings), Source Sans 3 (Body)
*/

:root {
  --primary-dark: #1E3A5F;
  --primary-blue: #4A90E2;
  --accent-dark: #2C3E50;
  --bg-light: #F5F5F5;
  --card-bg: #FFFFFF;
  --text-main: #2C3E50;
  --text-muted: #666666;
  
  --font-heading: 'Roboto Slab', serif;
  --font-body: 'Source Sans 3', sans-serif;
  
  --border-thick: 2px solid var(--primary-dark);
  --radius-md: 12px;
  --shadow-retro: 4px 4px 0px rgba(30, 58, 95, 0.15);
  --shadow-soft: 0 4px 12px rgba(0,0,0,0.05);
  
  --nav-top-height: 60px;
  --nav-bottom-height: 70px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  padding-top: var(--nav-top-height);
  padding-bottom: var(--nav-bottom-height);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.3;
}

p, a, span, li, input, textarea, button {
  font-family: var(--font-body);
}

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

/* Page Container - Mandatory */
.page-container, #page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  box-sizing: border-box;
  position: relative;
}

/* Typography Utilities */
.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary-dark);
}

/* Modern Retro Components */
.retro-card {
  background-color: var(--card-bg);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-retro);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.retro-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px rgba(30, 58, 95, 0.15);
}

/* Grid Background Pattern */
.grid-bg {
  background-image: 
    linear-gradient(rgba(30, 58, 95, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: var(--radius-md);
  padding: 20px 0;
  margin: 0 -1.25rem; /* Bleed to edges on mobile */
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* --- Fixed Top Navigation --- */
.fixed-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-top-height);
  background-color: var(--card-bg);
  border-bottom: var(--border-thick);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 5px;
}

.nav-menu {
  display: none; /* Hidden on mobile by default */
  list-style: none;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 16px;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

/* --- Sections --- */
section {
  margin-bottom: 40px;
}

/* Hero Section */
.hero-section {
  margin-top: 10px;
}

.hero-card {
  position: relative;
  padding: 40px 20px;
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E8E4D9; /* Fallback color */
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 25px;
  font-weight: 500;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.feature-card {
  padding: 20px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.feature-icon {
  margin-bottom: 15px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Insights Section */
.insights-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.insight-card {
  display: flex;
  flex-direction: column;
}

.insight-image-wrapper {
  border-bottom: var(--border-thick);
  background-color: #D0E1F9; /* Tint background */
}

.insight-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  mix-blend-mode: multiply; /* Creates the monotone effect from mockup */
  filter: grayscale(100%) sepia(100%) hue-rotate(180deg) saturate(300%) brightness(0.9) contrast(1.2);
}

.insight-content {
  padding: 20px;
}

.insight-title {
  font-size: 20px;
  margin-bottom: 5px;
}

.insight-meta {
  font-size: 14px;
  color: var(--primary-blue);
  margin-bottom: 10px;
  font-weight: 600;
}

.insight-excerpt {
  font-size: 15px;
  color: var(--text-main);
}

/* CTA Section */
.cta-card {
  background-color: var(--primary-blue);
  padding: 30px 20px;
  text-align: center;
  border-color: var(--primary-dark);
}

.cta-title {
  color: var(--card-bg);
  font-size: 22px;
  margin-bottom: 0;
}

/* Contact Section */
.contact-card {
  padding: 25px 20px;
}

.contact-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 0 20px;
  border-top: 1px solid rgba(30, 58, 95, 0.1);
  margin-top: 40px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.footer-contact {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-contact p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-contact a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-social a {
  color: var(--primary-blue);
  font-size: 24px;
  transition: color 0.3s;
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Fixed Bottom Navigation --- */
.fixed-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-bottom-height);
  background-color: var(--primary-blue);
  border-top: var(--border-thick);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 10px;
  /* Mockup shows a solid bar, matching that aesthetic */
}

.nav-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  min-width: 60px;
  height: 100%;
  transition: all 0.2s ease;
}

.nav-action-btn i {
  font-size: 20px;
  margin-bottom: 2px;
}

.nav-action-btn.active,
.nav-action-btn:hover {
  color: #FFFFFF;
}

.nav-action-btn:active {
  transform: scale(0.95);
}


/* --- Responsive Breakpoints --- */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  :root {
    --nav-top-height: 70px;
  }
  
  .page-container, #page {
    padding: 1.5rem 2rem;
  }
  
  .grid-bg {
    margin: 0;
    padding: 40px;
  }
  
  .hero-card {
    padding: 60px 40px;
    min-height: 350px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  
  .insights-list {
    flex-direction: row;
    gap: 20px;
  }
  
  .insight-card {
    flex: 1;
  }
  
  .insight-image {
    height: 220px;
  }
  
  .contact-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
  }
  
  .cta-card {
    padding: 50px;
  }
  
  .cta-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
  
  /* On large desktop, we can optionally hide bottom nav and rely on top nav, 
     but prompt says "keep bottom nav or adapt". We'll keep it for consistency 
     with the mobile-first requirement, but make it look more like a footer strip. */
  .fixed-bottom-nav {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px 12px 0 0;
    border-left: var(--border-thick);
    border-right: var(--border-thick);
  }
  
  .hero-title {
    font-size: 48px;
  }
}