/* CandlyConverter – shared design system (matches index.html) */
/* Performance: reduce layout shifts and improve rendering */
img { max-width: 100%; height: auto; }
.benefits-section { content-visibility: auto; contain-intrinsic-size: auto 500px; }
.testimonial-section { content-visibility: auto; contain-intrinsic-size: auto 400px; }

:root {
  --primary: #2463eb;
  --primary-dark: #0d5079;
  --accent: #e7215b;
  --hero-start: #ef4b48;
  --hero-end: #0b193a;
  --text: #1e293b;
  --text-muted: #64748b;
}
body { font-family: 'Roboto', sans-serif; }

/* Site header – improved */
.site-header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--hero-start), var(--primary), var(--hero-end)) 1;
  padding: 0.5rem 0;
}
.site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-header .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.site-header .logo-link:hover { opacity: 0.9; }
.site-header .logo-link img {
  height: 2.5rem;
  width: auto;
  max-width: 200px;
  display: block;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}
.site-header .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-header .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(36, 99, 235, 0.08);
}
.site-header .nav-link.active,
.site-header .nav-link[aria-current="page"] {
  color: var(--primary) !important;
  font-weight: 600;
}
.site-header .header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--primary);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(36, 99, 235, 0.3);
}
.site-header .header-cta:hover {
  background: var(--primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
}
.site-header .header-cta i { margin-right: 0.35rem; }

/* Resources dropdown in header */
.site-header .nav-dropdown {
  position: relative;
}
.site-header .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, background 0.2s;
}
.site-header .nav-dropdown-trigger:hover {
  color: var(--primary);
  background: rgba(36, 99, 235, 0.08);
}
.site-header .nav-dropdown-trigger i {
  margin-left: 0.35rem;
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.site-header .nav-dropdown.open .nav-dropdown-trigger i { transform: rotate(180deg); }
.site-header .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 200px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0;
  z-index: 100;
  display: none;
}
.site-header .nav-dropdown.open .nav-dropdown-menu { display: block; }
.site-header .nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.site-header .nav-dropdown-menu a:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.nav-link { transition: color 0.2s ease; }
.nav-link:hover { color: var(--accent) !important; }

/* Page hero – same as main page testimonial block */
.page-hero {
  background: linear-gradient(to bottom right, var(--hero-start), var(--hero-end));
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-hero p { font-size: 1.125rem; opacity: 0.95; max-width: 600px; margin: 0 auto; }

/* Content section – same as index white sections */
.page-content {
  background: #fff;
  padding: 4rem 1.5rem;
}
.page-content .container { max-width: 900px; margin: 0 auto; }
.benefit-card {
  background: linear-gradient(135deg, rgba(240, 240, 240, 0.8), rgba(255, 255, 255, 0.8));
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}
.benefit-icon { font-size: 3rem; color: var(--accent); margin-bottom: 15px; }
.benefit-title { font-size: 1.5rem; font-weight: bold; margin-bottom: 10px; color: #1e293b; }
.benefit-text { font-size: 1rem; color: #4a4a4a; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 180px;
  z-index: 50;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-weight: 500;
  border-radius: 6px;
  margin: 0 6px;
}
.dropdown-menu a:hover { background: #f1f5f9; color: var(--primary); }
.site-hero {
  background: linear-gradient(to bottom right, var(--hero-start), var(--hero-end));
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
}
.site-hero h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.site-hero p { font-size: 1.125rem; opacity: 0.95; max-width: 600px; margin: 0 auto; }
.content-box {
  max-width: 800px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.footer-contact { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; }
.footer-contact a { color: var(--primary); }
.footer-links { flex-wrap: wrap; justify-content: center; gap: 0.25rem; }
.footer-links a { padding: 0.25rem 0.5rem; }

/* Site footer – same as index */
.site-footer {
  background: #fff;
  padding: 2.5rem 1.5rem 0;
  margin-top: 0;
  border-top: 1px solid #f3f4f6;
}
.site-footer img { width: 50%; max-width: 220px; height: auto; margin: 0 auto 1rem; display: block; }
.site-footer .text-tagline { color: rgb(96 96 96); font-size: 0.875rem; max-width: 42rem; margin: 0 auto 1rem; }
.site-footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; font-size: 0.875rem; color: #6b7280; margin-bottom: 0.5rem; }
.site-footer .links a { color: inherit; }
.site-footer .links a:hover { color: #111; }
.site-footer .contact-line { font-size: 0.875rem; color: #6b7280; }
.site-footer .contact-line a { color: var(--primary); }
.site-footer .brand { font-size: 1.125rem; font-weight: 600; color: var(--primary); margin-top: 1rem; }

/* FAQ page */
.faq-q { cursor: pointer; padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #1e293b; background: #fff; }
.faq-q:hover { background: #f8fafc; }
.faq-a { padding: 1rem 1.25rem; background: #f8fafc; color: #475569; display: none; border-bottom: 1px solid #e5e7eb; }
.faq-a.open { display: block; }
.faq-a a { color: var(--primary); }
.faq-icon { transition: transform 0.2s; }
.faq-q.active .faq-icon { transform: rotate(180deg); }

/* Cookie consent banner – site style */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(to top, rgba(11, 25, 58, 0.98), rgba(11, 25, 58, 0.95));
  color: #fff;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  font-family: 'Roboto', sans-serif;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner .cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.cookie-banner .cookie-banner-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.95;
}
.cookie-banner .cookie-banner-text strong { color: #fff; }
.cookie-banner .cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.cookie-banner .cookie-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
  font-family: inherit;
  text-decoration: none;
}
.cookie-banner .cookie-banner-btn:active { transform: scale(0.98); }
.cookie-banner .cookie-banner-btn-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-banner-btn-accept:hover {
  background: var(--primary-dark);
  color: #fff;
}
.cookie-banner .cookie-banner-btn-settings {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cookie-banner .cookie-banner-btn-settings:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.cookie-banner a.cookie-banner-link {
  color: #93c5fd;
  text-decoration: underline;
}
.cookie-banner a.cookie-banner-link:hover { color: #fff; }
