/* Towing Insurance Specialist — UIkit theme overrides. */

/* Theme tokens */
:root {
    --brand: #123f69;
    --dark: #333333;
    --ink: #282828;
    --muted: #555555;
    --surface: #f5f6f7;
    --body-font: "Mulish", Arial, sans-serif;
    --heading-font: "Quicksand", Arial, sans-serif;
}

/* Base typography and accessibility */
html {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    scroll-padding-top: 24px;
}
body {
    margin: 0;
}
h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    color: var(--ink);
}
h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
}
h2 {
    font-size: 1.5rem;
}
h3 {
    font-size: 1.05rem;
    font-weight: 700;
}
a {
    color: var(--brand);
}
a:hover {
    color: #082b4c;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #b47827;
    outline-offset: 4px;
}
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    padding: 12px;
    background: white;
    z-index: 2000;
}
.skip-link:focus {
    top: 16px;
}
.uk-container {
    max-width: 1120px;
}
.uk-container-small {
    max-width: 760px;
}
.uk-container-expand {
    max-width: none;
}
.uk-section {
    padding: 64px 0;
}
.section-heading {
    text-align: center;
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    font-weight: 400;
    margin: 0 0 44px;
}

/* Header and navigation */
.site-header {
    background: var(--dark);
    position: relative;
    z-index: 10;
}
.site-header > .uk-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 72px;
}
.logo {
    position: absolute;
    top: 16px;
    left: 40px;
    display: block;
    width: 270px;
    padding: 12px;
    box-sizing: border-box;
    background: white;
    box-shadow: 0 3px 8px #0002;
}
.logo img {
    display: block;
    width: 100%;
    height: auto;
}
.uk-navbar-nav > li > a {
    font-family: var(--heading-font);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    min-height: 72px;
}
.uk-navbar-nav > li.uk-active > a,
.uk-navbar-nav > li > a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 7px;
}
.site-header .menu-toggle {
    color: white;
    border-color: #ccc;
}
.uk-offcanvas-bar {
    background: var(--dark);
}
.uk-offcanvas-bar nav {
    margin: 44px 0 28px;
}
.uk-offcanvas-bar .uk-nav > li > a {
    padding: 14px 0;
    font-family: var(--heading-font);
}

/* Hero */
.hero-photo img {
    display: block;
    width: 100%;
    height: min(53vw, 720px);
    object-fit: cover;
    object-position: center;
}
.hero-intro {
    background: var(--dark);
    color: #fff;
}
.hero-intro h1 {
    color: white;
    margin-bottom: 12px;
}
.hero-intro p {
    margin: 12px 0 24px;
}
.hero-intro .uk-button {
    color: white;
    border-color: white;
}

/* Buttons */
.uk-button {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    min-height: 52px;
    padding: 4px 26px;
    line-height: 42px;
    border-radius: 3px;
}
.uk-button-default {
    border-color: #555;
    color: var(--ink);
}
.uk-button-default:hover,
.uk-button-default:focus {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}
.uk-button:disabled {
    opacity: 0.6;
}

/* Coverage and team cards */
.coverage-grid,
.team-grid {
    text-align: center;
}
.round-photo {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}
.coverage-grid h3,
.team-grid h3 {
    margin: 24px 0;
}
.coverage-grid ul {
    text-align: left;
    padding-left: 24px;
}
.coverage-grid p,
.team-grid p {
    margin: 0 0 24px;
}
.team-grid article {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team-grid article > div {
    flex: 1;
}
.team-grid .uk-button {
    margin-top: 5px;
}
.staff-photo {
    object-position: center 25%;
}
.staff-5 {
    object-position: center 33%;
}

/* Reviews and newsletter backgrounds */
.photo-section {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
}
.photo-section h2 {
    color: white;
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 30px;
}
.reviews-section {
    background-image:
        linear-gradient(#0008, #0008), url("../images/stock-5223.jpg");
}
.subscribe-section {
    background-image:
        linear-gradient(#000a, #000a), url("../images/stock-288.jpg");
}
.review-notice {
    padding: 18px;
    background: var(--dark);
    margin: 0;
}
.signup-row {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.signup-row .uk-input {
    flex: 1;
    min-width: 0;
}
.signup-row .uk-button {
    background: white;
    color: var(--ink);
    white-space: nowrap;
}
.subscribe-form .uk-form-label {
    color: white;
    text-align: left;
}

/* Forms */
.uk-input,
.uk-textarea {
    font-family: var(--body-font);
    color: var(--ink);
    border-color: #aaa;
    background: white;
    font-size: 1rem;
}
.uk-input {
    height: 52px;
}
.uk-textarea {
    padding: 14px;
}
.uk-form-label {
    color: var(--ink);
    display: block;
    margin-bottom: 6px;
}
.uk-input:focus,
.uk-textarea:focus {
    border-color: var(--brand);
}
.form-help {
    font-size: 0.85rem;
    line-height: 1.6;
}
.form-status {
    font-size: 0.95rem;
}
.form-title {
    font-size: 1.1rem;
    font-weight: 700;
}
.contact-info {
    margin-top: 60px;
}
.contact-page {
    padding-top: 150px;
}
.contact-page > .uk-container > h1 {
    margin-bottom: 50px;
}
.person-contact h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.person-contact + .person-contact {
    margin-top: 28px;
}
.person-contact a {
    overflow-wrap: anywhere;
}
.location-section {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 1px solid #ddd;
}
.location-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
}
.uk-accordion-title {
    font-size: 1rem;
}
.uk-table th {
    font-size: 0.95rem;
    color: var(--ink);
}
.location-map {
    width: 100%;
    height: 400px;
    border: 0;
    margin-top: 40px;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: white;
    padding: 42px 0;
}
.site-footer > .uk-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.site-footer p {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin: 0;
}
.site-footer .uk-subnav {
    margin-bottom: 0;
    margin-top: 0;
}
.site-footer a,
.site-footer .uk-subnav > li > a {
    color: white;
}

/* Tablet */
@media (max-width: 959px) {
    .logo {
        width: 210px;
        left: 24px;
    }
    .coverage-grid article + article,
    .team-grid article + article {
        margin-top: 40px;
    }
    .coverage-grid ul {
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
    .round-photo {
        max-width: 340px;
    }
    .uk-section {
        padding: 48px 0;
    }
    .contact-page {
        padding-top: 120px;
    }
}

/* Mobile */
@media (max-width: 639px) {
    .site-header > .uk-container {
        justify-content: space-between;
        min-height: 95px;
        padding: 12px 20px;
    }
    .logo {
        position: static;
        width: 135px;
        padding: 6px;
    }
    .hero-photo img {
        height: 300px;
        object-position: 45% center;
    }
    .hero-intro h1 {
        font-size: 2rem;
    }
    .uk-section {
        padding: 42px 0;
    }
    .section-heading {
        margin-bottom: 32px;
    }
    .photo-section h2 {
        font-size: 2.1rem;
    }
    .signup-row {
        flex-direction: column;
    }
    .signup-row .uk-input {
        flex: auto;
    }
    .contact-page {
        padding-top: 42px;
    }
    .contact-info {
        margin-top: 38px;
    }
    .location-section {
        margin-top: 40px;
        padding-top: 32px;
    }
    .location-map {
        height: 300px;
    }
    .site-footer > .uk-container {
        flex-direction: column;
        text-align: center;
    }
}

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