:root {
  --ecard-navy: #01142f;
  --ecard-navy-deep: #001225;
  --ecard-navy-soft: #092943;
  --ecard-gold: #dda83f;
  --ecard-gold-light: #f6d27d;
  --ecard-white: #f5f7fb;
  --ecard-muted: #b9c4d1;
}

html { background: var(--ecard-navy); scroll-behavior: smooth; }

body {
  min-width: 320px;
  font-family: 'Inter', sans-serif;
  color: var(--ecard-white);
  background-color: var(--ecard-navy);
  background-image: url('../images/ecards-side-decorations-left.png'), url('../images/ecards-side-decorations-right.png');
  background-position: left top, right top;
  background-repeat: no-repeat, no-repeat;
  background-size: 360px 1024px, 360px 1024px;
}

#page-wrapper { position: relative; background: transparent; overflow: hidden; }

body,
p,
ol li,
.inclusions,
.folio-heading,
.ecards p { color: var(--ecard-white); }

a { color: var(--ecard-gold-light); }
a:hover { color: #fff0b5; }

.ecard-hero {
  position: relative;
  z-index: 2;
  padding: 46px 24px 72px;
}

.ecard-hero__shell {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
}

.ecard-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .88fr);
  gap: 72px;
  align-items: start;
}

.ecard-hero__copy { padding-top: 8px; }

.ecard-hero__logo {
  display: inline-block;
  width: 270px;
  margin: 0 0 52px;
}

.ecard-hero__logo img { display: block; width: 100%; height: auto; }

.ecard-hero__eyebrow {
  margin: 0 0 20px;
  color: var(--ecard-gold-light);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.ecard-hero__title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 58px;
  font-weight: 600;
  line-height: .98;
  letter-spacing: 0;
}

.ecard-hero__title-white {
  display: block;
  color: var(--ecard-white);
  text-shadow: 0 1px 0 #fff, 0 2px 8px rgba(176, 194, 211, .3);
}

.ecard-hero__title-gold {
  display: block;
  margin: 8px -14px -2px;
  padding: 6px 14px 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 61px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.08;
  background: linear-gradient(180deg, #fff1bd 0%, #f3cc72 24%, #d8a035 58%, #f8d987 78%, #a96f19 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(238, 184, 73, .25));
}

.ecard-hero__rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0 19px;
  color: var(--ecard-gold-light);
}

.ecard-hero__rule::before,
.ecard-hero__rule::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--ecard-gold)); }
.ecard-hero__rule::after { background: linear-gradient(90deg, var(--ecard-gold), transparent); }
.ecard-hero__rule span { font-size: 20px; line-height: 1; }

.ecard-hero__lead {
  max-width: 560px;
  margin: 0 0 24px;
  color: #e8edf3;
  font-size: 16px;
  line-height: 1.55;
  text-shadow: 0 1px 4px rgba(172, 188, 203, .18);
}

.ecard-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ecard-feature {
  min-height: 112px;
  padding: 16px 10px 13px;
  border: 1px solid rgba(91, 111, 132, .72);
  border-radius: 6px;
  background: transparent;
  text-align: center;
}

.ecard-feature__icon {
  display: block;
  width: auto;
  height: 38px;
  margin: 0 auto 9px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(226, 169, 55, .2));
}

.ecard-feature p { margin: 0; color: var(--ecard-white); font-size: 13px; line-height: 1.35; }

.ecard-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 24px;
  border: 1px solid var(--ecard-gold);
  border-radius: 5px;
  color: var(--ecard-gold-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.ecard-hero__cta:hover { color: var(--ecard-navy-deep); background: var(--ecard-gold-light); }

.ecard-hero__cta-icon {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--ecard-gold);
}

.ecard-hero__cta:hover .ecard-hero__cta-icon {
  border-left-color: var(--ecard-navy-deep);
}

.ecard-quote {
  padding: 28px 30px 25px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 9px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 60px rgba(0, 5, 14, .35), inset 0 0 40px rgba(227, 220, 203, .18);
  color: var(--ecard-navy-deep);
}

.ecard-quote__ornament {
  height: 52px;
  text-align: center;
}

.ecard-quote__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 2px solid var(--ecard-gold);
  border-radius: 50%;
  color: var(--ecard-gold);
}

.ecard-quote__icon .fa-file-lines { font-size: 23px; }
.ecard-quote__icon .fa-magnifying-glass {
  position: absolute;
  right: 7px;
  bottom: 8px;
  padding: 1px;
  background: #fff;
  font-size: 11px;
}

.ecard-quote h2 {
  margin: 10px 0 13px;
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.08;
  text-align: center;
  color: var(--ecard-navy-deep);
}

.ecard-quote__intro {
  margin: 0 auto 20px;
  max-width: 310px;
  color: #37475a;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.ecard-quote__divider { display: flex; align-items: center; gap: 8px; margin: 0 auto 17px; max-width: 125px; color: var(--ecard-gold); }
.ecard-quote__divider::before,
.ecard-quote__divider::after { content: ''; height: 1px; flex: 1; background: var(--ecard-gold); }

.ecard-quote .form-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-bottom: 8px;
  border: 1px solid #d6dce3;
  border-radius: 5px;
  background: #fff;
}

.ecard-quote .form-field--message { align-items: flex-start; }
.ecard-quote .form-field__icon {
  flex: 0 0 18px;
  width: 18px;
  margin: 0 12px;
  color: #526078;
  font-size: 16px;
  text-align: center;
}
.ecard-quote .form-field--message .form-field__icon { margin-top: 13px; }
.ecard-quote .form-field input,
.ecard-quote .form-field textarea {
  width: 100%;
  margin: 0;
  padding: 13px 12px 13px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #fff !important;
  box-shadow: none;
  color: #1e2e43;
  font: 14px/1.4 'Inter', sans-serif;
}

.ecard-quote .form-field textarea { min-height: 98px; resize: vertical; }
.ecard-quote .field-validation { position: absolute; right: 7px; top: 13px; color: transparent; }
.ecard-quote .field-validation img { width: 17px; height: 17px; }

.ecard-quote .enq-btn {
  width: 100%;
  margin: 10px 0 0;
  padding: 15px 18px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(100deg, #bb8125 0%, #f2cf78 50%, #c68d2e 100%);
  color: var(--ecard-navy-deep);
  font: 700 15px/1 'Inter', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 16px rgba(164, 111, 26, .18);
}

.ecard-quote .enq-btn:hover { background: linear-gradient(100deg, #d39d3d 0%, #ffe19a 50%, #d29a3b 100%); }
.ecard-quote__privacy { margin: 13px 0 0; color: #6c7787; font-size: 10px; text-align: center; }
.ecard-quote__privacy .fa-lock { margin-right: 6px; }
.ecard-quote #form_error,
.ecard-quote #thankyou { color: var(--ecard-navy-deep); }

.ecard-trust { margin-top: 32px; }
.ecard-trust__title { display: flex; align-items: center; gap: 20px; color: var(--ecard-gold-light); text-align: center; }
.ecard-trust__title::before,
.ecard-trust__title::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(221,168,63,.6)); }
.ecard-trust__title::after { background: linear-gradient(90deg, rgba(221,168,63,.6), transparent); }
.ecard-trust__title span { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.ecard-trust__brands { display: flex; align-items: center; justify-content: space-around; gap: 25px; margin-top: 18px; color: var(--ecard-white); }
.ecard-trust__brands img { display: block; width: auto; max-width: 125px; height: 34px; object-fit: contain; filter: drop-shadow(0 1px 5px rgba(183,197,211,.2)); }
.ecard-trust__brands img[alt='pwc'] { height: 42px; }
.ecard-trust__brands img[alt='HSBC'] { height: 24px; }

.ecard-filter-nav { position: relative; z-index: 2; scroll-margin-top: 18px; }
.ecard-filter-nav h3,
.ecards > h3 { color: var(--ecard-white); text-shadow: 0 1px 5px rgba(186, 199, 212, .24); }
.ecard-filter-nav a { background: #b9842e; color: var(--ecard-navy-deep); }
.ecard-filter-nav a:hover,
.ecard-filter-nav a.active,
.ecard-filter-nav a.selected { background: var(--ecard-white); color: var(--ecard-navy-deep); }
.ecard-filter-nav a.disabled,
.ecard-filter-nav a.disabled:hover { background: #263f56; color: #75869a; }

.ecards {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1320px);
  margin: 0 auto 35px;
  padding: 0;
  text-align: center;
}
.ecard-floating-quote-wrap {
  pointer-events: none;
}

.ecard-floating-quote {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  padding: 13px 16px;
  border: 1px solid var(--ecard-gold);
  border-radius: 5px;
  background: linear-gradient(100deg, #bb8125 0%, #f2cf78 50%, #c68d2e 100%);
  color: var(--ecard-navy-deep);
  font: 700 12px/1.1 'Inter', sans-serif;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(0, 5, 14, .28);
  opacity: 0;
  pointer-events: none;
  transform: translate(60px, -50%) rotate(-90deg);
  transform-origin: center;
  transition: opacity .2s ease, transform .2s ease;
}

.ecard-floating-quote.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(48px, -50%) rotate(-90deg);
}

.ecard-floating-quote:hover,
.ecard-floating-quote:focus {
  background: linear-gradient(100deg, #d39d3d 0%, #ffe19a 50%, #d29a3b 100%);
  color: var(--ecard-navy-deep);
  outline: 0;
  text-decoration: none;
}

.ecards > ul,
.ecards .ecards-ai__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 300px));
  justify-content: center;
  gap: 34px 28px;
  margin: 0 0 35px;
  padding: 0;
}

.ecards > ul > a[id] {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ecards > ul > li,
.ecards .ecards-ai__list > li {
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.ecards > ul > li > a,
.ecards .ecards-ai__list > li > a {
  width: 100%;
  height: auto;
  aspect-ratio: 302 / 154;
  margin: 0 0 8px;
  border-color: rgba(255,255,255,.82);
}

.ecards > ul > li > a > img,
.ecards .ecards-ai__list > li > a > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecards > ul > li > a:hover,
.ecards .ecards-ai__list > li > a:hover { border-color: var(--ecard-gold-light); }

.ecards-ai {
  width: 100vw;
  margin: 22px 0 38px calc(50% - 50vw);
  padding: 48px 0 52px;
  background: #092943;
}

.ecards-ai__inner {
  width: min(calc(100% - 48px), 1320px);
  margin: 0 auto;
}

.ecards-ai__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 15px;
  color: var(--ecard-gold-light);
  font: 700 13px/1 'Inter', sans-serif;
  letter-spacing: 4px;
}

.ecards-ai__eyebrow::before,
.ecards-ai__eyebrow::after {
  content: '';
  width: 100px;
  height: 1px;
  background: currentColor;
}

.ecards-ai h2 {
  margin: 0 0 14px;
  color: var(--ecard-white);
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
}

.ecards-ai > .ecards-ai__inner > p {
  max-width: 900px;
  margin: 0 auto 32px;
  color: var(--ecard-white);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.ecards .ecards-ai__list {
  margin-bottom: 0;
}
.folio-heading { color: var(--ecard-white); text-shadow: 0 1px 4px rgba(177, 191, 205, .22); }
.ecard-quote-add {
  display: inline-block;
  margin: 7px 0 0;
  padding: 6px 12px;
  border: 1px solid rgba(221, 168, 63, .82);
  border-radius: 4px;
  background: transparent;
  color: var(--ecard-gold-light);
  font: 700 11px/1 'Inter', sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
}
.ecard-quote-add:hover,
.ecard-quote-add:focus {
  background: var(--ecard-gold-light);
  color: var(--ecard-navy-deep);
  outline: 0;
}
.ecard-quote-add.is-added {
  border-color: rgba(245, 247, 251, .55);
  background: rgba(245, 247, 251, .14);
  color: var(--ecard-white);
}
.inclusions ol li { color: #e6ecf2; }

.btn2,
.btn3 { border: 1px solid var(--ecard-gold); background: rgba(2, 24, 44, .86); color: var(--ecard-gold-light); }
.btn2:hover,
.btn3:hover { background: var(--ecard-gold-light); color: var(--ecard-navy-deep); }

.footer { border-top-color: rgba(221, 168, 63, .45); background: rgba(0, 12, 25, .72); }
.footer p,
.footerlinks p,
.footerlinks p a { color: var(--ecard-muted); }
#back-top { background: var(--ecard-gold); }
#back-top a { color: var(--ecard-navy-deep); }

@media (min-width: 1024px) and (max-width: 1100px) {
  body { background-size: 250px 711px, 250px 711px; }
  .ecard-hero__grid { gap: 34px; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); }
  .ecard-hero__title { font-size: 48px; }
  .ecard-hero__title-gold { font-size: 51px; }
  .ecard-floating-quote { right: 0; }
}

@media (max-width: 1023px) {
  body { background-size: 105px 299px, 105px 299px; background-repeat: no-repeat, no-repeat; }
  .ecard-hero { padding: 30px 18px 58px; }
  .ecard-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .ecard-hero__copy { max-width: 650px; margin: 0 auto; }
  .ecard-hero__logo { width: 240px; margin-bottom: 40px; }
  .ecard-quote { width: min(100%, 520px); margin: 0 auto; }
  .ecard-trust__brands { flex-wrap: wrap; justify-content: center; }
  .ecards {
    width: calc(100% - 36px);
  }

  .ecards-ai__inner {
    width: calc(100% - 36px);
  }

  .ecards > ul,
  .ecards .ecards-ai__list {
    gap: 28px;
  }

  .ecard-floating-quote {
    top: 50%;
    right: 0;
    bottom: auto;
    min-width: 132px;
    padding: 12px 14px;
    transform: translate(53px, -50%) rotate(-90deg);
  }

  .ecard-floating-quote.is-visible {
    transform: translate(42px, -50%) rotate(-90deg);
  }
}

@media (max-width: 560px) {
  body { background-size: 64px 182px, 64px 182px; }
  .ecard-hero { padding: 24px 18px 45px; }
  .ecard-hero__logo { width: 205px; margin-bottom: 34px; }
  .ecard-hero__eyebrow { font-size: 12px; letter-spacing: 3px; }
  .ecard-hero__title { font-size: 39px; }
  .ecard-hero__title-gold { margin: 5px -10px -2px; padding: 5px 10px 8px; font-size: 43px; }
  .ecard-hero__lead { font-size: 14px; }
  .ecard-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecard-feature { min-height: 105px; }
  .ecard-quote { padding: 25px 18px 22px; }
  .ecard-quote h2 { font-size: 29px; }
  .ecard-trust__title span { max-width: 190px; line-height: 1.5; }
  .ecard-trust__brands { gap: 14px 22px; }
  .ecard-trust__brands img { max-width: 95px; height: 27px; }
  .ecard-trust__brands img[alt='pwc'] { height: 34px; }
  .ecards {
    width: calc(100% - 28px);
  }

  .ecards-ai__inner {
    width: calc(100% - 28px);
  }

  .ecards > ul,
  .ecards .ecards-ai__list {
    grid-template-columns: minmax(0, 300px);
    gap: 26px;
  }

  .ecards-ai {
    padding: 38px 0 42px;
  }

  .ecards-ai__eyebrow::before,
  .ecards-ai__eyebrow::after {
    width: 70px;
  }

  .ecards-ai h2 {
    font-size: 31px;
  }

  .ecards-ai > .ecards-ai__inner > p {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .ecard-features { grid-template-columns: 1fr; }
}
