/* ================================
   FONT CLASSES
================================ */

.delius-regular {
    font-family: "Delius", cursive;
    font-weight: 400;
    font-style: normal;
}

.roboto-slab-headings {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

/* ================================
   COLOURS
================================ */

.oaky-background {
    background-color: #A66A4C;
}

.border-color-dark {
    border-color: #233D34;
}

.green-outline {
    border-color: #233D34;
    border-width: 2px;
}


/* ================================
   GLOBAL STYLES
================================ */

body {
    background-color: #F8F8F6;
    /* soft light grey */
    font-family: 'Open Sans', sans-serif;
    color: #444;
    /* neutral dark grey */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Roboto Slab', serif;
    color: #233D34;
    /* dark green-grey */
    margin-bottom: 0.5rem;
}

/* ================================
   HEADER STYLES
================================ */

.banner-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* tablets and smaller */
@media (max-width: 991px) {
    .banner-img {
        height: 150px;
        border-radius: 5px;
    }
}

/* phones */
@media (max-width: 575px) {
    .banner-img {
        height: 100px;
        border-radius: 3px;
    }
}

.checkatrade-h3 {
    background-color: #8B5E3C;
    /* warm brown accent */
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ================================
   SKILLS SECTION
================================ */

.skills-container {
    background-color: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 15px;
    padding: 3rem 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.skills-container h2 {
    font-family: 'Roboto Slab', serif;
    color: #233D34;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.skill-item {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #444;
    margin: 0.5rem 0;
}

.skill-item strong {
    color: #233D34;
}

/* ================================
   NAVBAR
================================ */

.custom-navbar {
    background-color: #233D34;
    border-radius: 8px;
}

.custom-navbar .navbar-nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

.custom-navbar .nav-link {
    color: #fff;
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.custom-navbar .nav-link:hover {
    color: #8B5E3C;
}

.custom-navbar .nav-link.active {
    color: #8B5E3C !important;
    font-weight: 600;
    border-bottom: 2px solid #8B5E3C;
}

/* burger icon on mobile */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* ================================
   PAGINATION STYLING
================================ */

.pagination {
    justify-content: center !important;
    margin: 0 auto;
}

.page-link {
    color: #233D34;
    /* dark green-grey text */
    border: 1px solid #8B5E3C;
    /* brown border */
}

.page-link:hover {
    background-color: #8B5E3C;
    /* brown hover */
    color: #fff;
    /* white text */
    border-color: #8B5E3C;
}

.page-item.active .page-link {
    background-color: #8B5E3C;
    /* warm brown */
    border-color: #8B5E3C;
    color: #fff;
}

.page-item.disabled .page-link {
    color: #aaa;
    border-color: #ddd;
}

/* class for cards in reviews section */

.review-card {
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.width-auto {
    display: inline-block;
    width: auto;
}

/* Styling for 'get quote' buttons */

.brown-quote {
    text-decoration: underline;
    font-family: 'Roboto Slab', serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.brown-quote:hover {
    background-color: #233D34;

    color: #8B5E3C !important;
}

.brown-quote:hover a {
    color: #8B5E3C !important;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.5rem;
    border-radius: 0.5rem;
}

@media (max-width: 576px) {
    .btn-xl {
        padding: 0.5rem 1rem;
        /* matches btn-lg padding */
        font-size: 1.25rem;
        /* matches btn-lg font size */
        border-radius: 0.3rem;
    }
}

/* ================================
   Styles for past work page
================================ */
.pw-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    background-color: var(--oaky-background, #3b3b3b);
    /* optional fallback */
    color: #ffffff;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pw-card-title {
    text-decoration: none;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* Ensure text isn’t underlined unless hovered */
a.text-decoration-none:hover .pw-card-title {
    text-decoration: underline;
}

/* remove conflicting rule */
.pw-card:hover a {
    text-decoration: none;
}

.pw-card:hover p {
    text-decoration: underline;
    color: #0d6efd;
}

.expand-toggle {
    display: none;
}

.expandable-text {
    min-width: 0;
    /* IMPORTANT in flex containers */
}

/* To add truncation to reviews on small screens */

@media (max-width: 767.98px) {
    .truncate-sm {
        display: block;
        /* more reliable than inline-block for truncation */
        width: 100%;
        /* ensures a truncation width exists */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .expand-toggle:checked~.truncate-sm {
        white-space: normal;
        overflow: visible;
    }

    .expand-label {
        display: inline-block;
        font-size: 0.875rem;
        cursor: pointer;
        margin-top: 0.25rem;
    }

    .expand-label::after {
        content: "Read more";
    }

    .expand-toggle:checked~.expand-label::after {
        content: "Read less";
    }
}

@media (min-width: 768px) {
    .expand-label {
        display: none;
    }
}