/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #152835;
    background-color: #fffdf9;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #2ec5b6;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #28b2a3;
}

.btn-secondary {
    background-color: #152835;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #0e1c28;
}

/* Header */
.header {
    background-color: #fffdf9;
    border-bottom: 1px solid #e5ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Increase vertical padding to accommodate a larger logo */
    padding: 1.5rem 0;
}

/* Logo and wordmark styling */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Icon portion of the logo */
/*
 * Increase the header logo height so the company emblem is more
 * prominent. We use a fixed height with auto width to preserve
 * aspect ratio. The icon remains responsive via max‑height on
 * smaller screens.
 */
.logo-icon {
    height: 70px;
    width: auto;
    flex-shrink: 0;
}

/* Text portion of the logo */
.logo-text {
    margin-left: 0.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #152835;
    letter-spacing: 0.5px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    font-weight: 500;
}

.nav a:hover {
    color: #2ec5b6;
}

/* Hero */
.hero {
    /* Use the same off‑white background as the rest of the site for a cohesive, minimalist look */
    background-color: #fffdf9;
    padding: 4rem 0 6rem;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #59788e;
}

.hero-text {
    max-width: 650px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: #425d72;
}

/* Hero logo styling */


.hero .btn-secondary {
    margin-top: 1rem;
}

/* Hero graphic layout */
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1 1 50%;
    max-width: 600px;
    text-align: left;
}

.hero-graphic {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic img {
    width: 100%;
    height: auto;
    /* Limit the hero illustration to a reasonable width */
    max-width: 450px;
}

@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-content,
    .hero-graphic {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .hero-content {
        margin-bottom: 2rem;
        text-align: center;
    }

}

/* About / Experience section */
.about {
    padding: 4rem 0;
    background-color: #f4faf9;
}

.about-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-content {
    flex: 1 1 50%;
    max-width: 600px;
}

.about-content p {
    font-size: 1rem;
    color: #425d72;
    margin-bottom: 1rem;
}

.about-image {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    /* Limit the experience illustration size */
    max-width: 350px;
    height: auto;
}

@media (max-width: 768px) {
    .about-inner {
        flex-direction: column;
    }
    .about-content,
    .about-image {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
    }
    .about-content {
        margin-bottom: 2rem;
    }
}

/* Hero logo styling for the front page */
.hero-logo {
    margin-bottom: 1.5rem;
    text-align: left;
}
.hero-logo img {
    width: 250px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero-logo {
        text-align: center;
    }
    .hero-logo img {
        width: 200px;
    }
}

/* Services */
.services {
    padding: 4rem 0;
    background-color: #fffdf9;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
    background-color: #f4faf9;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Flex layout to ensure all cards have equal height and centred content */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.service-card .icon-wrapper {
    font-size: 2.5rem;
    color: #2ec5b6;
    margin-bottom: 1rem;
}

/* Image within service cards */
.service-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}
.service-image img {
    /* Smaller service illustrations for better balance */
    width: 70px;
    height: auto;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    color: #425d72;
    margin-bottom: 0.75rem;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background-color: #f4faf9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #fffdf9;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    /* Ensure equal height and vertical spacing within testimonial cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #425d72;
}

.testimonial-author {
    font-weight: 600;
    color: #152835;
}

/* Contact */
.contact {
    padding: 4rem 0;
    background-color: #fffdf9;
}

.contact-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #425d72;
    font-size: 1.05rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d6e0e5;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form button {
    align-self: flex-start;
}

/* Footer */
.footer {
    background-color: #152835;
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #152835;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2000;
    max-width: 90%;
    font-size: 0.85rem;
}

.cookie-banner p {
    flex: 1;
    margin: 0;
}

.cookie-banner .link {
    color: #2ec5b6;
    text-decoration: underline;
}

.cookie-banner.hidden {
    display: none;
}

/* Privacy section (hidden and only accessible via anchor link) */
.privacy-policy {
    padding: 4rem 0;
    background-color: #f4faf9;
    color: #425d72;
}

.privacy-policy.hidden {
    display: none;
}

/* Show privacy policy when anchor is targeted */
.privacy-policy:target {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav ul {
        gap: 1rem;
        margin-top: 0.5rem;
    }
}