/* ============================================
   FRUITRIDGE CONSULTING - MODERN CSS
   Built: December 2025
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Colors */
  --primary-blue: #1e4a7a;
  --primary-blue-dark: #0d2840;
  --primary-blue-light: #2a5f99;
  --accent-cyan: #4a90a4;
  --accent-cyan-light: #6bb3c9;
  
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --near-black: #1a1a2e;
  
  /* Typography */
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  --space-huge: 8rem;
  
  /* Layout */
  --max-width: 1400px;
  --content-width: 720px;
  --narrow-width: 600px;
  
  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(74, 144, 164, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--dark-gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--accent-cyan);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-blue-dark);
}

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

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
}

.lead {
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--medium-gray);
}

.statement {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--primary-blue-dark);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo img {
  height: 65px;
  width: auto;
  transition: transform var(--duration-fast) ease;
}

.logo:hover img {
  transform: scale(1.02);
}

/* --- Navigation --- */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-gray);
  padding: var(--space-xs) 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--primary-blue);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-gray);
  margin: 5px 0;
  transition: all var(--duration-fast) ease;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--primary-blue-dark);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 40, 64, 0.9) 0%,
    rgba(30, 74, 122, 0.8) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: var(--space-xxl) 0;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero-tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s forwards;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-quart);
  text-decoration: none;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-blue-dark);
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-dark {
  background: var(--primary-blue-dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Sections --- */
.section {
  padding: var(--space-huge) 0;
}

.section-light {
  background: var(--off-white);
}

.section-dark {
  background: var(--primary-blue-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xxl);
}

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

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Bento Grid (5 Vs) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-md);
}

.bento-card {
  background: var(--white);
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

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

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.bento-card:hover::before {
  opacity: 1;
}

/* Bento card sizes */
.bento-large {
  grid-column: span 7;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-medium {
  grid-column: span 5;
}

.bento-small {
  grid-column: span 4;
}

.bento-card .v-letter {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-cyan);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.bento-large .v-letter {
  font-size: 8rem;
}

.bento-card h3 {
  color: var(--primary-blue-dark);
  margin-bottom: var(--space-sm);
}

.bento-card p {
  color: var(--medium-gray);
  margin-bottom: 0;
  font-size: 1rem;
}

.bento-large p {
  font-size: 1.125rem;
}

/* --- Problem Statement Section --- */
.problem-section {
  background: var(--near-black);
  color: var(--white);
  padding: var(--space-huge) 0;
  position: relative;
}

.problem-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.problem-stat {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.problem-content h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.problem-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto var(--space-md);
}

/* --- Services Preview --- */
.services-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out-expo);
  border: 1px solid var(--light-gray);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-cyan);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--medium-gray);
  margin-bottom: var(--space-md);
}

.service-link {
  font-weight: 600;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.service-link::after {
  content: '→';
  transition: transform var(--duration-fast) ease;
}

.service-link:hover::after {
  transform: translateX(4px);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  padding: var(--space-huge) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

/* --- Footer --- */
.site-footer {
  background: var(--near-black);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-lg);
}

.footer-logo img {
  height: 65px;
  opacity: 0.9;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.6;
}

/* --- Page Heroes (Inner Pages) --- */
.page-hero {
  padding: calc(80px + var(--space-xxl)) 0 var(--space-xxl);
  background: var(--primary-blue-dark);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 40, 64, 0.85) 0%, rgba(30, 74, 122, 0.75) 100%);
  z-index: 2;
}

.page-hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* --- Highlight Box --- */
.highlight-box {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: var(--space-xl);
  border-radius: 12px;
  margin: var(--space-xl) 0;
}

.highlight-box h3 {
  color: var(--accent-cyan-light);
  margin-bottom: var(--space-sm);
}

.highlight-box p {
  color: rgba(255, 255, 255, 0.9);
}

/* --- Advocacy Section --- */
.advocacy-section {
  background: var(--primary-blue-dark);
  color: var(--white);
  padding: var(--space-huge) 0;
}

.advocacy-section h2 {
  color: var(--white);
}

.advocacy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
}

.advocacy-text h3 {
  color: var(--accent-cyan);
  font-size: 1.25rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.advocacy-text h3:first-child {
  margin-top: 0;
}

.advocacy-text p {
  color: rgba(255, 255, 255, 0.85);
}

.advocacy-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* --- Content Sections --- */
.content-section {
  padding: var(--space-xxl) 0;
}

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* --- Article Styles --- */
.article-tag {
  display: inline-block;
  background: var(--accent-cyan);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
}

.article-meta {
  color: var(--medium-gray);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

/* --- Articles Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.article-card {
  background: var(--white);
  border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-cyan);
}

.article-card h3 {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.article-card h3 a {
  color: var(--primary-blue-dark);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent-cyan);
}

.article-card p {
  color: var(--medium-gray);
  font-size: 1rem;
  margin-bottom: 0;
}

.article-card .article-meta {
  margin-bottom: var(--space-sm);
}

/* --- Blockquote --- */
blockquote {
  border-left: 4px solid var(--accent-cyan);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary-blue-dark);
  line-height: 1.5;
}

/* --- Featured Article --- */
.featured-article {
  background: var(--white);
  border-radius: 16px;
  padding: var(--space-xxl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
  position: relative;
  overflow: hidden;
}

.featured-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.contact-info h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--primary-blue);
}

.contact-detail {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--off-white);
  border-radius: 8px;
  transition: all var(--duration-fast) ease;
}

.contact-detail:hover {
  background: var(--light-gray);
}

.contact-detail .icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  color: var(--primary-blue-dark);
  margin-bottom: var(--space-xs);
}

.contact-detail a {
  color: var(--accent-cyan);
  font-weight: 500;
}

.contact-card {
  background: var(--white);
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
}

.contact-card h3 {
  color: var(--primary-blue-dark);
  margin-bottom: var(--space-lg);
}

.contact-card p {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--light-gray);
}

.contact-card p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

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

/* --- Lists in Content --- */
.content-narrow ul {
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
}

.content-narrow li {
  margin-bottom: var(--space-sm);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* --- Industries Grid --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.industry-item {
  padding: var(--space-md);
  background: var(--white);
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  color: var(--primary-blue-dark);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) ease;
}

.industry-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .bento-large {
    grid-column: span 6;
    grid-row: span 1;
  }
  
  .bento-medium {
    grid-column: span 3;
  }
  
  .bento-small {
    grid-column: span 3;
  }
  
  .services-preview {
    grid-template-columns: 1fr 1fr !important;
  }
  
  .advocacy-content {
    grid-template-columns: 1fr;
  }
  
  .advocacy-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --space-huge: 5rem;
    --space-xxl: 3rem;
  }
  
  .header-inner {
    padding: var(--space-sm);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .hero {
    min-height: auto;
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
  }
  
  .hero-content {
    padding: var(--space-xl) 0;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-large,
  .bento-medium,
  .bento-small {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }
  
  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* 5 Vs compact grid on mobile */
  .section-dark [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .container,
  .container-narrow {
    padding: 0 var(--space-md);
  }
  
  .btn {
    width: 100%;
  }
}
