
/* =========================================================
   ESGRO — Minimal Corporate Edition
   Light Fidelity · Professional Typography · Subtle Motion
   ========================================================= */

:root {
  /* Color Palette - Minimal Light Corporate */
  --bg-deep: transparent;
  --bg-surface: rgba(255, 255, 255, 0.4);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-bright: rgba(255, 255, 255, 0.9);
  
  --primary: #0070f3; /* Professional Corporate Blue */
  --primary-light: #e0f2fe;
  --accent-cyan: #00d1ff; /* From user image */
  --accent-pink: #fbcfe8; /* From user image */
  
  --text-main: #111827; /* Gray 900 */
  --text-muted: #4b5563; /* Gray 600 */
  --text-dim: #9ca3af; /* Gray 400 */
  
  --border-subtle: #e5e7eb; /* Gray 200 */
  --border-focus: #3b82f6;
  
  /* Typography */
  --font-display: "Outfit", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  
  /* Layout & Effects */
  --max-width: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --glass-blur: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

*::selection {
  background: var(--primary-light);
  color: var(--primary);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: linear-gradient(135deg, #d6f9f9 0%, #fbcfe8 100%);
  background-attachment: fixed;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Background Effects - Inspired by User Image */
.bg-mesh {
  display: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; }

p {
  color: var(--text-muted);
  font-size: 1rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.75rem;
}

.accent-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur));
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 993px) {
  .nav {
    justify-content: space-between;
  }
}

.brand img {
  height: 44px;
  transition: opacity 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 48px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: 0.3s var(--ease-premium);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { bottom: 9px; transform: rotate(-45deg); }

@media (max-width: 992px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-glass-bright);
    backdrop-filter: blur(var(--glass-blur));
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    gap: 32px;
    transition: 0.4s var(--ease-premium);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { 
    font-size: 1.5rem; 
    text-align: center; 
    color: var(--text-main);
    font-weight: 600;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease-premium);
  cursor: pointer;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: white;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-surface);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Minimal Cards */
.glass-card {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.stat-item h3 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* Service Grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.solution-card {
  background: var(--bg-glass-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all 0.4s var(--ease-premium);
  display: flex;
  flex-direction: column;
}

.solution-img-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.solution-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.solution-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.solution-content {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.solution-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.solution-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.solution-card:hover .solution-img-box img {
  transform: scale(1.08);
}

.svc-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.svc-link:hover {
  gap: 12px;
}

/* Footer */
.footer {
  background: var(--bg-surface);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-grid > div:first-child {
  grid-column: span 2;
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer ul a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Grid Helpers */
.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 992px) {
  .grid-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-split > div { order: 0 !important; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
}

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

/* Footer Responsive */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-premium);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* Service Section Enhancements */
.service-section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.service-section:last-of-type {
  border-bottom: none;
}

.service-list {
  list-style: none;
  padding: 0;
  margin-top: 32px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.service-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .service-section {
    padding: 80px 0;
  }
}
