/* DORA Toolkit - Custom Styles */
/* Tailwind CSS via CDN handles most styling; these are overrides and custom components */

:root {
  --color-primary: #1B2A4A;
  --color-primary-light: #2D4A7A;
  --color-accent: #0D9488;
  --color-accent-hover: #0F766E;
  --color-surface: #F8FAFC;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --color-cta: #0D9488;
  --color-cta-hover: #0F766E;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #1B2A4A 0%, #2D4A7A 50%, #1a3a5c 100%);
}

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--color-cta);
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-cta:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: transparent;
  color: white;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: transparent;
  color: var(--color-cta);
  font-weight: 600;
  border: 2px solid var(--color-cta);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--color-cta);
  color: white;
}

/* Product cards */
.product-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.2s ease;
}
.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.1);
  transform: translateY(-2px);
}

/* Feature list checkmarks */
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.375rem 0;
}
.feature-list li::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--color-accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
  margin-top: 2px;
}

/* Trust badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #166534;
}

/* Price tag */
.price-tag {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.price-tag .currency {
  font-size: 1.5rem;
  vertical-align: super;
  font-weight: 600;
}
.price-tag .note {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}
.faq-question:hover {
  color: var(--color-accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.faq-answer.open {
  max-height: 500px;
  padding-bottom: 1.25rem;
}
.faq-chevron {
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.faq-chevron.rotated {
  transform: rotate(180deg);
}

/* Blog post card */
.blog-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}
.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* Bundle savings badge */
.savings-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: white;
  padding: 2rem;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer a {
  transition: color 0.2s ease;
}
footer a:hover {
  color: var(--color-accent) !important;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero slideshow */
.hero-slideshow {
  position: relative;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}
.hero-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Print styles */
@media print {
  nav, footer, .no-print { display: none !important; }
  .hero-gradient { background: #1B2A4A !important; }
}
