/* Pipercom Ltd brand (sampled from logo files, 9 Nov 2026)
   Navy #183060 · Accent red #E81820 · White */

:root {
  --navy: #183060;
  --navy-deep: #0f1f40;
  --navy-soft: #eef1f7;
  --red: #e81820;
  --red-dark: #c41218;
  --ink: #1a2330;
  --muted: #4a5568;
  --line: #d8dee8;
  --paper: #ffffff;
  --wash: #f5f7fa;
  --focus: #2563eb;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(24, 48, 96, 0.08), 0 8px 24px rgba(24, 48, 96, 0.06);
  --max: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { color: var(--red); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 2.35rem;
  width: auto;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
}
.header-phone:hover {
  background: var(--red-dark);
  color: #fff !important;
}
.header-phone .phone-label {
  display: none;
  font-weight: 500;
  opacity: 0.95;
  font-size: 0.8rem;
}
@media (min-width: 640px) {
  .header-phone .phone-label { display: inline; }
}

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 85%);
  color: #fff;
  padding: 3rem 0 3.5rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  max-width: 20ch;
}
.hero .lede {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 40rem;
  margin: 0 0 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy-soft);
  color: var(--navy-deep);
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--wash); }
.section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.section .intro {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

/* Why local */
.why-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .why-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.why-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.75rem;
}
.why-list li:last-child { border-bottom: 0; }
.why-list .tick {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--navy-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}
.why-list strong { color: var(--navy); display: block; margin-bottom: 0.15rem; }
.why-list span { color: var(--muted); font-size: 0.95rem; }

/* Areas */
.areas {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .areas { grid-template-columns: repeat(4, 1fr); }
}
.area-card {
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.area-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  color: var(--navy);
}
.area-card small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

/* Switch */
.switch-box {
  background: var(--navy-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid #cfd6e4;
}
.switch-box h2 { margin-top: 0; }
.switch-times {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}
@media (min-width: 560px) {
  .switch-times { grid-template-columns: 1fr 1fr; }
}
.switch-time {
  background: var(--paper);
  border-radius: 8px;
  padding: 1rem;
}
.switch-time strong {
  display: block;
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}
.switch-time span { color: var(--muted); font-size: 0.9rem; }
.note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

/* Quote */
.quote-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.quote-panel .draft-banner {
  background: #fef3c7;
  border: 1px dashed #b45309;
  color: #78350f;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 560px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
textarea { min-height: 7rem; resize: vertical; }
.form-actions { margin-top: 0.5rem; }

.contact-aside {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-aside h2 { color: #fff; margin: 0 0 0.75rem; }
.contact-aside p { margin: 0 0 1rem; opacity: 0.92; }
.contact-aside a.phone {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
.contact-aside a.phone:hover { color: #ffb4b6; }
.contact-aside .hours-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
}
.contact-aside .hours-block .hours {
  margin: 0 0 0.75rem;
  opacity: 0.95;
}
.contact-aside .hours-block .contact-todo {
  margin: 0;
  opacity: 0.8;
  font-size: 0.85rem;
  border: 1px dashed rgba(255, 200, 120, 0.7);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 243, 200, 0.12);
}

.quote-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .quote-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.placeholder {
  border: 2px dashed #b45309;
  background: #fffbeb;
  color: #78350f;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin: 1rem 0;
}
.placeholder strong { display: block; margin-bottom: 0.2rem; }

/* Town */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); text-decoration: underline; }
.local-facts {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .local-facts { grid-template-columns: repeat(3, 1fr); }
}
.fact {
  background: var(--paper);
  border-left: 4px solid var(--red);
  padding: 1rem 1.1rem;
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow);
}
.fact strong { display: block; color: var(--navy); margin-bottom: 0.25rem; }
.fact span { color: var(--muted); font-size: 0.95rem; }

.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; color: var(--muted); }
.prose p strong { color: var(--ink); }

.footer-brand {
  margin-bottom: 0.75rem;
}
.footer-brand img {
  height: 2.75rem;
  width: auto;
  background: #fff;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.925rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}
.site-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.powered {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 639px) {
  .nav { width: 100%; order: 3; }
  .header-inner { gap: 0.65rem; }
  .brand img { height: 2rem; }
}

/* Breadcrumb on dark hero */
.hero .breadcrumb { color: rgba(255,255,255,0.75); }
.hero .breadcrumb a { color: rgba(255,255,255,0.85); }
.hero .breadcrumb a:hover { color: #fff; }

/* Mobile header: wrap nav onto its own row with comfortable tap targets */
@media (max-width: 639px) {
  .header-phone {
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    min-height: 44px;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.25rem 0.35rem;
    padding: 0.15rem 0 0.35rem;
    border-top: 1px solid var(--line);
    margin: 0;
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }
  .nav a:hover,
  .nav a:focus-visible {
    background: #f0f4fa;
  }
  .nav a[aria-current="page"] {
    background: #f0f4fa;
  }
}

/* Extra-narrow (≈390px phones): keep wrapping, slightly tighter horizontal padding */
@media (max-width: 390px) {
  .nav {
    gap: 0.2rem 0.2rem;
  }
  .nav a {
    padding: 0.55rem 0.65rem;
    flex: 1 1 auto;
  }
}

.reg-line {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.75;
  line-height: 1.45;
  max-width: 36rem;
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--red); text-decoration: underline; }
.prose .draft-banner {
  background: #fef3c7;
  border: 1px dashed #b45309;
  color: #78350f;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.powered a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.powered a:hover { color: #fff; text-decoration: underline; }
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.brand-panel svg { width: 100%; max-width: 22rem; height: auto; border-radius: 12px; display: block; }
.brand-panel { justify-self: center; }

.card-lead {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
}
@media (min-width: 960px) {
  .card-grid.three .card-lead {
    grid-column: span 2;
  }
}
.support-sla, .local-install {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.local-install strong { color: var(--navy); }


/* consent banner */
.consent-banner {
  position: fixed;
  z-index: 1000;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem 1rem;
  pointer-events: none;
}
.consent-banner[hidden] { display: none !important; }
.consent-banner-inner {
  pointer-events: auto;
  max-width: 40rem;
  margin: 0 auto;
  background: #183060;
  color: #fff;
  border-radius: 10px;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 8px 28px rgba(24, 48, 96, 0.35);
  border-top: 3px solid #E81820;
}
.consent-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}
.consent-text {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
}
.consent-text a {
  color: #fff;
  text-decoration: underline;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.consent-btn {
  flex: 1 1 8rem;
  min-height: 2.6rem;
  justify-content: center;
}
.consent-banner .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.65);
}
.consent-banner .btn-ghost:hover,
.consent-banner .btn-ghost:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.consent-banner .btn-primary {
  background: #E81820;
  border-color: #E81820;
  color: #fff;
}
.consent-banner .btn-primary:hover,
.consent-banner .btn-primary:focus-visible {
  filter: brightness(1.05);
}
.footer-legal a[data-cookie-settings] {
  cursor: pointer;
}

/* equal-weight consent buttons (PECR: accept and reject equally prominent) */
.consent-banner .consent-btn,
.consent-banner .btn-primary,
.consent-banner .btn-ghost {
  background: #ffffff; color: #183060; border: 2px solid #ffffff;
}
.consent-banner .consent-btn:hover,
.consent-banner .consent-btn:focus-visible {
  background: #E81820; color: #ffffff; border-color: #E81820;
  outline: 3px solid #ffffff; outline-offset: 2px;
}
.consent-banner:focus { outline: none; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid #d8dee8; padding: 0.55rem 0.65rem; text-align: left; vertical-align: top; }
.prose th { background: #f0f4fa; color: #183060; }


/* Visually hidden text for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Header actions: phone + Customer login */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

/* Customer login as a solid brand button (navy on the light header,
   inverted to white on the navy footer). Same-tab link. */
a.customer-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
a.customer-login:hover,
a.customer-login:focus-visible {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
  text-decoration: none;
}

/* Invert on the navy footer so the button stays visible and clearly a button
   among the legal text links. White on navy keeps brand colours only. */
.site-footer a.customer-login {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
}
.site-footer a.customer-login:hover,
.site-footer a.customer-login:focus-visible {
  background: var(--navy-soft);
  border-color: #fff;
  color: var(--navy-deep);
  text-decoration: none;
}

@media (max-width: 639px) {
  .header-actions {
    gap: 0.5rem;
    order: 2;
    /* Two pills are too wide to sit beside the logo on a phone, so give
       them their own full-width row rather than wrapping with a ragged gap. */
    margin-left: 0;
    flex-basis: 100%;
    width: 100%;
    justify-content: stretch;
  }
  a.customer-login,
  .site-footer a.customer-login {
    min-height: 44px;
  }
  .header-actions a.customer-login,
  .header-actions .header-phone {
    flex: 1 1 0;
  }
}

/* Contact aside is navy — muted grey fails contrast on it */
.contact-aside .support-sla,
.contact-aside .local-install,
.contact-aside .hours-block .support-sla {
  color: rgba(255, 255, 255, 0.92);
}
.contact-aside .hours-block .hours {
  color: rgba(255, 255, 255, 0.92);
}
