/*
 * Newcastle.host additions to the Lily Paw Digital theme.
 * style.css is the theme, copied unchanged. Everything Newcastle-specific
 * lives here and uses only the theme's tokens (no new colours or distances).
 */

/* Hosting feature tiles: their own icons instead of the web design set */
.lpd-features .wp-block-column .lpd-card.lpd-host-uk { --icon: url('assets/icons/location.svg'); }
.lpd-features .wp-block-column .lpd-card.lpd-host-ddos { --icon: url('assets/icons/ddos-protected.svg'); }
.lpd-features .wp-block-column .lpd-card.lpd-host-email { --icon: url('assets/icons/email.svg'); }
.lpd-features .wp-block-column .lpd-card.lpd-host-managed { --icon: url('assets/icons/ongoing-support.svg'); }

/* Home: areas list, ticked like the service lists, in two columns */
.lpd-areas .lpd-card .lpd-area-list {
  list-style: none;
  margin: var(--gap) 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px var(--gap);
}
.lpd-area-list li { position: relative; padding-left: 26px; color: var(--fg); line-height: 1.45; }
.lpd-area-list li::before {
  content: ''; position: absolute; left: 2px; top: 0.36em; width: 13px; height: 13px;
  background: var(--pink-ink);
  -webkit-mask: url('assets/icons/check.svg') center / contain no-repeat;
  mask: url('assets/icons/check.svg') center / contain no-repeat;
}
@media (max-width: 640px) { .lpd-areas .lpd-card .lpd-area-list { grid-template-columns: minmax(0, 1fr); } }

/* Contact panels (the site is static, so phone + message link stand in for the form) */
.lpd-contact-card > p,
.lpd-form-card > p { color: var(--fg-dim); max-width: 52ch; text-wrap: pretty; }
.lpd-contact-card .lpd-contact-phone { margin: 0 0 14px; }
.lpd-contact-phone a {
  color: var(--fg);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) { .lpd-contact-phone a:hover { color: var(--pink-ink); } }
.lpd-contact-card .wp-block-buttons,
.lpd-form-card .wp-block-buttons { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.lpd-form-card .lpd-plan-note:not([hidden]) { color: var(--fg); font-weight: 500; }
.lpd-form-card .lpd-contact-small { margin-top: 24px; font-size: 0.9rem; }
.lpd-form-card .lpd-contact-small a { color: var(--pink-ink); }

/* Footer: "A Lily Paw Digital company" */
.lpd-footer-parent { margin: 10px 0 0 !important; font-size: 0.92rem; }
.lpd-footer-parent a { color: var(--accent-text); }

/* ---------------------------------------------------------------------
 * Newcastle.host identity on top of the forked layout system
 * ------------------------------------------------------------------- */

/* Hero headline reads as a sentence (not one word per line), with the
   intro, buttons and price note beside it. */
.lpd-hero-heading.is-split .lpd-w { display: inline-block; }
.lpd-hero-heading { max-width: 11ch; letter-spacing: -0.04em; }
.lpd-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .lpd-hero-heading { font-size: clamp(2.6rem, 11vw, 4rem); } }

/* Home: three popular plans */
.lpd-pricing .wp-block-columns.nh-plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .lpd-pricing .wp-block-columns.nh-plans-3 { grid-template-columns: minmax(0, 1fr); } }
.nh-home-plans .lpd-plan-helper { display: none; }
.nh-plans-more { margin-top: var(--head) !important; }
.nh-plans-more a { color: var(--pink-ink); font-weight: 600; }


/* "A part of Lily Paw Digital" under the logo */
.nh-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 0; }
.site-header .nh-brand .lpd-logo-img { height: 34px; }
.nh-part { display: inline-flex; align-items: center; gap: 6px; color: rgba(243, 247, 245, 0.72); font-size: 0.68rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; }
.nh-part img { display: block; height: 11px; width: auto; }
@media (hover: hover) and (pointer: fine) { .nh-part:hover { color: var(--cream); } }
.nh-brand-footer { gap: 10px; margin-bottom: 18px; }
.footer-brand .nh-brand-footer .lpd-logo-img { margin-bottom: 0; }
.nh-brand-footer .nh-part { font-size: 0.86rem; gap: 8px; }
.nh-brand-footer .nh-part img { height: 16px; }
@media (max-width: 400px) { .site-header .nh-brand .lpd-logo-img { height: 30px; } .site-header .nh-part img { height: 10px; } }

/* Web hosting plans and icons */
.lpd-features .wp-block-column .lpd-card.lpd-host-ssd { --icon: url('assets/icons/fast-hosting.svg'); }
.lpd-service-hosting { --icon: url('assets/icons/fast-hosting.svg'); }

/* "You're heading to Lily Paw Digital" popup before ordering */
.nh-redirect {
  width: min(580px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.2s var(--ease-out), transform 0.25s var(--ease-out);
}
.nh-redirect.is-open { opacity: 1; transform: none; }
.nh-redirect::backdrop { background: rgba(3, 10, 14, 0.72); }
.nh-redirect-panel { padding: var(--pad); }
.nh-redirect-logo { display: block; height: 22px; width: auto; margin-bottom: 22px; }
.nh-redirect h2 { margin: 0 0 12px; color: var(--cream); font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; text-wrap: balance; }
.nh-redirect p { margin: 0; color: rgba(243, 247, 245, 0.78); line-height: 1.6; text-wrap: pretty; }
.nh-redirect .nh-redirect-plan { margin-top: 14px; color: var(--accent-text); font-weight: 600; }
.nh-redirect-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.nh-redirect-go,
.nh-redirect-cancel {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px;
  border-radius: var(--radius-sm);
  font: 600 0.98rem/1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.16s var(--ease-out);
}
.nh-redirect-go { background: var(--pink); color: var(--night); border: 0; }
.nh-redirect-cancel { background: none; color: var(--cream); border: 1.5px solid var(--rule-strong); }
.nh-redirect-go:active, .nh-redirect-cancel:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .nh-redirect-go:hover { background: var(--pink-hi); color: var(--night); }
  .nh-redirect-cancel:hover { border-color: var(--cream); }
}
.nh-redirect :focus-visible { outline: 2px solid var(--pink-hi); outline-offset: 3px; }
@media (max-width: 480px) { .nh-redirect-actions > * { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .nh-redirect { transition: none; transform: none; } }
