/**
 * Dolan Accountancy sidebar promo (right column, front page).
 * Brand colours: Dark Blue #2E4E76 · Light Blue #78C7C8 · Grey #5D5D5E
 * Font: Open Sans
 *
 * Tuned for a col-lg-4 / col-xl-4 sidebar (~330–430px wide).
 */

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

/* ── Scoped font ─────────────────────────────────────────────── */
.da-sidebar-ad,
.da-sidebar-ad * {
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Wrapper ─────────────────────────────────────────────────── */
.da-sidebar-ad {
  margin-top: 0.25rem;
  position: sticky;
  top: 1.25rem;
  text-align: left;
}

.da-sidebar-sponsored {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9b9b9c;
  margin: 0 0 0.55rem 0.15rem;
}

/* ── Main promo card ─────────────────────────────────────────── */
.da-promo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(46, 78, 118, 0.12);
  box-shadow:
    0 1px 2px rgba(46, 78, 118, 0.04),
    0 12px 36px -8px rgba(46, 78, 118, 0.18);
  margin-bottom: 1rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.da-promo-card:hover {
  box-shadow:
    0 1px 2px rgba(46, 78, 118, 0.05),
    0 18px 44px -10px rgba(46, 78, 118, 0.24);
}

.da-promo-card__header {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(120, 199, 200, 0.18) 0%, rgba(120, 199, 200, 0) 60%),
    linear-gradient(180deg, #f5fbfc 0%, #ffffff 100%);
  padding: 1.5rem 1.25rem 1.5rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(120, 199, 200, 0.28);
}

/* Light-blue accent line */
.da-promo-card__header::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #78c7c8 0%, #9dd4d5 50%, #78c7c8 100%);
}

.da-promo-card__header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: #fff;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.da-promo-card__logo-link {
  display: block;
  position: relative;
  z-index: 1;
}

.da-promo-card__logo {
  display: block;
  max-width: 184px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.da-promo-card__body {
  background: #fff;
  padding: 0.9rem 1.4rem 1.45rem;
}

/* ── Price block ─────────────────────────────────────────────── */
.da-promo-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0 0 0.85rem;
}

.da-promo-price__amount {
  font-size: 1.875rem;
  font-weight: 800;
  color: #2e4e76;
  line-height: 1;
  letter-spacing: -0.01em;
}

.da-promo-price__period {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5d5d5e;
}

.da-promo-price__badge {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1d4f50;
  background: linear-gradient(135deg, #c8ecec 0%, #a6dedf 100%);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  line-height: 1;
  margin-left: auto;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(120, 199, 200, 0.55);
}

/* ── Headline & sub-copy ─────────────────────────────────────── */
.da-promo-card__headline {
  font-size: 1.1875rem;
  font-weight: 800;
  color: #2e4e76;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.da-promo-card__sub {
  font-size: 0.875rem;
  color: #5d5d5e;
  line-height: 1.5;
  margin: 0 0 1rem;
}

/* ── Feature list ────────────────────────────────────────────── */
.da-promo-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  color: #2e2e2f;
  line-height: 1.45;
}

.da-promo-features li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
}

.da-promo-features li:last-child {
  margin-bottom: 0;
}

.da-promo-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 1.05rem;
  height: 1.05rem;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2378C7C8' fill-opacity='0.22'/%3E%3Cpath d='M4.5 8.25 6.9 10.6 11.5 5.5' stroke='%232E4E76' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── CTA button ──────────────────────────────────────────────── */
.da-promo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #3a6694 0%, #2e4e76 100%);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 18px -2px rgba(46, 78, 118, 0.38);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.da-promo-cta::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8h10m0 0L8.5 3.5M13 8l-4.5 4.5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform 0.18s ease;
}

.da-promo-cta:hover {
  color: #fff;
  background: linear-gradient(180deg, #2e4e76 0%, #1f3a5d 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 10px 24px -4px rgba(46, 78, 118, 0.5);
  transform: translateY(-1px);
}

.da-promo-cta:hover::after {
  transform: translateX(2px);
}

.da-promo-cta:focus-visible {
  outline: 2px solid #78c7c8;
  outline-offset: 3px;
}

/* ── Trust note ──────────────────────────────────────────────── */
.da-promo-note {
  font-size: 0.75rem;
  color: #9b9b9c;
  text-align: center;
  margin: 0.7rem 0 0;
}

/* ── Trustpilot strip (card footer) ──────────────────────────── */
.da-tp-strip {
  display: block;
  background: #f7f9fa;
  border-top: 1px solid rgba(46, 78, 118, 0.08);
  padding: 0.85rem 1.25rem 0.95rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.da-tp-strip:hover {
  background: #eff3f6;
  color: inherit;
}

.da-tp-strip:focus-visible {
  outline: 2px solid #00b67a;
  outline-offset: -2px;
}

.da-tp-strip__top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.da-tp-strip__rated {
  font-size: 0.75rem;
  color: #5d5d5e;
}

.da-tp-strip__rated strong {
  font-weight: 800;
  color: #2e4e76;
}

.da-tp-strip__badges {
  display: inline-flex;
  gap: 2px;
}

.da-tp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  line-height: 1;
  color: #fff;
  background: #00b67a;
  border-radius: 3px;
}

.da-tp-badge--partial {
  background: linear-gradient(90deg, #00b67a 60%, #dcdce6 60%);
}

.da-tp-strip__count {
  font-size: 0.75rem;
  color: #6b6b6c;
  margin-left: auto;
}

.da-tp-strip__quote {
  font-size: 0.75rem;
  font-style: italic;
  color: #4d4d4e;
  line-height: 1.5;
  margin: 0.45rem 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.da-tp-strip__brand {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.da-tp-strip__icon {
  width: 0.8rem;
  height: 0.8rem;
}

.da-tp-strip__brand span {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #191919;
  letter-spacing: 0.02em;
}

/* ── Service cards (compact 2-up grid) ───────────────────────── */
.da-service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}


.da-service-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid rgba(46, 78, 118, 0.1);
  border-radius: 12px;
  padding: 0.75rem 0.6rem 0.75rem 0.85rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(46, 78, 118, 0.05);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
  min-width: 0;
}

.da-service-card:hover {
  border-color: rgba(46, 78, 118, 0.22);
  box-shadow: 0 6px 18px -4px rgba(46, 78, 118, 0.18);
  color: inherit;
  transform: translateY(-1px);
}

.da-service-card:focus-visible {
  outline: 2px solid #78c7c8;
  outline-offset: 2px;
}

.da-service-card__icon {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(120, 199, 200, 0.18) 0%, rgba(120, 199, 200, 0.08) 100%);
  border-radius: 8px;
  padding: 0.4rem;
}

.da-service-card__icon svg {
  width: 100%;
  height: 100%;
}

.da-service-card__text {
  flex: 1;
  min-width: 0;
}

.da-service-card__title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2e4e76;
  line-height: 1.25;
  margin-bottom: 0.125rem;
  overflow-wrap: break-word;
}

.da-service-card__desc {
  font-size: 0.6875rem;
  color: #6b6b6c;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.da-service-card__arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 300;
  color: #78c7c8;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.da-service-card:hover .da-service-card__arrow {
  color: #2e4e76;
  transform: translateX(2px);
}

/* ── Tablet: keep sidebar readable in the narrower col-md-5 ─── */
@media (max-width: 991.98px) {
  .da-sidebar-ad {
    position: static;
  }

  .da-promo-card__body {
    padding: 0.85rem 1.1rem 1.25rem;
  }

  .da-promo-card__headline {
    font-size: 1.0625rem;
  }

  .da-promo-card__sub {
    font-size: 0.8125rem;
  }

  .da-promo-features {
    font-size: 0.8125rem;
  }
}
