/* ========================================
   BUSINESS HEADER
======================================== */

.business-header {
    width: 100%;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E5E5;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    min-height: 65px;
    margin: 0 auto;
    padding: 10px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* Company Logo */

.business-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.business-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 55px;
    object-fit: contain;
}

/* Back to Directory */

.back-to-directory {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #222222;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.back-to-directory:hover,
.back-to-directory:focus {
    color: #2F82C4;
    text-decoration: none;
}

/* Responsive */

@media (max-width: 768px) {

    .header-inner {
        min-height: 70px;
        padding: 12px 15px;
        gap: 15px;
    }

    .business-logo img {
        max-width: 170px;
        max-height: 45px;
    }

    .back-to-directory {
        font-size: 13px;
    }
}

@media (max-width: 480px) {

    .header-inner {
        min-height: 64px;
        gap: 10px;
    }

    .business-logo img {
        max-width: 135px;
        max-height: 40px;
    }

    .back-to-directory {
        font-size: 12px;
    }
}

/* BUSINESS HERO */

.business-hero {
    min-height: 350px;
    padding: 80px 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    text-align: center;
}

.business-hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.business-hero h1 {
    margin: 0 0 18px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    color: #FFFFFF;
}

.business-hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .business-hero {
        min-height: 280px;
        padding: 60px 0;
    }

    .business-hero h1 {
        font-size: 32px;
    }

    .business-hero p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .business-hero {
        min-height: 240px;
        padding: 45px 0;
    }

    .business-hero h1 {
        font-size: 28px;
    }
}

/* ========================================
   BUSINESS ABOUT SECTION
======================================== */

.business-about {
    padding: 70px 0;
    background-color: #FFFFFF;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 40px;

    max-width: 1050px;
    margin: 0 auto;
}

/* About Content */

.about-content h2 {
    margin: 0 0 20px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    color: #111111;
}

.about-content p {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
}

/* ABOUT BUTTON */

.about-btn {
    display: inline-block;
    padding: 11px 20px;
    background-color: #469CDB;
    border: 1px solid #469CDB;
    border-radius: 4px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #FFFFFF;
    text-decoration: none;

    transition: background-color 0.2s ease,
                border-color 0.2s ease;
}

.about-btn:hover,
.about-btn:focus {
    background-color: #2F82C4;
    border-color: #2F82C4;
    color: #FFFFFF;
    text-decoration: none;
}


/* ABOUT IMAGE */

.about-image {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 6px;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}


/* TABLET AND MOBILE */

@media (max-width: 768px) {
    .about-image {
        max-width: 420px;
        margin-left: 0;
    }
}

/* TABLET */

@media (max-width: 768px) {

    .business-about {
        padding: 50px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        max-width: 420px;
        margin: 0;
    }

}

/* MOBILE */

@media (max-width: 480px) {

    .business-about {
        padding: 40px 0;
    }

    .about-grid {
        gap: 24px;
    }

}

/* ========================================
   SERVICES SECTION
======================================== */

.business-services {
    padding: 70px 0;
    background-color: #F7F9FB;
}

/* Section Heading */

.services-header {
    max-width: 760px;
    margin: 0 auto 35px;
    text-align: center;
}

.services-header h2 {
    margin: 0 0 14px;
    font-size: 34px;
    font-weight: 600;
    color: #111111;
}

.services-header p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #666666;
}

/* Horizontal Viewport */

.services-slider {
    overflow: hidden;
    width: 100%;
    padding: 10px 60px 20px;
    box-sizing: border-box;
}

/* Moving Track
   JavaScript controls the animation and distance.
*/

.services-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    width: max-content;
    will-change: transform;
    animation: none;
}

/* Individual Cards */

.service-card {
    flex: 0 0 270px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Card Image */

.service-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #EDEFF2;
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Content */

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.service-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
    color: #111111;
}

.service-content p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
}

/* Card Button */

.service-btn {
    margin-top: auto;
    display: inline-block;
    padding: 10px 16px;
    border-radius: 4px;
    background: #469CDB;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.service-btn:hover {
    background: #2F82C4;
}

/* Automatic Horizontal Movement
   JavaScript sets --scroll-distance.
*/

@keyframes services-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--scroll-distance, -50%));
    }
}

/* Pause on Hover or Keyboard Focus */

.services-slider:hover .services-track,
.services-slider:focus-within .services-track {
    animation-play-state: paused;
}

/* Tablet */

@media (max-width: 768px) {

    .business-services {
        padding: 50px 0;
    }

    .services-slider {
        padding: 10px 25px 20px;
    }

    .services-track {
        gap: 18px;
    }

    .service-card {
        flex-basis: 250px;
    }
}

/* Mobile */

@media (max-width: 480px) {

    .business-services {
        padding: 40px 0;
    }

    .services-header h2 {
        font-size: 25px;
    }

    .services-slider {
        padding: 10px 15px 20px;
    }

    .service-card {
        flex-basis: 235px;
    }
}

/* Respect Reduced-Motion Preferences */

@media (prefers-reduced-motion: reduce) {

    .services-track {
        animation: none !important;
        will-change: auto;
    }

    .services-slider {
        overflow-x: auto;
    }
}



/* ========================================
   BUSINESS CONTACT SECTION
======================================== */

.business-contact {
    padding: 70px 0;
    background-color: #FFFFFF;
}

/* Container: Consistent Left & Right Spacing */

.business-contact > .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Section Heading */

.contact-header {
    margin-bottom: 35px;
    text-align: center;
}

.contact-header h2 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    color: #111111;
}

.contact-header p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
    color: #666666;
}

/* Three-Column Layout: Desktop */

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Contact Card */

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    padding: 26px 22px;
    box-sizing: border-box;

    background-color: #F7F9FC;
    border: 1px solid #E5EAF0;
    border-radius: 8px;

    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.contact-item:hover {
    border-color: #C9E2F5;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
}

/* Icon */

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;

    color: #469CDB;
    background-color: #EDF6FC;
    border-radius: 8px;
}

.contact-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

/* Contact Text */

.contact-info {
    min-width: 0;
}

.contact-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #111111;
}

.contact-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    overflow-wrap: anywhere;
}

/* Contact Links */

.contact-info a {
    color: #2F82C4;
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-info a:hover,
.contact-info a:focus {
    color: #246BA4;
    text-decoration: underline;
}

.contact-info a:focus-visible {
    outline: 2px solid #469CDB;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Tablet */

@media (max-width: 992px) {

    .business-contact {
        padding: 55px 0;
    }

    .business-contact > .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-item {
        padding: 22px;
    }

}

/* Mobile */

@media (max-width: 480px) {

    .business-contact {
        padding: 40px 0;
    }

    .business-contact > .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .contact-header {
        margin-bottom: 25px;
    }

    .contact-header h2 {
        font-size: 25px;
    }

    .contact-header p {
        font-size: 14px;
    }

    .contact-details {
        gap: 14px;
    }

    .contact-item {
        gap: 14px;
        padding: 18px;
    }

    .contact-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

}

/* Business Footer */

.business-footer {
    padding: 22px 0;
    background-color: #172B3A;
    color: #E5EAF0;
    text-align: center;
}

.business-footer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
}

.business-footer a {
    color: #69B7F0;
    font-weight: 500;
    text-decoration: none;
}

.business-footer a:hover,
.business-footer a:focus {
    color: #FFFFFF;
    text-decoration: underline;
}

.business-footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
