/* A&B Risk Managers — UIkit overrides.
   Edit these tokens to change the theme. */

/* Theme Variables */
:root {
    --brand: #2c3778;
    --brand-dark: #1d285e;
    --ink: #262626;
    --muted: #575757;
    --surface: #f6f6f6;
    --body: 'Gentium Basic', Georgia, serif;
    --display: 'Dancing Script', cursive;
}

/* Base Styles */
html {
    font-family: var(--body);
    font-size: 18px;
    color: var(--muted);
    line-height: 1.55;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
}

h1,
h2,
h3,
h4,
.uk-text-lead {
    font-family: var(--body);
    color: var(--ink);
}

h1,
.section-title {
    font-family: var(--display);
    color: var(--brand);
}

h1 {
    font-size: clamp(2.5rem, 4.3vw, 3.3rem);
    line-height: 1.15;
}

h3,
.plain-heading {
    font-size: 1.35rem;
    line-height: 1.35;
}

a {
    color: var(--brand);
}

a:hover {
    color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #b57929;
    outline-offset: 4px;
}

/* Containers and Sections */
.uk-container {
    max-width: 1120px;
}

.uk-container-small {
    max-width: 760px;
}

.uk-section-muted {
    background: var(--surface);
}

.uk-section {
    padding-top: 66px;
    padding-bottom: 66px;
}

/* Site Header */
.site-header {
    background: var(--surface);
    padding: 40px 0 26px;
    text-align: center;
}

.logo {
    display: inline-block;
}

.logo img {
    width: 112px;
    height: 80px;
    object-fit: contain;
}

/* Desktop Navigation */
.uk-navbar-nav > li > a {
    font-family: var(--body);
    font-size: 0.8rem;
    color: var(--ink);
    min-height: 70px;
}

.uk-navbar-nav > li.uk-active > a {
    color: var(--brand);
    font-weight: 700;
}

.uk-navbar-center {
    position: static;
    transform: none;
    margin: auto;
}

.uk-navbar-nav {
    gap: 32px;
}

/* Mobile Navigation */
.menu-toggle {
    margin: 15px auto 0;
}

.uk-offcanvas-bar {
    background: var(--brand-dark);
    font-family: var(--body);
}

.uk-offcanvas-bar nav {
    margin: 35px 0;
}

.uk-offcanvas-bar .uk-nav > li > a {
    font-size: 1.15rem;
    padding: 14px 0;
}

/* Homepage Hero */
.home-hero {
    min-height: 560px;
    padding: 55px 24px;
    box-sizing: border-box;
    background:
        url('../images/stock-d3fb5a7a04af.jpg')
        center 49% / cover no-repeat;
}

.hero-panel {
    box-sizing: border-box;
    width: 510px;
    max-width: 100%;
    padding: 40px 46px;
    background: rgba(255, 255, 255, 0.94);
}

.hero-panel h1 {
    font-size: 2.65rem;
    margin: 18px 0 12px;
}

.hero-phone {
    color: var(--muted);
    font-size: 1.1rem;
}

.hero-panel .uk-text-lead {
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 12px 0 28px;
}

/* Buttons */
.uk-button {
    font-family: var(--body);
    border-radius: 32px;
    min-height: 54px;
    padding: 6px 32px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 40px;
}

.uk-button-primary {
    background: var(--brand);
    color: white;
}

.uk-button-primary:hover,
.uk-button-primary:focus {
    background: var(--brand-dark);
    color: white;
}

/* Section Headings */
.section-title {
    font-size: 2rem;
    margin: 0 0 45px;
}

.uk-heading-line > span:before,
.uk-heading-line > span:after {
    border-color: var(--brand);
}

/* Insurance Programs */
.program-copy {
    padding: 60px max(32px, calc((100vw - 1100px) / 2)) 65px;
    padding-right: 65px;
}

.program-copy .section-title {
    text-align: left !important;
    white-space: nowrap;
}

.program-block {
    margin-top: 38px;
}

.program-block h3 {
    margin-bottom: 22px;
}

.program-block p {
    margin: 0;
}

.program-image {
    position: relative;
    min-height: 550px;
}

.program-image img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
}

/* Form Fields */
.uk-input,
.uk-textarea {
    font-family: var(--body);
    font-size: 1rem;
    border-radius: 3px;
    color: var(--ink);
    background: #fff;
}

.uk-input {
    height: 49px;
}

.uk-textarea {
    padding: 12px;
}

.uk-form-label {
    font-family: var(--body);
    font-size: 0.95rem;
    color: var(--ink);
}

.uk-input:focus,
.uk-textarea:focus {
    border-color: var(--brand);
}

/* Contact Details */
.contact-details {
    margin-top: 60px;
}

.contact-details > .uk-grid {
    margin-top: 50px;
}

/* Affiliates */
.affiliate-image {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: auto;
}

/* Social Media */
.facebook-link {
    display: inline-flex;
    background: #1877f2;
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
}

.facebook-link:hover {
    color: #fff;
    background: #135cbf;
}

/* Site Footer */
.site-footer {
    padding: 65px 0 40px;
}

.site-footer .uk-subnav > li > a {
    font-family: var(--body);
    text-transform: none;
    color: var(--brand);
    font-size: 0.95rem;
}

.site-footer p {
    margin: 18px 0 5px;
}

.site-footer [uk-totop] {
    margin-top: 24px;
}

/* Interior Page Titles */
.page-title {
    text-align: center;
    padding: 45px 0;
}

.page-title h1 {
    margin: 0;
}

/* Coverage Rows */
.coverage-row + .coverage-row {
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid #e3e3e3;
}

.coverage-row:nth-of-type(even) > div:first-child {
    order: 2;
}

.coverage-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

/* Team Profiles */
.staff-photo {
    width: 100%;
    height: 370px;
    object-fit: cover;
    object-position: 50% 25%;
    background: #eee;
}

.team-grid h3 {
    margin-top: 25px;
}

.team-grid p {
    margin: 16px 0;
    overflow-wrap: anywhere;
}

.service-grid {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.service-grid .staff-photo {
    height: 320px;
}

/* Privacy Policy */
.policy h2 {
    font-size: 1.9rem;
}

.policy p {
    margin: 0 0 20px;
}

.policy ul {
    margin-top: 0;
    margin-bottom: 24px;
}

.policy a {
    overflow-wrap: anywhere;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 2000;
    background: white;
    padding: 12px;
}

.skip-link:focus {
    top: 12px;
}

/* Tablet and Smaller Screens */
@media (max-width: 959px) {
    .site-header {
        padding: 22px 0;
    }

    .site-header .uk-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .menu-toggle {
        margin: 0;
    }

    .logo img {
        height: 66px;
        width: 93px;
    }

    .home-hero {
        min-height: 510px;
    }

    .program-copy {
        padding: 45px 30px;
    }

    .program-image {
        height: 380px;
        min-height: 0;
    }

    .program-image img {
        position: static;
    }

    .coverage-row:nth-of-type(even) > div:first-child {
        order: 0;
    }

    .staff-photo {
        max-width: 400px;
        height: 420px;
    }

    .team-grid article + article {
        margin-top: 40px;
    }

    .uk-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .section-title {
        margin-bottom: 32px;
    }
}

/* Mobile Screens */
@media (max-width: 639px) {
    html {
        font-size: 17px;
    }

    .hero-panel {
        padding: 30px 24px;
    }

    .hero-panel h1 {
        font-size: 2.45rem;
    }

    .home-hero {
        padding: 36px 18px;
        min-height: 480px;
    }

    .program-copy .section-title {
        white-space: normal;
    }

    .uk-grid-large {
        margin-left: -30px;
    }

    .uk-grid-large > * {
        padding-left: 30px;
    }

    .coverage-row + .coverage-row {
        margin-top: 36px;
        padding-top: 36px;
    }

    .page-title h1 {
        font-size: 2.4rem;
    }

    .service-grid .staff-photo {
        max-width: 360px;
        height: 330px;
    }

    .service-grid {
        margin-left: -30px;
    }

    .uk-subnav {
        row-gap: 14px;
    }

    .contact-details > .uk-grid {
        margin-top: 30px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}