/* Erling Business Phone Systems
   Palette taken from the logo: teal chevron + deep navy, cool neutrals to sit with the photography.
   One warm signal colour (amber) is reserved for the emergency message. */
/* Self-hosted Red Hat Display + Red Hat Text (variable, latin subset, OFL) */
@font-face { font-family: "Red Hat Display"; src: url("/fonts/red-hat-display-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("/fonts/red-hat-text-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --teal: #087a77;        /* text, buttons (AA on white) */
  --teal-dark: #06615f;
  --teal-logo: #0b9796;   /* decorative only */
  --teal-tint: #e4f2f1;
  --navy: #0e2a3b;
  --navy-2: #173a4f;
  --navy-line: #2b4c60;
  --on-navy: #c9d7df;
  --amber: #f5b841;
  --text: #22333e;
  --muted: #566873;
  --surface: #f3f6f7;
  --line: #dce4e7;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --display: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
  --body: "Red Hat Text", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 8rem; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal-logo); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 30; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Type scale */
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h1.compact { font-size: clamp(1.9rem, 3.3vw, 2.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.35rem); letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; }
p, ul, ol { margin: 0 0 1em; }
.center { text-align: center; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 60ch; color: var(--text); }
.center .lede { margin-left: auto; margin-right: auto; }
.note { color: var(--muted); font-size: .9375rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-family: var(--display); font-size: 1rem; font-weight: 700;
  text-decoration: none; line-height: 1.2; letter-spacing: .005em;
  background: var(--teal); color: #fff; padding: .85rem 1.4rem; border-radius: var(--r-sm); border: 2px solid var(--teal); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn svg { width: 1.05rem; height: 1.05rem; fill: currentColor; flex: none; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--teal-tint); border-color: var(--teal-tint); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.center .actions { justify-content: center; }

/* Emergency strip */
.alert-strip { background: var(--navy); color: var(--on-navy); font-size: .9375rem; }
.alert-strip .wrap { display: flex; justify-content: center; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; text-align: center; }
.alert-strip strong { color: #fff; font-weight: 700; }
.alert-strip a { color: var(--amber); font-weight: 700; text-decoration: none; white-space: nowrap; }
.alert-strip a:hover { text-decoration: underline; color: var(--amber); }
.alert-strip .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--amber); display: inline-block; margin-right: .5rem; vertical-align: .1em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: .7rem var(--gutter); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--navy); flex: none; }
.brand img { height: 3rem; width: auto; }
.site-nav { margin: 0 auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; align-items: center; }
.site-nav li { position: relative; }
.site-nav a { color: var(--navy); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1rem; padding: .6rem 0; display: inline-flex; align-items: center; gap: .4rem; }
.site-nav a:hover { color: var(--teal); }
.site-nav > ul > li > a[aria-current="page"], .site-nav > ul > li.active > a { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); }
.caret { width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); display: inline-block; opacity: .6; }
.sub { list-style: none; margin: 0; padding: .4rem; position: absolute; top: calc(100% + .25rem); left: -1rem; min-width: 17rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 16px 40px -12px rgba(14,42,59,.25); display: none; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -.5rem; height: .5rem; }
.sub a { display: block; padding: .55rem .8rem; font-size: .9688rem; font-weight: 500; border-radius: var(--r-sm); box-shadow: none !important; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--surface); color: var(--teal); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; flex: none; }
.header-phone { color: var(--navy); text-decoration: none; font-family: var(--display); font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; }
.header-phone svg { width: 1rem; height: 1rem; fill: var(--teal); }
.header-phone:hover { color: var(--teal); }
.header-actions .btn { padding: .65rem 1.1rem; }
.nav-toggle { display: none; font: inherit; font-family: var(--display); font-weight: 700; font-size: .9375rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .5rem .9rem; cursor: pointer; color: var(--navy); }
.site-nav .mobile-only { display: none; }

@media (max-width: 1100px) {
  .site-nav > ul { gap: 1.4rem; }
  .header-phone { display: none; }
}
@media (max-width: 900px) {
  .bar { flex-wrap: wrap; gap: .75rem; padding-top: .55rem; padding-bottom: .55rem; }
  .brand img { height: 2.5rem; }
  .header-actions { margin-left: auto; gap: .5rem; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: inline-block; }
  .site-nav { flex-basis: 100%; margin: 0; display: none; padding: 0 0 .5rem; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: .75rem .25rem; width: 100%; border-top: 1px solid var(--line); box-shadow: none !important; }
  .caret { display: none; }
  .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 .25rem 1rem; min-width: 0; }
  .sub::before { display: none; }
  .sub a { padding: .5rem .25rem; border-top: 0; font-size: .9375rem; color: var(--muted); }
  .site-nav .mobile-only { display: block; }
}
@media (max-width: 400px) { .brand img { height: 2.2rem; } .alert-strip { font-size: .875rem; } }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-grey { background: var(--surface); }
.page-top { padding-top: clamp(2.5rem, 6vw, 5rem); }
.section.page-top.center { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section.flush-top { padding-top: 0; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: start; }
.split.middle { align-items: center; }
.split.hero { grid-template-columns: 1fr 1.05fr; }
@media (max-width: 820px) { .split, .split.hero { grid-template-columns: 1fr; } }

.photo { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { aspect-ratio: 5 / 6; max-height: 38rem; }
.wide-photo { margin-top: clamp(1.75rem, 4vw, 3rem); aspect-ratio: 16 / 6.5; }
.banner-photo { max-width: 36rem; margin: 0 auto clamp(1.75rem, 4vw, 2.5rem); }

/* Hero proof points */
.proof { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); font-size: .9688rem; }
.proof li { display: flex; align-items: center; gap: .5rem; }
.proof li::before, .checks li::before { content: ""; flex: none; border-radius: 50%; background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23087a77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.proof li::before { width: 1.1rem; height: 1.1rem; }

.bullets { list-style: none; padding: 0; font-size: 1.125rem; }
.bullets li { padding: .75rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .85rem; align-items: center; font-weight: 500; color: var(--navy); }
.bullets li:first-child { border-top: 1px solid var(--line); }
.bullets li::before { content: ""; width: .55rem; height: .55rem; flex: none; background: var(--teal-logo); transform: rotate(45deg); border-radius: 1px; }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checks li::before { position: absolute; left: 0; top: .3rem; width: 1.15rem; height: 1.15rem; }
.checks strong { color: var(--navy); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2.25rem, 5vw, 3.5rem); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 860px) { .cards, .cards.two { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.5rem, 3vw, 2.25rem); }
.section-grey .card { border-color: transparent; }
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.blue { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.card.blue h3, .card.blue h4, .card.blue .total, .card.blue strong { color: #fff; }
.card.blue a { color: #fff; }
.card .icon { width: 3.25rem; height: 3.25rem; border-radius: 12px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; margin-bottom: 1.25rem; }
.card .icon svg { width: 1.9rem; height: 1.9rem; }
.card h4 { margin: 0 0 .75rem; }
.card ul { padding-left: 1.1rem; }
.card li { margin-bottom: .35rem; }
.card li::marker { color: var(--teal-logo); }
.total { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.total small { display: block; font-family: var(--body); font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.card.blue .total { border-top-color: var(--navy-line); }
.card.blue .total small { color: var(--on-navy); }
.compare-block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.compare-block h3 { margin-bottom: 1rem; }

/* Cost bars: bar length is proportional to the 5-year cost */
.bars { display: grid; gap: 1.1rem; }
.bar-row { display: grid; gap: .45rem; }
.bar-label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .9688rem; }
.bar-label strong { font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.bar-track { height: .9rem; border-radius: 999px; background: rgba(14,42,59,.08); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: #8fa3af; }
.bar-row.ours .bar-fill { background: var(--teal-logo); }
.bars.on-light { margin-bottom: 1.5rem; }
.bars.on-light .bar-label strong { color: var(--navy); }
.bars.on-light .bar-row.ours .bar-label strong { color: var(--teal); }

/* Cost teaser: the one full-bleed dark band on the home page */
.band { background: var(--navy); color: var(--on-navy); }
.band h2 { color: #fff; }
.teaser { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.teaser p { margin-bottom: 1.5rem; }
.teaser .bars .bar-label { color: var(--on-navy); }
.teaser .bars .bar-label strong { color: #fff; }
.teaser .bar-row.ours .bar-label strong { color: #7fd9d3; }
.teaser .bar-track { background: rgba(255,255,255,.1); height: 1.1rem; }
.teaser .bar-fill { background: #5d7686; }
.teaser .save { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--navy-line); font-size: 1rem; }
.teaser .save strong { color: var(--amber); font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }

.brands { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 0; align-content: start; }
.brands li { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; color: var(--navy); font-weight: 500; background: #fff; }

.pill-links { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pill-links a { display: inline-block; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 500; font-size: .9375rem; }
.pill-links a:hover { border-color: var(--teal); color: var(--teal); }

/* Get in touch */
.touch-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.touch-head h2 { margin: 0; }
@media (max-width: 820px) { .touch-head { grid-template-columns: 1fr; align-items: start; } }
.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { display: flex; gap: .75rem; align-items: center; margin-bottom: .5rem; }
.contact-lines li:last-child { margin-bottom: 0; }
.contact-lines svg { width: 1.1rem; height: 1.1rem; flex: none; fill: var(--teal); }
.contact-lines a { color: var(--navy); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.contact-lines a:hover { color: var(--teal); }
.map { border-radius: var(--r-lg); overflow: hidden; border: 0; width: 100%; height: 24rem; display: block; background: #e5e9eb; }

/* 3CX trial */
.trial { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem); }
.trial-copy { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.trial img { width: 8.5rem; border-radius: 6px; }
.trial p { margin: 0; font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 1.125rem; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 21rem)); justify-content: center; gap: clamp(1rem, 2vw, 1.5rem); list-style: none; padding: 0; margin: 0 0 2rem; }
.products li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: .75rem .75rem 1.5rem; }
.products img { background: #fff; border-radius: 10px; aspect-ratio: 4 / 3; object-fit: contain; width: 100%; margin-bottom: 1.1rem; padding: .75rem; }
.products h3, .products p { padding: 0 .75rem; }
.products h3 { margin-bottom: .3rem; }
.products p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 50rem; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.25rem 3rem 1.25rem 0; font-family: var(--display); font-weight: 700; font-size: 1.1875rem; list-style: none; position: relative; color: var(--navy); }
.faq summary:hover { color: var(--teal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .35rem; top: 50%; width: .6rem; height: .6rem; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq .answer { padding: 0 3rem 1.25rem 0; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Contact form */
form.contact { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 24px 48px -32px rgba(14,42,59,.35); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--display); font-weight: 700; margin-bottom: .35rem; font-size: .9688rem; color: var(--navy); }
.field .hint { font-family: var(--body); font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .75rem .9rem; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(11,151,150,.35); outline-offset: 0; border-color: var(--teal); background: #fff; }
.field textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.emergency { background: var(--surface); border-left: 4px solid var(--amber); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.emergency p { margin: 0; }
.big-phone { font-family: var(--display); font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); text-decoration: none; display: inline-block; margin: .25rem 0 .75rem; }
.big-phone:hover { color: var(--teal); }
address { font-style: normal; }

.badges { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin-top: 1.75rem; }
.badges img { height: 4.5rem; width: auto; border-radius: var(--r-sm); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; font-size: .9688rem; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-cols h2 { font-size: 1.125rem; color: #fff; margin: 0 0 .75rem; letter-spacing: -0.01em; }
.footer-cols p, .footer-cols address { margin: 0 0 .4rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: .4rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #7fd9d3; text-decoration: underline; }
.footer-phone { font-family: var(--display); font-weight: 800; font-size: 1.375rem; }
.copyright { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--navy-line); font-size: .875rem; color: #8fa3af; }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 720px) {
  .btn.call-bar { display: flex; position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 25; justify-content: center; padding: .95rem 1rem; box-shadow: 0 12px 30px -8px rgba(14,42,59,.5); border-radius: 12px; font-size: 1.0625rem; }
  body { padding-bottom: 5rem; }
  .alert-strip .long, .alert-strip .strip-call { display: none; }
}

@media (max-width: 820px) { .hero-photo { aspect-ratio: 16 / 11; order: 2; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
