/* PPC Landing Page styles - loaded only on template-ppc-landing.php, on top of the main stylesheet */

/* ---------- shared tokens ---------- */
.ppc-landing {
  --pk-ink: #341849;
  --pk-pink: #ff4a71;
  --pk-blue: #04b9e0;
  --pk-teal: #00aa9d;
  --pk-purple: #481362;
  --pk-border: rgba(58, 45, 68, 0.14);
  --pk-tint: rgba(58, 45, 68, 0.06);
}

/* ---------- landing-only header/footer ---------- */

/* The site-wide header is position:fixed with a matching body margin-top hack
   sized for the normal (single-row) header. The landing header can wrap onto two
   lines at some widths, so instead of guessing an offset we make it sticky and
   drop the compensation margin - content just flows below it naturally. */
body.landing-page {
  margin-top: 0 !important;
}

.site-header--landing {
  position: sticky;
  top: 0;
  margin-top: 0;
}

.site-header--landing .wrapper--flex {
  justify-content: space-between;
}

.site-header--landing .site-header__landing-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header--landing .site-header__phone {
  text-decoration: none;
  color: #341849;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
}

.site-header--landing .site-header__phone-number {
  display: block;
  font-size: 1rem;
}

.site-header--landing .site-header__phone-hours {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #7a7f8c;
}

@media (max-width: 530px) {
  .site-header--landing .site-header__phone-hours {
    display: none;
  }
}

@media (max-width: 420px) {
  /* Not enough room for logo + phone + CTA on one line without the phone
     number wrapping awkwardly - the CTA covers the same action. */
  .site-header--landing .site-header__phone {
    display: none;
  }
}

.site-footer--landing {
  background-color: #341849;
  color: #cfc3da;
  padding: 28px 0;
  font-size: 0.85rem;
}

.site-footer--landing__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer--landing a {
  color: #cfc3da;
  text-decoration: none;
  margin-left: 18px;
}

.site-footer--landing a:first-child {
  margin-left: 0;
}

.site-footer--landing a:hover {
  color: #fff;
}

/* ---------- pulse / motion ---------- */
@keyframes ppc-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(4, 185, 224, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(4, 185, 224, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(4, 185, 224, 0);
  }
}

.btn--pulse {
  animation: ppc-pulse-ring 2.2s ease-out infinite;
}

.btn--pulse:hover,
.btn--pulse:focus-visible {
  animation-play-state: paused;
  transform: scale(1.05);
}

.btn--on-image {
  background-color: rgba(255, 255, 255, 0.92);
}

/* Plain-text CTA link with an arrow that nudges forward on hover - used for
   the hero's secondary action, where a second full button would compete too
   hard with the primary one. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pk-ink);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.link-arrow:hover {
  color: var(--pk-purple);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- hero ---------- */
.landing-hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  background: linear-gradient(150deg, #f3fafd 0%, #f8f2fb 100%);
}

.landing-hero__image {
  position: absolute;
  inset: 0;
  background-position: 65% 18%;
  background-size: cover;
}

.landing-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 42%, rgba(255, 255, 255, 0.5) 100%);
}

.landing-hero__content {
  position: relative;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pk-purple);
  margin-bottom: 0.7em;
}

.eyebrow--dark {
  color: #9fd8f0;
}

.landing-hero__title {
  font-family: Epilogue, sans-serif;
  font-weight: 800;
  color: var(--pk-ink);
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  margin: 0 0 0.5em;
}

.landing-hero__lead {
  font-size: 1.1rem;
  color: #4a4f5c;
  max-width: 540px;
}

.landing-hero__ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.landing-hero__supporting {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #7a7f8c;
}

@media (max-width: 800px) {
  .landing-hero {
    padding: 56px 0 48px;
  }
  .landing-hero__scrim {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 30%, rgba(255, 255, 255, 0.75) 100%);
  }
}

/* ---------- feature grid (highlight strip + "the basics") ---------- */
.feature-grid {
  display: grid;
  gap: 20px;
  margin: 32px 0 56px;
}

.feature-grid--compact {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid--standard {
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 860px) {
  .feature-grid--compact,
  .feature-grid--standard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 530px) {
  .feature-grid--compact,
  .feature-grid--standard {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--pk-border);
  border-radius: 14px;
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(52, 24, 73, 0.1);
}

/* On hover, a teal outline (including the card's own rounded corners) draws
   in from the top and bottom simultaneously and meets at the vertical
   middle. Each pseudo-element is a full duplicate outline of the card,
   rounded only on its own edge's corners, revealed via a growing clip-path
   so the border-radius stays pixel-perfect at every step - no SVG needed. */
.feature-card::before,
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--pk-teal);
  border-radius: 14px;
  transition: clip-path 0.75s ease;
  pointer-events: none;
}

.feature-card::before {
  clip-path: inset(0 0 100% 0);
}

.feature-card::after {
  clip-path: inset(100% 0 0 0);
}

.feature-card:hover::before {
  clip-path: inset(0 0 50% 0);
}

.feature-card:hover::after {
  clip-path: inset(50% 0 0 0);
}

.feature-grid--compact .feature-card {
  padding: 18px 18px;
}

.feature-card--highlighted {
  border-color: var(--pk-teal);
  box-shadow: 0 0 0 1px var(--pk-teal);
}

.feature-card__badge {
  display: inline-block;
  background: var(--pk-teal);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(120deg, var(--pk-blue), var(--pk-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card__icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.feature-card__icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.feature-card__title {
  font-size: 1rem;
  color: var(--pk-ink);
  font-weight: 700;
  margin: 0 0 6px;
}

.feature-card__text {
  font-size: 0.9rem;
  color: #4a4f5c;
  margin: 0;
}

.feature-grid__intro {
  max-width: 620px;
  color: #4a4f5c;
}

/* ---------- callout ---------- */
.callout {
  background: #fff;
  border: 1px solid var(--pk-border);
  border-left: 5px solid var(--pk-teal);
  border-radius: 14px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.callout--dark {
  background: var(--pk-ink);
  border-color: var(--pk-ink);
}

.callout--dark .callout__text h2,
.callout--dark .callout__text p {
  color: #fff;
}

.callout__text {
  flex: 1;
  min-width: 280px;
}

.callout__btn {
  flex-shrink: 0;
}

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--pk-border);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(52, 24, 73, 0.1);
}

.pricing-card--featured {
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--pk-blue), var(--pk-purple)) border-box;
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  display: inline-block;
  background: linear-gradient(120deg, var(--pk-blue), var(--pk-purple));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.pricing-card__name {
  font-weight: 800;
  color: var(--pk-ink);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.pricing-card__price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--pk-purple);
  margin-bottom: 4px;
}

.pricing-card__note {
  font-size: 0.82rem;
  color: #7a7f8c;
  margin-bottom: 18px;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.pricing-card__features li {
  font-size: 0.9rem;
  padding: 7px 0;
  border-top: 1px solid var(--pk-border);
  color: #4a4f5c;
}

.pricing-card__features li:first-child {
  border-top: none;
}

.pricing-card__btn {
  align-self: flex-start;
}

.pricing-grid__intro {
  max-width: 600px;
  color: #4a4f5c;
}

/* ---------- feature panel (dark case study) ---------- */
.feature-panel {
  background: var(--pk-ink);
  color: #fff;
  border-radius: 22px;
  padding: 48px 46px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.feature-panel--with-image {
  flex-wrap: wrap;
}

.feature-panel__image {
  flex: 0 0 320px;
  max-width: 320px;
}

.feature-panel__image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.feature-panel__text {
  flex: 1;
  min-width: 260px;
}

.feature-panel__content p {
  color: #d7dae3;
  font-size: 1.02rem;
}

@media (max-width: 800px) {
  .feature-panel {
    padding: 34px 26px;
    flex-direction: column;
  }
  .feature-panel__image {
    max-width: 100%;
  }
}

/* ---------- testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--pk-border);
  border-radius: 14px;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(52, 24, 73, 0.08);
}

.testimonial-card__tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pk-purple);
  background: var(--pk-tint);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.testimonial-card__quote {
  font-size: 0.95rem;
  color: var(--pk-ink);
  font-style: italic;
}

.testimonial-card__quote p {
  margin: 0 0 0.6em;
}

.testimonial-card__quote p:last-child {
  margin-bottom: 0;
}

.testimonial-card__quote p:first-child::before {
  content: "\201C";
}

.testimonial-card__quote p:last-child::after {
  content: "\201D";
}

.testimonial-card__name {
  font-size: 0.82rem;
  color: #7a7f8c;
  font-weight: 700;
  margin: 0;
  margin-top: auto;
  padding-top: 18px;
}

/* ---------- contact ----------
   Reuses the site's existing .box.box--blue-fade gradient (see
   partials/content-box.php) so this matches the live "Get in touch" block
   on mmdweb.co.uk rather than inventing a new colour treatment. */
.landing-contact-section {
  padding-top: 0;
}

.landing-contact-section .box--blue-fade .headline,
.landing-contact-section .box--blue-fade p {
  color: #fff;
}

.landing-contact__intro {
  max-width: 620px;
  color: #e3d9ec;
}

.landing-contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  margin-top: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .landing-contact {
    grid-template-columns: 1fr;
  }
}

.landing-contact__item {
  margin-bottom: 20px;
}

.landing-contact__item strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.landing-contact__item span,
.landing-contact__item a {
  font-size: 0.9rem;
  color: #e3d9ec;
}

.landing-contact__item span {
  text-decoration: none;
}

.landing-contact__item a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.landing-contact__item a:hover {
  color: #fff;
}

.landing-contact__form .wpcf7-form input[type="text"],
.landing-contact__form .wpcf7-form input[type="email"],
.landing-contact__form .wpcf7-form input[type="tel"],
.landing-contact__form .wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--pk-ink);
  margin-bottom: 4px;
}

.landing-contact__form .wpcf7-form input::placeholder,
.landing-contact__form .wpcf7-form textarea::placeholder {
  color: #6b6b7a;
  opacity: 1;
}

.landing-contact__form .wpcf7-form label {
  color: #fff;
}
