/* ============================================
   RagCafe - Workplace Hospitality, Simplified
   Design System: Freshness, Reliability, Vibrancy
   ============================================ */

:root {
  /* Color Palette - Logo-inspired (deep brown, caramel) + existing */
  --color-logo-brown: #3F2212;
  --color-logo-caramel: #8B572A;
  --color-logo-tan: #c4a574;
  --color-fresh: #2d5a4a;
  --color-fresh-light: #3d7a5f;
  --color-fresh-dark: #1e3d30;
  --color-reliable: #1e3a5f;
  --color-reliable-mid: #2c3e50;
  --color-slate: #34495e;
  --color-slate-light: #4a6572;
  --color-accent: #8B572A;
  --color-accent-light: #a66b3a;
  --color-accent-dark: #6d4520;
  
  /* Neutrals */
  --color-white: #ffffff;
  --color-off-white: #faf8f5;
  --color-grey-100: #f5f2ed;
  --color-grey-200: #e2e8e6;
  --color-grey-300: #c5d1ce;
  --color-grey-400: #94a5a0;
  --color-grey-500: #647873;
  --color-grey-600: #3d4f4a;
  --color-grey-700: #2a3835;
  --color-grey-800: #1a2321;
  --color-black: #0d1210;
  
  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13, 18, 16, 0.06);
  --shadow-md: 0 4px 12px rgba(13, 18, 16, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 18, 16, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-grey-700);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Typography */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--color-reliable);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-grey-500);
  max-width: 700px;
  margin-bottom: var(--space-2xl);
}

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

.section-alt {
  background: var(--color-grey-100);
}

.section-dark {
  background: linear-gradient(135deg, var(--color-logo-brown) 0%, var(--color-logo-caramel) 100%);
  color: var(--color-white);
}

.section-dark .section-title {
  color: var(--color-white);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) 0;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-logo-brown);
  font-weight: 500;
}

.nav-logo-img {
  border-radius: 50%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-grey-600);
}

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

.nav-cta {
  background: var(--color-fresh);
  color: var(--color-white) !important;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
}

.nav-cta:hover {
  background: var(--color-fresh-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-grey-600);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

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

.hero-logo-bg {
  position: absolute;
  inset: 0;
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(63, 34, 18, 0.5) 0%,
    rgba(63, 34, 18, 0.55) 50%,
    rgba(63, 34, 18, 0.8) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease;
}

.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.02em;
  animation: fadeInUp 1s ease 0.2s both;
}

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  animation: fadeInUp 1s ease 0.4s both;
}

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

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

.btn-large {
  padding: var(--space-lg) var(--space-3xl);
  font-size: 1.125rem;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  animation: fadeIn 1s ease 0.8s both;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-top: var(--space-2xl);
}

.content-text .lead {
  font-size: 1.25rem;
  color: var(--color-reliable);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.content-text p {
  margin-bottom: var(--space-lg);
}

.content-text strong {
  color: var(--color-fresh);
}

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Network Cards */
.network-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.network-card {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-align: center;
}

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

.network-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

.network-card h3 {
  font-size: 1.25rem;
  color: var(--color-reliable);
  margin-bottom: var(--space-md);
}

.network-card p {
  font-size: 0.95rem;
  color: var(--color-grey-500);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-logo-tan);
  margin-bottom: var(--space-md);
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.module-item {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-grey-200);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.module-item:hover {
  border-color: var(--color-fresh);
  box-shadow: var(--shadow-sm);
}

.module-item-full {
  grid-column: 1 / -1;
}

.module-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.module-item h4 {
  font-size: 1.1rem;
  color: var(--color-reliable);
  margin-bottom: var(--space-sm);
}

.module-item p {
  font-size: 0.9rem;
  color: var(--color-grey-500);
}

.content-block {
  margin-bottom: var(--space-2xl);
}

.content-block p {
  font-size: 1.1rem;
  color: var(--color-grey-600);
}

/* Clients Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
  align-items: center;
  justify-items: center;
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 80px;
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-grey-200);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.client-logo-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.client-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.client-fallback {
  display: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-grey-500);
  text-align: center;
  line-height: 1.2;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.value-card {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-logo-caramel);
  transition: transform var(--transition-base);
}

.value-card:hover {
  transform: translateX(4px);
}

.value-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-fresh);
  opacity: 0.5;
  margin-bottom: var(--space-sm);
}

.value-card h3 {
  font-size: 1.25rem;
  color: var(--color-reliable);
  margin-bottom: var(--space-md);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--color-grey-500);
}

/* Features List */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.feature-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.feature-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-fresh);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.feature-item h4 {
  font-size: 1.1rem;
  color: var(--color-reliable);
  margin-bottom: var(--space-xs);
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--color-grey-500);
}

/* Platform Cards */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.platform-card {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-accent);
}

.platform-card h3 {
  font-size: 1.25rem;
  color: var(--color-reliable);
  margin-bottom: var(--space-md);
}

.platform-card p {
  font-size: 0.95rem;
  color: var(--color-grey-500);
}

.platform-interactive {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--color-grey-100);
  border-radius: var(--radius-md);
}

.platform-interactive p {
  font-size: 0.95rem;
  color: var(--color-grey-600);
}

/* Virtual & Bulk Features */
.virtual-features,
.bulk-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.virtual-item,
.bulk-item {
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-grey-200);
}

.virtual-item h4,
.bulk-item h4 {
  font-size: 1.1rem;
  color: var(--color-reliable);
  margin-bottom: var(--space-sm);
}

.virtual-item p,
.bulk-item p {
  font-size: 0.95rem;
  color: var(--color-grey-500);
}

/* Additional Grid */
.additional-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.additional-card {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.additional-card:hover {
  box-shadow: var(--shadow-md);
}

.additional-card h4 {
  font-size: 1.1rem;
  color: var(--color-reliable);
  margin-bottom: var(--space-md);
}

.additional-card p {
  font-size: 0.95rem;
  color: var(--color-grey-500);
}

/* Advantage Grid */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.advantage-item {
  padding: var(--space-xl);
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.advantage-item:hover {
  background: var(--color-grey-100);
}

.advantage-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.advantage-item h4 {
  font-size: 1.05rem;
  color: var(--color-reliable);
  margin-bottom: var(--space-sm);
}

.advantage-item p {
  font-size: 0.9rem;
  color: var(--color-grey-500);
}

/* Footer */
.footer {
  background: var(--color-logo-brown);
  color: var(--color-white);
  position: relative;
}

.footer-logo-bg {
  position: absolute;
  inset: 0;
  background-size: 45%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  z-index: 0;
}

.footer-hero {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
  text-align: center;
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: var(--space-lg);
  color: var(--color-white);
}

.footer-tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--space-md);
}

.footer-cta-text {
  margin-bottom: var(--space-xl);
  opacity: 0.85;
}

.contact-info {
  margin-bottom: var(--space-2xl);
}

.contact-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.contact-phone {
  font-size: 1.5rem;
  color: var(--color-accent-light);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-phone:hover {
  color: var(--color-accent);
}

.contact-whatsapp:hover {
  color: #25D366 !important;
}

.whatsapp-icon {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: #25D366;
}

.btn-whatsapp:hover {
  background: #20BD5A;
}

.social-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: #25D366;
}

.social-whatsapp:hover {
  color: #20BD5A;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: var(--space-lg);
}

.social-links a {
  font-size: 0.9rem;
  opacity: 0.8;
}

.social-links a:hover {
  opacity: 1;
  color: var(--color-accent-light);
}

/* Pre-order section content grid override */
#preorder .content-text h3 {
  font-size: 1.2rem;
  color: var(--color-reliable);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

#preorder .content-text h3:first-child {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .content-image {
    order: -1;
    max-height: 400px;
  }
  
  .network-cards {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .platform-cards {
    grid-template-columns: 1fr;
  }
  
  .virtual-features,
  .bulk-features {
    grid-template-columns: 1fr;
  }
  
  .additional-grid {
    grid-template-columns: 1fr;
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .modules-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom .container {
    flex-direction: column;
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .client-logo-item {
    width: 120px;
    height: 70px;
  }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
