/* UnifiedVox site styles. Loaded after bootstrap.css (grid, forms, navbar collapse). */

:root {
    /* brand colours from the logo: navy #092E4C, teal #018A75 */
    --navy: #092E4C;
    --navy-deep: #071F33;
    --brand-teal: #018A75;
    --teal: #00715F;
    --teal-dark: #005A4C;
    --teal-bright: #2ED3B7;
    --ink: #1D2A36;
    --muted: #51606E;
    --paper: #F2F5F8;
    --tint: #E7F5F2;
    --rule: #D6DEE6;
    --on-navy: #C5D3E0;

    --font-body: 'Barlow', system-ui, sans-serif;
    --font-head: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
    --measure: 68ch;
    --radius: 6px;
}

/* Base */

html { scroll-padding-top: 96px; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--teal); }
a:hover, a:focus { color: var(--teal-dark); }

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

.tel { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Buttons */

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius);
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { font-size: 17px; padding: 12px 24px; }

.btn-primary,
.btn-light {
    color: #fff;
    background: var(--teal);
    border: 1px solid var(--teal);
}
.btn-primary:hover, .btn-primary:focus,
.btn-light:hover, .btn-light:focus {
    color: #fff;
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}
.btn-light[disabled] { opacity: .6; }

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    transition: box-shadow .2s;
}
.header.sticky { box-shadow: 0 2px 12px rgba(9, 46, 76, .08); }

.header .navbar {
    margin: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.header .container > .navbar-header { margin: 0; }
.navbar-header { display: flex; align-items: center; justify-content: space-between; }
.navbar-header::before, .navbar-header::after { display: none; }

.brand { display: block; padding: 18px 0; }
.brand img { display: block; height: 32px; width: auto; }

.navbar-toggle {
    order: 2;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.navbar-toggle .icon-bar { background: var(--navy); width: 20px; }

.navbar-nav > li > a {
    color: var(--ink);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 12px;
}
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.navbar-nav > .open > a,
.navbar-nav > .open > a:hover,
.navbar-nav > .open > a:focus {
    color: var(--teal);
    background: none;
}
.navbar-nav > .active > a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--brand-teal);
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}
.navbar-nav .caret { margin-left: 2px; }

.navbar-nav > li.nav-phone > a {
    color: var(--navy);
    font-weight: 600;
}
.navbar-nav > li.nav-pay > a {
    color: var(--teal);
    font-weight: 600;
    border: 1px solid var(--teal);
    border-radius: var(--radius);
    padding: 8px 14px;
    margin: 2px 0 2px 8px;
}
.navbar-nav > li.nav-pay > a:hover,
.navbar-nav > li.nav-pay > a:focus,
.navbar-nav > li.nav-pay.active > a {
    color: #fff;
    background: var(--teal);
    text-decoration: none;
}

/* Services dropdown */

.dropdown-menu {
    padding: 8px 0;
    min-width: 280px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(9, 46, 76, .12);
}
.dropdown-menu > li > a {
    padding: 8px 18px;
    color: var(--ink);
    font-weight: 500;
}
.dropdown-menu ul {
    list-style: none;
    margin: 0 0 4px 18px;
    padding: 0 0 0 12px;
    border-left: 2px solid var(--rule);
}
.dropdown-menu ul a {
    display: block;
    padding: 5px 10px;
    color: var(--muted);
    font-size: 15px;
    text-decoration: none;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu ul a:hover,
.dropdown-menu ul a:focus {
    color: var(--teal);
    background: var(--paper);
}

@media (min-width: 768px) {
    .header .navbar > .container { display: flex; align-items: center; justify-content: space-between; }
    .header .navbar > .container::before, .header .navbar > .container::after { display: none; }
    .navbar-collapse { padding: 0; }
    .navbar-nav { display: flex; align-items: center; float: none; }
    .navbar-nav > li { float: none; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .navbar-nav > li > a { padding: 10px 8px; font-size: 15px; }
    .navbar-nav > li.nav-phone { display: none; }
}

@media (max-width: 767px) {
    .navbar-collapse { border-top: 1px solid var(--rule); box-shadow: none; margin: 0 -15px; }
    .navbar-nav { margin: 8px 0 16px; }
    .navbar-nav > li > a { padding: 10px 15px; }
    .navbar-nav > .active > a { text-underline-offset: 6px; }
    .navbar-nav > li.nav-pay > a { display: inline-block; margin: 8px 15px 0; }
    .navbar-nav .open .dropdown-menu { border: 0; box-shadow: none; padding: 0 0 8px 15px; }
    .navbar-nav .open .dropdown-menu > li > a { padding: 6px 15px; line-height: 1.4; }
}

/* Homepage hero */

.hero {
    background: var(--navy);
    color: var(--on-navy);
    padding: 72px 0 0;
}
.hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 24px 48px;
    align-items: end;
}
.hero h1 {
    grid-column: 1;
    color: #fff;
    font-size: clamp(40px, 5.6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    margin: 0;
    max-width: 13ch;
}
.hero .lead {
    grid-column: 2;
    font-size: 19px;
    line-height: 1.55;
    margin: 0;
    max-width: 44ch;
}
.hero-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 16px;
}
.hero-phone {
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--teal-bright);
    text-underline-offset: 5px;
}
.hero-phone:hover, .hero-phone:focus { color: var(--teal-bright); }

/* The photo: congested highway (left) vs open road (right) */
.hero-figure {
    position: relative;
    margin: 56px 0 -96px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(10, 31, 51, .25);
}
.hero-figure img { display: block; width: 100%; height: auto; }
.hero-figure figcaption {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    pointer-events: none;
}
.hero-figure figcaption span {
    justify-self: start;
    margin: 0 0 20px 20px;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
}
.hero-figure figcaption span + span {
    color: #fff;
    background: var(--teal);
}

@media (max-width: 767px) {
    .hero { padding-top: 48px; }
    .hero-copy { grid-template-columns: 1fr; }
    .hero .lead, .hero-actions { grid-column: 1; }
    .hero-figure { margin: 40px 0 -64px; }
    .hero-figure img { aspect-ratio: 4 / 3; object-fit: cover; }
    .hero-figure figcaption span { margin: 0 0 10px 10px; font-size: 13px; padding: 4px 8px; }
}

/* Homepage sections */

.home-section { padding: 72px 0; }
.home-section.after-hero { padding-top: 160px; }
.home-section.alt { background: var(--paper); }
.home-section h2 {
    font-size: clamp(30px, 3.4vw, 40px);
    max-width: 22ch;
    margin-bottom: 40px;
}

.audiences {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.audiences li {
    border-top: 3px solid var(--brand-teal);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}
.audiences h3 { font-size: 24px; margin-bottom: 10px; }
.audiences p { color: var(--muted); flex: 1; }
.audiences a { font-weight: 600; }

.also {
    margin: 48px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    color: var(--muted);
}
.also a { font-weight: 600; }

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    margin: 0;
}
.facts > div {
    padding: 24px 0;
    border-top: 1px solid var(--rule);
}
.facts dt {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.facts dd { color: var(--muted); margin: 0; max-width: 46ch; }

@media (max-width: 991px) {
    .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .home-section { padding: 56px 0; }
    .home-section.after-hero { padding-top: 112px; }
    .audiences, .facts { grid-template-columns: 1fr; }
}

/* Inner pages */

.title-header {
    background: var(--navy);
    color: var(--on-navy);
    padding: 56px 0 48px;
}
.title-header h1 {
    color: #fff;
    font-size: clamp(34px, 4.4vw, 52px);
    margin: 0 0 12px;
}
.title-header p {
    font-size: 19px;
    max-width: 60ch;
    margin: 0;
}

.inner-content { padding-top: 56px; padding-bottom: 72px; }
.inner-content > [class*="col-"]:first-child { padding-left: 0; }
.inner-content p,
.inner-content ul,
.inner-content ol { max-width: var(--measure); }
.inner-content h3 {
    font-size: 26px;
    margin: 40px 0 12px;
}
.inner-content h3:first-child { margin-top: 0; }
.inner-content ul { padding-left: 1.2em; }
.inner-content li { margin-bottom: .35em; }

.sidebar > div { margin-bottom: 32px; }
.sidebar h3 {
    font-size: 18px;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-teal);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 0; border-bottom: 1px solid var(--rule); }
.sidebar li a {
    display: block;
    padding: 8px 0;
    color: var(--ink);
    font-size: 16px;
    text-decoration: none;
}
.sidebar li a:hover, .sidebar li a:focus { color: var(--teal); }

@media (max-width: 991px) {
    .inner-content > [class*="col-"] { padding-left: 0; padding-right: 0; }
    .sidebar { margin-top: 40px; }
}

/* Forms */

label, .control-label { font-weight: 600; color: var(--ink); }

.form-control,
.form-control.input-lg {
    height: 48px;
    padding: 10px 14px;
    font-size: 17px;
    color: var(--ink);
    border: 1px solid #B7C3CF;
    border-radius: var(--radius);
    box-shadow: none;
}
textarea.form-control, textarea.form-control.input-lg { height: auto; }
.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 113, 95, .2);
}
.form-control::placeholder { color: #7D8B98; }
.form-control[readonly] { background: var(--paper); }
.form-group { margin-bottom: 20px; }
fieldset legend {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 8px;
}

/* Call-to-action band and footer */

.cta-band {
    background: var(--tint);
    padding: 64px 0;
}
.cta-band .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}
.cta-band .container::before,
.cta-band .container::after { display: none; }
.cta-band h2 { font-size: clamp(28px, 3vw, 36px); margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta-actions .tel { color: var(--navy); font-weight: 600; font-size: 18px; }

.site-footer {
    background: var(--navy-deep);
    color: #B9C7D4;
    padding: 56px 0 32px;
    font-size: 16px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--teal-bright); text-decoration: underline; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px 48px;
}
.footer-grid h2 {
    font-size: 17px;
    color: #fff;
    margin: 0 0 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid address { margin: 16px 0 8px; font-style: normal; }
.footer-logo { display: block; height: 30px; width: auto; }
.footer-legal {
    margin: 40px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

@media (max-width: 767px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
