/* Equisoft.ie – custom styles (no framework) */

:root {
    --color-primary: #016c6a;
    --color-primary-dark: #015552;
    --color-gold: #dda137;
    --color-gold-dark: #bc7a2f;
    --color-text: #333333;
    --color-heading: #161819;
    --color-muted: #444444;
    --color-border: #e9e9e9;
    --color-bg-light: #f9f9f9;
    --color-footer-bottom: #313131;
    --color-white: #ffffff;
    --header-height: 75px;
    --container-max: 1140px;
    --font-body: "PT Sans", Arial, sans-serif;
    --font-heading: "Open Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.3;
    margin-top: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: var(--color-primary);
    color: var(--color-white);
    z-index: 10000;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 18px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-align: center;
}

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-white:hover {
    background: var(--color-footer-bottom);
    color: var(--color-white);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-cta {
    background: rgba(218, 8, 8, 0.77);
    color: var(--color-white);
    border: 1px solid #c80d0d;
    font-weight: 500;
    padding: 12px 24px;
    text-transform: none;
    letter-spacing: 0;
}

.btn-cta:hover {
    background: rgba(218, 8, 8, 0.89);
    border-color: var(--color-gold-dark);
    color: var(--color-white);
}

.btn-sm {
    font-size: 13px;
    padding: 10px 16px;
}

/* ---------------------------------------------------------
   Website Header 
   --------------------------------------------------------- */

.header-divider {
    width: 100%;
    height: 1px;
    background: #E6E6E6;
    margin: 14px 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(1, 108, 106, 0.89);
    transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    padding-top: 5px;
    padding-bottom: 10px;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.site-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-link {
    display: block;
    padding: 0 18px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 60px;
    transition: opacity 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
    font-weight: 700;
    opacity: 1;
}

.nav-link:hover { opacity: 0.85; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    align-items: center;
    gap: 8px;
}

.menu-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--color-white);
}

.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

/* Mobile */
@media (max-width: 767px) {
    .mobile-menu-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(1, 108, 106, 0.95);
        border-top: 1px solid var(--color-primary);
    }

    .site-nav.is-open { display: block; }

    .site-nav .nav-list {
        flex-direction: column;
    }

    .nav-link {
        line-height: 1.4;
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header { position: sticky; }
}

/* ---------------------------------------------------------
   Website Footer 
   --------------------------------------------------------- */

.site-footer {
    margin-top: 0;
}

.footer-widgets {
    background: var(--color-primary);
    color: #f2f2f2;
    padding: 40px 0;
    text-align: center;
}

.footer-widgets-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h2 {
    color: var(--color-white);
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 15px;
    line-height: 20px;
    margin-bottom: 12px;
}

.footer-col a {
    color: #f2f2f2;
}

.footer-col a:hover {
    color: #969696;
}

.social-links {
    display: flex;
    justify-content: center; /* center icons within their column */
    margin: 0 auto;
    gap: 4px;
    flex-wrap: wrap;
}

img.socialbtn {
    opacity: 1;
    margin: 7px;
    transition: opacity 0.2s;
}

img.socialbtn:hover {
    opacity: 0.5;
}

.support-link {
    margin-top: 16px;
    text-align: center;
}

/* Ensure the support image is centered — images are global display:block so add auto margins */
.support-link img {
    display: block;
    margin: 0 auto;
}

.footer-bottom {
    background: var(--color-footer-bottom);
    color: #bfbfbf;
    padding: 16px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Mobile */
@media (max-width: 767px) {
    .footer-widgets-inner {
        grid-template-columns: 1fr;
    }
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 0;
    width: 48px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px 4px 0 0;
    font-size: 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 999;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* Mobile */
@media (max-width: 320px) {
    .scroll-top {
        display: none;
    }
}

/* ---------------------------------------------------------
   General Layout
   --------------------------------------------------------- */

.content-block {
    max-width: 1100px;
    margin: 0 auto;
}

.content-block p {
    margin-bottom: 1em;
}

/* Sections */
.section {
    padding: 20px 0;
}

.section-light {
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-gold {
    background: var(--color-gold);
    color: var(--color-white);
    text-align: center;
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-text);
    margin-bottom: 8px;
}

.section-divider {
    width: 10%;
    height: 4px;
    background: var(--color-border);
    margin: 0 auto 24px;
}

.section-divider-left {
    margin-left: 0;
    margin-right: auto;
}

/* Mobile */
@media (max-width: 767px) {
    .section-divider {
        width: 60px; /* fixed visible width on narrow screens */
        height: 4px;
        background: var(--color-primary); /* stronger contrast */
        margin: 0 auto 16px;
    }
}

/* Two column layout */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin: 40px 0;
}

@media (max-width: 767px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Two column lists (product detail) */
.two-col-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 24px 0;
}

.two-col-lists ul {
    margin: 0;
    padding-left: 20px;
}

.two-col-lists h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .two-col-lists {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   Content Page Header
   --------------------------------------------------------- */

.page-header {
    height: 60px;
    padding: 20px 0 0 0;
    text-align: left;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .page-header h1 {
        font-size: 24px;
        font-weight: 400;
        margin-bottom: 4px;
    }
}

/* ---------------------------------------------------------
   Home Page
   --------------------------------------------------------- */

/* Home Page - Banner */
.banner {
    background: url("/images/main-scaled.jpg") center center / cover no-repeat;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 100px 0;
    text-align: center;
    color: var(--color-white);
}

.banner-inner {
    display: block;
    max-width: 860px;
    margin: 0 auto;
    padding: 30px;
    text-align: center;
}

.banner-tagline {
    font-size: 21px;
    line-height: 1.5;
    max-width: 860px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
}

.banner h1 {
    color: var(--color-white);
    font-size: 42px;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
}

/* Mobile */
@media (max-width: 767px) {
    .banner {
        min-height: 200px;
        max-height: 500px;
        padding: 60px 0 30px;
    }

    .banner-inner {
        max-width: 100%;
    }
    .banner h1 {
        font-size: 22px;
    }
    .banner-tagline {
        font-size: 16px;
    }
}

/* Home Page - logos carousel */
.logo-carousel-section {
    padding: 10px 0;
    overflow: hidden;
    background: var(--color-white);
}

.logo-carousel {
    width: 100%;
    overflow: hidden;
}

.logo-carousel-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: logo-scroll 80s linear infinite;
}

.logo-carousel:hover .logo-carousel-track {
    animation-play-state: paused;
}

.logo-carousel-item {
    flex: 0 0 200px;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-carousel-item img {
    display: block;
    width: 200px;
    height: 100px;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 767px) {

    .logo-carousel-section {
        padding: 8px 0;
    }

    .logo-carousel-track {
        gap: 10px;
    }

    .logo-carousel-item {
        flex-basis: 160px;
        width: 160px;
        height: 80px;
    }

    .logo-carousel-item img {
        width: 160px;
        height: 80px;
    }
}

@keyframes logo-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Home Page - Who We Are */
.home-about-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: 35px auto 0;
}

.home-about-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
}

.home-about-image img {
    display: block;
    width: 190px;
    height: 190px;
    max-width: 100%;
    object-fit: contain;
}

.home-about-content {
    max-width: none;
    margin: 0;
    text-align: left;
}

.home-about-content p {
    margin-left: 0;
    margin-right: 0;
    font-size: 17px;
}

/* Mobile */
@media (max-width: 767px) {

    .home-about-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 25px;
    }

    .home-about-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .home-about-image img {
        width: 80% !important;
        max-width: 200px;
        height: auto !important;
        margin: 0 auto;
        display: block;
    }

    .home-about-content {
        width: 100%;
        text-align: center;
    }

    .home-about-content p {
        margin-left: auto;
        margin-right: auto;
        font-size: 15px;
    }
}

/* Home Page - Trial CTA */
.home-eql-trial .home-cta-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.home-eql-trial h2 {
    margin-left: auto;
    margin-right: auto;
    color: var(--color-white);
    font-size: 28px;
}

.home-eql-trial p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-white);
    font-size: 17px;
    line-height: 23px;
}

/* Mobile */
@media (max-width: 767px) {
    .home-eql-trial h2 {
        font-size: 24px;
    }

    .home-eql-trial p {
        font-size: 15px;
        line-height: 21px;
    }
}

/* Home Page - Overview */
.home-eql-overview-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin: 40px 0;
}

.home-eql-overview h2 {
    font-size: 28px;
}

.home-eql-overview p {
    font-size: 17px;
    line-height: 23px;
}

.home-eql-overview .home-eql-overview-col {
    align-items: center;
}

.home-eql-overview .home-eql-overview-media,
.home-eql-overview .home-eql-overview-content {
    min-width: 0;
}

.home-eql-overview .home-eql-overview-content {
    padding-left: 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile */
@media (max-width: 767px) {
    .home-eql-overview-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-eql-overview h2 {
        font-size: 24px;
    }

    .home-eql-overview p {
        font-size: 15px;
        line-height: 21px;
    }
}

/* 
    Home Page - Testimonials
    See setup under Clients Page section below
*/


/* Mobile */
@media (max-width: 767px) {

    .testimonial-slider {
        padding: 0 45px;
    }
}

/* Pagination controls for testimonial grid on Clients page */
.testimonial-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.testimonial-page-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
}
.testimonial-page-btn:hover,
.testimonial-page-btn:focus {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.testimonial-page-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Home page nav */
.testimonial-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.testimonial-nav:hover,
.testimonial-nav:focus-visible {
    color: #fff;
    background: var(--color-primary-dark);
}

.testimonial-prev {
    left: 10px;
}

.testimonial-next {
    right: 10px;
}

.home-testimonials {
    background: #f7f7f7;
}

/* Mobile */
@media (max-width: 767px) {

    .home-eql-overview .home-eql-overview-content {
        padding-left: 0;
        margin-top: 30px;
    }

    .testimonial-quote {
        font-size: 15px;
    }

    .testimonial-nav {
        width: 36px;
        height: 36px;
        font-size: 27px;
    }

    .testimonial-prev {
        left: 0;
    }

    .testimonial-next {
        right: 0;
    }
}

/* ---------------------------------------------------------
   Products Pages
   --------------------------------------------------------- */

/* Product cards */
.product-grid {
    display: grid;
    /* Use a fixed 3-column layout on wide screens so additional items
       flow to the left (4th item will appear under the first column).
       On narrower viewports we switch to an auto-fit layout below. */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 20px 0 50px;
    justify-content: center; /* center the grid tracks inside the container */
    justify-items: center; /* center content inside each grid cell */
    grid-auto-rows: 1fr; /* make rows equal height when using height:100% on cards */
}

.product-card {
    text-align: center;
    border: 1px solid var(--color-border);
    padding: 10px;
    max-width: 360px;
    margin: 0 auto;
    width: 100%; /* ensure the card fills the grid cell width */
    display: flex;
    flex-direction: column;
    min-height: 100%; /* allow the card to stretch to match row height */
    align-self: stretch; /* ensure the card stretches to the full grid row height */
}

.product-card-hidden {
    border: 1px solid var(--color-white);
}

.product-card p {
    font-size: 16px;
    line-height: 20px;
}

.product-card img {
    margin: 0 auto 16px;
    border-radius: 4px;
}

/* Push the discover button to the bottom of the card so buttons align */
.product-card .btn-discover {
    margin-top: auto;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.product-card h3 .brand-primary { color: var(--color-primary); }
.product-card h3 .brand-live { color: var(--color-gold); }
.product-card h3 .brand-enterprise { color: var(--color-gold); }

.product-card p { margin-bottom: 16px; }

@media (max-width: 900px) {
    .product-grid { 
        grid-template-columns: 1fr; 
        max-width: 400px; 
        margin-left: auto; 
        margin-right: auto; 
    }

    .product-card-hidden {
        display: none;
    }
}

.product-details-image {
    text-align: center;
    font-size: 14px;
    margin: 0 auto;
}

/* At medium widths allow columns to wrap responsively and center lone items */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    }

    .product-card-hidden {
        display: none;
    }
}

/* Discover More button style for products page */
.btn-discover {
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}
.btn-discover:hover,
.btn-discover:focus {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ---------------------------------------------------------
   About Page 
   --------------------------------------------------------- */

/* Icon row (About page) */
.icon-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
    text-align: center;
}

.icon-base {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.icon-enterprise {
    color: #E97272;
}

.icon-desktop {
    color: #655FC8;
}

.icon-web {
    color: #147CDD;
}

.icon-mobile {
    color: #EDB600;
}

.icon-row h3 {
    font-size: 18px;
    margin: 0;
}

.team-image img{
    display: block;
    margin: 5px auto;
    width: 95%;
    max-width: 768px;
}

@media (max-width: 767px) {
    .icon-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------
   Clients Page and Homne Page Testimonials
   --------------------------------------------------------- */

/* Client list */
.client-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 40px;
    margin: 30px 0;
}

.client-list-grid ul {
    margin: 0;
    padding-left: 20px;
}

.client-list-grid li { margin-bottom: 6px; }

/* Client testimonials grid */
.testimonial-grid {
    display: grid;
    /* Use a fixed 3-column layout on wide screens so additional items
       flow to the left (4th item will appear under the first column).
       On narrower viewports we switch to an auto-fit layout below. */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 20px 0 50px;
    justify-content: center; /* center the grid tracks inside the container */
    justify-items: center; /* center content inside each grid cell */
    grid-auto-rows: 1fr; /* make rows equal height when using height:100% on cards */
}

.testimonial-inner {
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 10px;
    max-width: 360px;
    margin: 0 auto;
    width: 100%; /* ensure the card fills the grid cell width */
    display: flex;
    flex-direction: column;
    min-height: 100%; /* allow the card to stretch to match row height */
    align-self: stretch; /* ensure the card stretches to the full grid row height */
    background: #f7f7f7;
}

.testimonial-inner p {
    font-size: 16px;
    line-height: 20px;
}

.testimonial-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin-bottom: 15px;
}

.testimonial-image img {
    width: auto;
    max-width: 300px;
    max-height: 150px;
    margin: 0 auto;
}

.testimonial-quote {
    max-width: 720px;
    margin: 0 auto 25px;
    font-size: 16px;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-name {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
}

.testimonial-company {
    margin-top: 4px;
    color: #777;
    font-size: 14px;
}

/* Home page specific */
.testimonial-slider {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 70px;
}

.testimonial-slide {
    display: none;
    text-align: center;
    width: 100%;
}

.testimonial-slides {
    position: relative;
    width: 100%;
}

.testimonial-slide.is-active {
    display: block;
}

.testimonial-inner-home {
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 30px 24px;
    margin: 0 auto;
    width: 100%;
    max-width: 1020px;
    min-height: 100%;
    align-self: stretch;
    background: #f7f7f7;
    display: grid;
    grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
    gap: 30px;
}

.testimonial-image-home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin-bottom: 15px;
    width: 100%;
}

.testimonial-image-home img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 150px;
}

.testimonial-content-home {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: center;
    width: 100%;
}

.testimonial-quote-home {
    margin: 0 0 25px;
    font-size: 16px;
    font-style: italic;
    line-height: 1.8;
    width: 100%;
}

/* At medium widths allow columns to wrap responsively and center lone items */
@media (max-width: 1200px) {
    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    }
}

/* Mobile */
@media (max-width: 767px) {
    .client-list-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-inner {
        padding: 10px;
    }

    .testimonial-inner-home {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 10px;
    }

    .testimonial-quote-home {
        margin: 0 auto 25px;
        font-size: 14px;
        font-style: italic;
        line-height: 1.4;
    }

    .testimonial-image-home {
        min-height: 100px;
        margin-bottom: 5px;
    }
}

/* ---------------------------------------------------------
   Contact Page 
   --------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
}

.contact-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-form .required { color: #c00; }

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 15px;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.contact-info-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.contact-info-list .icon {
    color: var(--color-primary);
    font-size: 18px;
    min-width: 24px;
}

.contact-info-list .label {
    font-weight: 700;
    display: block;
}

.map-wrapper {
    position: relative;
    padding-bottom: 40%;
    height: 0;
    overflow: hidden;
    margin-top: 30px;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile */
@media (max-width: 767px) {
    .contact-grid { grid-template-columns: 1fr; }
    .map-wrapper { padding-bottom: 60%; }
}