/**
 * Taskwise Common Styles
 * Shared across all public marketing pages
 */

/* ===== Skip to Content ===== */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 10001;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
  white-space: nowrap;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* ===== Mobile Menu (proper full-screen overlay) ===== */
@media (max-width: 768px) {
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 39, 68, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 80px 24px;
    transform: none;
  }
  .nav-links.mobile-open a {
    font-size: 1.25rem;
    color: #fff;
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #fff;
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cookie-banner-content {
  flex: 1;
}
.cookie-banner-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.cookie-banner-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}
.cookie-banner-content a {
  color: #22d3ee;
  text-decoration: none;
}
.cookie-banner-content a:hover {
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}
.cookie-btn-accept {
  background: #2563eb;
  color: #fff;
}
.cookie-btn-accept:hover {
  background: #1d4ed8;
}
.cookie-btn-essential {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.cookie-btn-essential:hover {
  background: rgba(255, 255, 255, 0.2);
}
.cookie-btn-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 16px;
}
.cookie-btn-settings:hover {
  color: #fff;
}
@media (max-width: 768px) {
  .cookie-banner-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .cookie-banner-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== Noscript Message ===== */
.noscript-message {
  background: #fef3c7;
  border-bottom: 2px solid #f59e0b;
  color: #92400e;
  text-align: center;
  padding: 16px 24px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== Industries Section (replaces inline styles on index.html) ===== */
.industries-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.industries-feature-grid .feature-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.industries-feature-grid .feature-card h3 {
  color: var(--primary, #2563eb);
}
.industries-view-all {
  text-align: center;
}
.industries-view-all .btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
}
