/* Main content styles */
.main-content {
    display: flex;
    flex-direction: column;
}

/* Hero Section */

.hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 90%;
    background-color: #ba9785;
}

.hero-image img {
    max-width: 75%;
    max-height: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.hero-text-top-right {
    padding: var(--spacing-md) clamp(1rem, 5vw, 7rem);
    line-height: var(--leading-body);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    box-sizing: border-box;
}

.hero-text-top-right .hero-name {
    font-weight: 700;
    margin: 0 0 var(--spacing-xs) 0;
}

.hero-text-top-right .hero-title {
    font-weight: 600;
    margin: 0 0 var(--spacing-sm) 0;
}

.hero-text-top-right .hero-description {
    margin-top: var(--spacing-md);
}

/* Services Section */

.services-row {
    background-color: #e5cec1;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-2xl) 0;
}

.services-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 clamp(1.5rem, 5vw, 7rem);
    margin-bottom: var(--spacing-xl);
}

.services-title h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0;
    text-align: center;
}

.services-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.service-cards-container {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 clamp(1.5rem, 5vw, 7rem);
}

.service-card {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
    background-color: #f5f0ed;
    border-radius: 8px;
    color: black;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-lg);
    flex: 0 1 auto;
    min-width: 200px;
    max-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* 
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
} */

.service-card span {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    color: #36454F;
}

.service-card img {
    width: 100%;
    max-width: 140px;
    height: 140px;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
    border-radius: 8px;
}

.link-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-2xl);
    padding: 0 clamp(1.5rem, 5vw, 7rem);
}

.button-link {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #aa9183;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(170, 145, 131, 0.3);
}

.button-link:hover {
    background-color: #8f7463;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(170, 145, 131, 0.4);
}

.button-link:active {
    transform: translateY(0);
}

@media (max-width: 768px) {

    .hero-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-image::after {
        width: 80%;
        height: 2px;
        top: auto;
        bottom: 0;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-text-top-right {
        padding: var(--spacing-md) var(--spacing-xl);
    }

    .hero-text-top-right .hero-name {
        text-align: center;
    }

    .hero-text-top-right .hero-title {
        margin: 0 0 var(--spacing-xs) 0;
        text-align: center;
    }

    .hero-text-top-right .hero-description {
        margin-top: var(--spacing-sm);
    }

    .services-row {
        padding: var(--spacing-xl) 0;
    }

    .services-title {
        margin-bottom: var(--spacing-lg);
        padding: 0 var(--spacing-md);
    }

    .service-cards-container {
        gap: clamp(1rem, 3vw, 1.5rem);
        padding: 0 var(--spacing-md);
    }

    .service-card {
        padding: var(--spacing-md);
    }

    .link-wrapper {
        margin-top: var(--spacing-xl);
        padding: 0 var(--spacing-md);
    }

}

/* Tablet breakpoint for better medium screen experience */
@media (min-width: 769px) and (max-width: 1024px) {

    .hero-text-top-right {
        padding: var(--spacing-md) clamp(1rem, 4vw, 5rem);
    }

    .services-row {
        padding: calc(var(--spacing-2xl) * 0.75) 0;
    }

    .services-title {
        margin-bottom: calc(var(--spacing-xl) * 0.85);
    }

    .service-cards-container {
        gap: clamp(1.25rem, 2.5vw, 2rem);
        margin: 0 clamp(1rem, 4vw, 5rem);
    }

    .link-wrapper {
        margin-top: calc(var(--spacing-2xl) * 0.85);
    }

}