/* =============================================
   Envision Digital — Custom Styles
   ============================================= */

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

:root {
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-dark: #0F766E;
  --navy: #1E293B;
  --navy-dark: #0F172A;
  --slate: #475569;
  --slate-light: #94A3B8;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-dark);
}

/* ---- Navigation ---- */
.nav-scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav-link {
  position: relative;
  color: var(--slate);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  text-decoration: none;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: var(--teal);
}

.nav-link.active {
  color: var(--teal);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--teal);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.625rem 1.375rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.625rem 1.375rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1.5px solid #E2E8F0;
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.625rem 1.375rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1.5px solid rgba(255,255,255,0.5);
}

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

/* ---- Hero Section ---- */
.hero-gradient {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #1A2E4A 50%, #0F2A3A 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 5%;
  width: 40%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Trust Bar ---- */
.trust-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 500;
}

.trust-badge svg, .trust-badge .badge-icon {
  color: var(--teal-light);
  flex-shrink: 0;
}

/* ---- Section Styles ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

/* ---- Cards ---- */
.card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.25s;
}

.card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 40px rgba(13, 148, 136, 0.12);
  transform: translateY(-2px);
}

.product-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.product-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.product-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(20, 184, 166, 0.15));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--teal);
}

/* ---- Partner Logos ---- */
.partner-logo-placeholder {
  height: 60px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
  filter: grayscale(0.3);
  opacity: 0.8;
  text-align: center;
}

.partner-logo-placeholder:hover {
  filter: grayscale(0);
  opacity: 1;
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.1);
}

.partner-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

.partner-category {
  font-size: 0.7rem;
  color: var(--slate-light);
  font-weight: 500;
}

/* ---- ISO Badges ---- */
.iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: white;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
}

.iso-badge .iso-icon {
  width: 32px;
  height: 32px;
  background: var(--teal);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  color: white;
}

/* ---- Feature Lists ---- */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.feature-check {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check svg {
  color: white;
}

/* ---- Stats ---- */
.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-light) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Footer ---- */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
}

.footer-heading {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-link {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.625rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--teal-light);
}

/* ---- Blog Cards ---- */
.blog-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s;
}

.blog-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: #CBD5E1;
}

.blog-thumbnail {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-category-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

/* ---- Comparison Table ---- */
.comparison-table {
  border-collapse: collapse;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.9rem;
}

.comparison-table th {
  background: var(--navy-dark);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}

.comparison-table th:first-child {
  border-radius: 12px 0 0 0;
}

.comparison-table th:last-child {
  border-radius: 0 12px 0 0;
}

.comparison-table tr:hover td {
  background: #F8FAFC;
}

.check-yes {
  color: var(--teal);
  font-weight: 700;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #1A3048 100%);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(13, 148, 136, 0.12) 0%, transparent 70%);
}

/* ---- Form ---- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--navy);
  background: white;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-input::placeholder {
  color: #94A3B8;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--navy);
  background: white;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--navy);
  background: white;
  transition: all 0.2s;
  outline: none;
  resize: vertical;
  min-height: 120px;
}

.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--slate);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid #CBD5E1;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--teal);
}

/* ---- Value Pillars ---- */
.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  background: white;
  border: 1px solid #E2E8F0;
  transition: all 0.25s;
}

.value-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.1);
  transform: translateY(-2px);
}

.value-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* ---- Mobile Nav ---- */
#mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #E2E8F0;
  padding: 1rem;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

#mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
}

#mobile-menu a:hover {
  background: #F8FAFC;
  color: var(--teal);
}

#mobile-menu .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

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

.animate-fade-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ---- Network Animation ---- */
.hero-visual {
  position: relative;
}

.node-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(13, 148, 136, 0); }
}

.node-center {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .hero-gradient {
    padding-bottom: 3rem;
  }
}

/* ---- Utility ---- */
.text-teal { color: var(--teal); }
.text-teal-light { color: var(--teal-light); }
.bg-teal { background-color: var(--teal); }
.bg-navy { background-color: var(--navy-dark); }

.divider {
  height: 1px;
  background: #E2E8F0;
  margin: 0;
}

.max-w-site {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .max-w-site {
    padding: 0 2rem;
  }
}

.section-pad {
  padding: 5rem 0;
}

.section-pad-sm {
  padding: 3rem 0;
}

@media (max-width: 640px) {
  .section-pad {
    padding: 3.5rem 0;
  }
}
