/* Global default settings */

body {
    margin: 0;
    font-family: var(--textfont);
    color: var(--text-dark);
    font-weight: 400;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1;
    overflow-x: hidden;
}

.container {
    max-width: 1380px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: auto;
    text-align: center;
}

.container h1 {
    font-family: var(--caps-heading);
    font-size: 54px;
    line-height: 1.2;
}

.container h2 {
    font-family: var(--heading);
    font-size: 30px;
    text-align: center;
    line-height: 1.3;
}

.container h3 {
    font-family: var(--heading);
    font-size: 24px;
    text-align: center;
    line-height: 1.4;
}

.container p {
    line-height: 1.5;
    font-size: 18px;
}

/* Default Button */

.btn {
    background: white;
    color: var(--text-dark);
    font-size: 1.2rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    border-width: 2px;
    border-style: solid;
    border-color: white;
    line-height: 1.2;
}

.btn span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.btn span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.btn:hover span {
    padding-right: 25px;
}

.btn:hover span:after {
    opacity: 1;
    right: 0;
}

/* Call to Action */

.calltoaction {
    background-color: var(--accentcolor1);
}

.calltoaction h1 {
    color: white;
    margin-bottom: 60px;
}

/* Mobile Optimization */

@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .container h1 {
        font-size: 32px;
    }

    .container h2 {
        font-size: 24px;
    }

    .container h3 {
        font-size: 20px;
    }

    .container p {
        font-size: 16px;
    }

    .btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    h1 {
        text-align: center !important;
        line-height: 1.5;
    }

    p {
        text-align: justify !important;
        line-height: 1.5;
    }
}

/* Shared Grid Layout for Image-Text Sections */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-grid .image-column {
    display: flex;
    justify-content: center;
}

.content-grid .content-image {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.content-grid .text-column h1,
.content-grid .text-column h2 {
    font-family: var(--heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.content-grid .text-column p {
    line-height: 1.7;
    color: var(--text-light);
    text-align: justify;
}

/* Mobile adjustments for content-grid */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-grid .content-image {
        max-width: 100%;
    }

    .content-grid .text-column h1,
    .content-grid .text-column h2 {
        font-size: 1.5rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-grid {
        gap: 2rem;
    }

    .content-grid .content-image {
        max-width: 350px;
    }
}
