html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    min-width: initial;
}

body {
    overflow-x: hidden;
}

.page-wrapper {
    width: 100%;
    overflow: hidden;
}

h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 3rem;
    color: #3d3d3d;
}

.main-row {
    display: flex;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    background-color: #ffffff;
    margin-top: 0;
    justify-content: center;
    align-items: center;
}

.centered-content {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.centered-content h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 4rem;
    font-weight: 500;
    margin: 0;
    color: #333;
    word-wrap: break-word;
}

.centered-content p {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 1.5rem;
    line-height: 1.8;
    margin-top: 1.5rem;
    color: #333;
    word-wrap: break-word;
}

@media (min-width: 1750px) {
    .centered-content {
        position: absolute;
        top: calc(50% + 25px);
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        padding: 2rem;
        max-width: 70%;
        width: 1100px;
        z-index: 10;
    }
}

@media (max-width: 1230px) {
    body {
        padding-top: 50px;
    }
    
    .site-header {
        padding: 0.7rem 0;
    }
    
    .main-row {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 0;
        height: auto;
        margin: 0;
        padding: 0;
        position: relative;
    }

    .form-row {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }
    
    .centered-content h1 {
        font-size: 2.5rem;
    }
    
    .centered-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 1230px) and (min-width: 651px) {
    .main-row {
        min-height: 400px;
        padding: 0 1rem;
    }
    
    .centered-content {
        padding: 3rem 1.5rem;
        max-width: 90%;
    }
    
    .centered-content h1 {
        font-size: 3rem;
    }
    
    .centered-content p {
        font-size: 1.3rem;
    }
}

@media (max-width: 650px) {
    .main-row {
        min-height: 300px;
        padding: 0 0.5rem;
    }
    
    .centered-content {
        padding: 2rem 1rem;
        max-width: 95%;
    }
    
    .centered-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        color: #333;
    }
    
    .centered-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-top: 0.8rem;
        color: #333;
    }
    
    .services-grid {
        padding: 0;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .service-item {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 1.5rem;
        padding: 0.8rem;
        box-sizing: border-box;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .services-section h2 {
        font-size: 1.8rem;
    }
    
    .services-section p {
        font-size: 0.9rem;
    }
    
    .service-item h3 {
        font-size: 1.2rem !important;
    }
    
    .service-item ul li {
        font-size: 0.8rem !important;
    }
}

.site-header {
    width: 100%;
    background: #000;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

body {
    padding-top: 50px;
}

.header-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav li {
    margin: 0 1.5rem;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
}

.services-section {
    background-color: #D2D2D2;
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    color: #333;
}

.services-section p {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-item {
    flex: 1 1 0;
    min-width: 200px;
    max-width: 24%;
    text-align: center;
    padding: 1rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 5px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

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

.service-item h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.7rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
    margin: 0 auto;
    max-width: 90%;
    font-size: 0.9rem;
    flex-grow: 1;
}

.service-item ul li {
    font-family: 'Merriweather Sans', sans-serif;
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.service-item ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
}

.service-image a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.service-image a:hover {
    opacity: 0.9;
}

@media (max-width: 1050px) {
    .services-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .service-item {
        width: 100%;
        max-width: 400px;
        margin-bottom: 1.5rem;
    }
    
    .service-image {
        width: 180px;
        height: 180px;
        margin: 0 auto 1.5rem;
    }
    
    .service-item h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        height: auto;
        min-height: 3rem;
    }
    
    .service-item ul {
        font-size: 1rem;
        max-width: 85%;
    }
    
    .service-item ul li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
    }
}

.contact-section {
    background-color: #ffffff;
    padding: 4rem 0;
}

.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 0 0 40%;
    background-color: #302828;
    color: white;
    padding: 2rem;
    box-sizing: border-box;
}

.contact-info h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-family: 'Merriweather Sans', sans-serif;
    margin-bottom: 0.7rem;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.contact-form {
    flex: 0 0 60%;
    padding: 2rem;
    box-sizing: border-box;
}

.contact-form h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
}

.form-row.single-field {
    margin-bottom: 1rem;
}

.form-row.single-field .form-group {
    flex: 1 1 100%;
    max-width: 100%;
}

.form-row .form-group {
    flex: 1 1 50%;
    max-width: 50%;
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.contact-form > form > .form-group {
    margin-top: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #302828;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #454040;
}

@media (max-width: 1050px) {
    .contact-section {
        padding: 0;
    }
    
    .contact-container {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-info,
    .contact-form {
        flex: 1 1 auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-info {
        padding: 4rem 2rem 2rem 2rem;
    }
    
    .contact-form {
        padding: 2rem;
        background-color: #ffffff;
    }
    
    .contact-form form {
        max-width: 94%;
        margin: 0;
        padding: 0;
    }
    
    .form-row {
        flex-direction: row;
        gap: 2rem;
    }
    
}

.site-footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-family: 'Merriweather Sans', sans-serif;
}