/* =========================================================
   SITE VARIABLES
   ========================================================= */

:root {
    --site-dark-blue: #183b5b;
    --site-blue: #24577f;
    --site-light-blue: #eaf2f8;
    --site-background: #f4f6f8;
    --site-text: #263238;
    --site-border-radius: 1rem;
}


/* =========================================================
   BASE STYLES
   ========================================================= */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--site-background);
    color: var(--site-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (max-width: 575.98px) {
    body {
        font-size: 1rem;
    }
}


/* =========================================================
   HEADER BANNER
   ========================================================= */

.site-banner {
    padding: 1.25rem 0;
    background: var(--site-light-blue);
}

.banner-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.banner-text {
    min-width: 0;
}

.site-title {
    display: inline-block;
    color: var(--site-dark-blue);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.site-title:hover,
.site-title:focus-visible {
    color: var(--site-blue);
}

.site-subtitle {
    margin: 0.5rem 0 0;
    color: #506574;
    font-size: 1.15rem;
}

.banner-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    margin-left: auto;
}

.banner-badge-link {
    display: block;
    flex: 0 0 auto;
    border-radius: 0.5rem;
}

.banner-badge-link:focus-visible {
    outline: 3px solid var(--site-blue);
    outline-offset: 4px;
}

.banner-image {
    display: block;
    flex: 0 0 auto;
    width: auto;
    object-fit: contain;
}

.banner-image-certified {
    width: 100px;
    height: 100px;
}

.banner-image-anniversary {
    width: 210px;
    height: 105px;
}

/* Header banner: tablet */

@media (max-width: 767.98px) {
    .site-banner {
        padding: 1rem 0;
    }

    .banner-layout {
        gap: 1.25rem;
    }

    .banner-badges {
        gap: 0.75rem;
    }

    .banner-image-certified {
        width: 72px;
        height: 72px;
    }

    .banner-image-anniversary {
        width: 145px;
        height: 75px;
    }
}

/* Header banner: mobile */

@media (max-width: 575.98px) {
    .banner-layout {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
    }

    .banner-text {
        grid-column: 1;
    }

    .home-heading-image {
        grid-column: 2;
        width: 65px;
        height: 65px;
    }

    .banner-badges {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
        margin-left: 0;
        gap: 0.75rem;
    }

    .banner-image-certified {
        width: 55px;
        height: 55px;
    }

    .banner-image-anniversary {
        width: 100px;
        height: 55px;
    }
}


/* =========================================================
   NAVIGATION BAR
   ========================================================= */

.site-navbar {
    padding: 0.25rem 0;
    background: var(--site-dark-blue);
}

.site-navbar .navbar-nav {
    align-items: center;
}

.site-navbar .nav-link {
    padding: 0.4rem 0.75rem;
    border-radius: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
    transition:
        background-color 150ms ease,
        color 150ms ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.site-navbar .nav-link.active {
    background: #ffffff;
    color: var(--site-dark-blue);
    font-weight: 700;
}

/* Navigation bar: collapsed tablet/mobile menu */

@media (max-width: 991.98px) {
    .site-navbar .navbar-nav {
        align-items: stretch;
        padding: 0.25rem 0;
    }

    .site-navbar .nav-link {
        margin-top: 0.2rem;
    }

    .site-navbar .nav-link.active {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Navigation bar: mobile */

@media (max-width: 575.98px) {
    .site-navbar {
        padding: 0.15rem 0;
    }

    .site-navbar .nav-link {
        padding: 0.35rem 0.65rem;
    }
}


/* =========================================================
   SHARED PAGE CONTENT
   ========================================================= */

.page-content {
    flex: 1;
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
}

.page-heading {
    max-width: 1000px;
    margin: 0 auto 1.5rem;
}

.page-heading h1 {
    margin: 0 0 0.5rem;
    color: var(--site-dark-blue);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}

.page-heading p {
    margin: 0;
    color: #506574;
    font-size: 1.1rem;
}

.content-card {
    max-width: 1000px;
    margin: 0 auto;
    padding:
        clamp(1.25rem, 2vw, 1.75rem)
        clamp(1.5rem, 4vw, 3rem);
    background: #ffffff;
    border: 2px solid rgba(36, 87, 127, 0.35);
    border-radius: var(--site-border-radius);
    box-shadow: 0 0.5rem 1.5rem rgba(20, 45, 65, 0.1);
}

.content-card h1 {
    margin: 0 0 1.5rem;
    color: var(--site-dark-blue);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}

.page-text {
    white-space: pre-line;
}

.page-image {
    display: block;
    width: 100%;
    max-height: 500px;
    margin-top: 2rem;
    border-radius: var(--site-border-radius);
    object-fit: cover;
}

/* Shared page content: tablet */

@media (max-width: 767.98px) {
    .page-content {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }
}

/* Shared page content: mobile */

@media (max-width: 575.98px) {
    .page-content {
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .content-card {
        padding: 1.25rem;
    }
}


/* =========================================================
   HOME PAGE
   ========================================================= */

.home-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    padding:
        1rem
        clamp(1.5rem, 4vw, 3rem);
}

.home-heading h1 {
    margin: 0 0 0.25rem;
    color: var(--site-dark-blue);
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.15;
}

.home-heading p {
    margin: 0;
    color: #506574;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.home-heading-image {
    flex: 0 0 auto;
    width: 135px;
    height: 135px;
    border: 1px solid rgba(36, 87, 127, 0.15);
    border-radius: 50%;
    background: var(--site-light-blue);
    object-fit: cover;
}

.home-introduction {
    max-width: 1000px;
    margin: 0 auto;
    padding:
        clamp(1.25rem, 2vw, 1.75rem)
        clamp(1.5rem, 4vw, 2.5rem);
    background: #ffffff;
    border: 1px solid rgba(24, 59, 91, 0.15);
    border-radius: var(--site-border-radius);
    box-shadow: 0 0.5rem 1.5rem rgba(20, 45, 65, 0.08);
}

.home-introduction h2 {
    margin: 0 0 1rem;
    color: var(--site-dark-blue);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1.25;
}

.home-introduction p {
    margin: 0 0 1rem;
    color: #334652;
    line-height: 1.65;
}

.home-introduction p:last-child {
    margin-bottom: 0;
}

.business-more-information {
    margin: 0.9rem 0 0;
    text-align: right;
}

.business-more-information a {
    color: #607480;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2rem;
}

.business-more-information a:hover,
.business-more-information a:focus-visible {
    color: var(--site-dark-blue);
    text-decoration-thickness: 2px;
}

/* Home page: tablet */

@media (max-width: 767.98px) {
    .home-heading-image {
        width: 110px;
        height: 110px;
    }
}

/* Home page: mobile */

@media (max-width: 575.98px) {
    .home-heading {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.25rem;
        padding: 1rem 1.25rem;
    }

    .home-heading h1 {
        font-size: 1.65rem;
    }

    .home-heading p {
        font-size: 0.95rem;
    }

    .home-heading-image {
        width: 85px;
        height: 85px;
    }

    .home-introduction {
        padding: 1.25rem;
    }
}


/* =========================================================
   SERVICES PAGE
   ========================================================= */

.business-box {
    height: 100%;
    padding:
        clamp(1.25rem, 2vw, 1.75rem)
        clamp(1.5rem, 4vw, 2.5rem);
    background: #ffffff;
    border: 1px solid rgba(24, 59, 91, 0.15);
    border-radius: var(--site-border-radius);
    box-shadow: 0 0.5rem 1.5rem rgba(20, 45, 65, 0.1);
}

.business-box h2 {
    margin: 0 0 0.25rem;
    color: var(--site-dark-blue);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
}

.business-status {
    margin: 0 0 1.25rem;
    color: #506574;
    font-weight: 700;
}

.business-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.business-box li {
    margin-bottom: 0.65rem;
}

.business-box li:last-child {
    margin-bottom: 0;
}

.business-box-featured {
    border-width: 2px;
    border-color: rgba(36, 87, 127, 0.35);
}

.business-box-introduction {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.business-services-list {
    margin: 0 0 2rem;
    padding-left: 1.75rem;
    font-size: clamp(1.15rem, 2vw, 1.3rem);
    font-weight: 600;
    line-height: 1.6;
}

.business-services-list li {
    margin-bottom: 1rem;
    padding-left: 0.35rem;
}

.business-services-list li:last-child {
    margin-bottom: 0;
}

.business-link-label {
    margin: 1rem 0 0;
}

.business-link-label a {
    display: block;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(36, 87, 127, 0.25);
    border-radius: 0.6rem;
    background: var(--site-light-blue);
    color: var(--site-dark-blue);
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
}

.business-link-label a:hover,
.business-link-label a:focus-visible {
    border-color: var(--site-blue);
    background: #ffffff;
    text-decoration: underline;
}

/* Services page: mobile */

@media (max-width: 575.98px) {
    .business-box {
        padding: 1.25rem;
    }
}


/* =========================================================
   TESTIMONIALS PAGE
   ========================================================= */

.testimonial-card {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: var(--site-border-radius);
    background: linear-gradient(
        135deg,
        var(--site-dark-blue),
        #293f73
    );
    color: #ffffff;
    box-shadow: 0 0.5rem 1.5rem rgba(20, 45, 65, 0.18);
}

.testimonial-card .card-body {
    padding: 2rem;
}

.testimonial-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 0.75rem;
}

.testimonial-person {
    min-width: 0;
    padding-top: 1rem;
}

.testimonial-image {
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
    margin-top: -1rem;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    margin: 0 0 0.35rem;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
}

.testimonial-description {
    margin: 0 0 0.25rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.05rem;
    line-height: 1.7;
}

.testimonial-text p {
    margin-bottom: 1.25rem;
}

.testimonial-text p:last-child {
    margin-bottom: 0;
}

/* Testimonials page: mobile */

@media (max-width: 575.98px) {
    .testimonial-card .card-body {
        padding: 1.25rem;
    }

    .testimonial-header {
        gap: 1rem;
        margin-bottom: 0.5rem;
    }

    .testimonial-image {
        width: 80px;
        height: 80px;
    }

    .testimonial-name {
        font-size: 1.35rem;
    }

    .testimonial-description {
        font-size: 1rem;
    }
}


/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-main,
.contact-details {
    background: #ffffff;
    border: 1px solid rgba(36, 87, 127, 0.22);
    border-radius: var(--site-border-radius);
    box-shadow: 0 0.5rem 1.5rem rgba(20, 45, 65, 0.08);
}

.contact-main {
    padding: 2rem;
}

.contact-main h2 {
    margin: 0 0 1rem;
    color: var(--site-dark-blue);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.contact-main > p {
    max-width: 680px;
    margin: 0 0 1rem;
    color: #334652;
    line-height: 1.65;
}

.contact-note {
    margin-top: 1.75rem;
    padding: 1.25rem;
    border-left: 4px solid var(--site-blue);
    border-radius: 0.5rem;
    background: var(--site-light-blue);
}

.contact-note h3 {
    margin: 0 0 0.5rem;
    color: var(--site-dark-blue);
    font-size: 1.15rem;
}

.contact-note p {
    margin: 0;
    color: #334652;
    line-height: 1.55;
}

.contact-details {
    overflow: hidden;
}

.contact-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(36, 87, 127, 0.14);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-label {
    display: block;
    margin-bottom: 0.25rem;
    color: #506574;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.contact-item a {
    color: var(--site-dark-blue);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2rem;
}

.contact-item a:hover,
.contact-item a:focus-visible {
    color: var(--site-blue);
    text-decoration-thickness: 2px;
}

.contact-item address {
    margin: 0;
    color: #334652;
    font-style: normal;
    line-height: 1.55;
}

/* Contact page: tablet/mobile */

@media (max-width: 767.98px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-main {
        padding: 1.5rem;
    }
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 1.5rem 0;
    background: var(--site-dark-blue);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.footer-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.footer-business-name {
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
}

.footer-info-link {
    display: inline-block;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    transition:
        background-color 150ms ease,
        color 150ms ease,
        border-color 150ms ease;
}

.footer-info-link:hover,
.footer-info-link:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--site-dark-blue);
}

.footer-copyright {
    margin: 0.4rem 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-regulatory-information {
    max-width: 850px;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-regulatory-information p {
    margin: 0.35rem 0;
}

.footer-regulatory-information a {
    color: #ffffff;
    font-weight: 700;
    text-underline-offset: 0.2rem;
}

.footer-regulatory-information a:hover,
.footer-regulatory-information a:focus-visible {
    text-decoration-thickness: 2px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}