* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #ffffff;
    color: #111111;
}

h1,
h2,
h3 {
    line-height: 1.1;
    letter-spacing: -0.03em;
}

header {
    padding: 1.5rem 5%;
    background-color: #ffffff;
}

header nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

header nav a:first-of-type {
    margin-right: auto;
}

header img {
    width: 95px;
    height: auto;
    display: block;
}

header nav a {
    color: #111111;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

header nav a:hover {
    opacity: 0.5;
}

header nav a:focus {
    outline: 2px solid #111111;
    outline-offset: 5px;
}

.contact-intro {
    padding: 9rem 5% 7rem;
    background-color: #ffffff;
}

.contact-intro h1 {
    max-width: 1000px;
    margin-bottom: 2rem;
    font-size: clamp(4rem, 9vw, 9rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.contact-intro p {
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.8;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    padding: 9rem 10%;
    background-color: #111111;
    color: #ffffff;
}

.contact-heading {
    align-self: start;
}

.contact-heading .section-label {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact-heading h2 {
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    padding: 1.8rem 0;
    border-top: 1px solid #444444;
}

.contact-item:last-child {
    border-bottom: 1px solid #444444;
}

.contact-item span {
    display: block;
    margin-bottom: 0.6rem;
    color: #888888;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.contact-item p {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}

.location {
    padding: 9rem 5%;
    background-color: #f2f2f2;
}

.location h2 {
    margin-bottom: 1rem;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.location > p {
    margin-bottom: 3rem;
    font-size: 1rem;
    line-height: 1.7;
}

.location iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
}

footer {
    padding: 5rem 5% 2rem;
    background-color: #111111;
    color: #ffffff;
}

footer nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 5rem;
}

footer nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

footer nav a:hover {
    opacity: 0.5;
}

footer nav a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 5px;
}

.copyright {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #777777;
}

.contact-form-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 8rem;
    padding: 9rem 10%;
    background-color: #111111;
    color: #ffffff;
}

.contact-form-heading {
    align-self: start;
}

.contact-form-heading .section-label {
    margin-bottom: 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact-form-heading h2 {
    margin-bottom: 2rem;
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.contact-form-heading > p:last-child {
    max-width: 400px;
    color: #aaaaaa;
    font-size: 0.9rem;
    line-height: 1.8;
}

#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form label {
    margin-bottom: 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    margin-bottom: 1.8rem;
    padding: 1.2rem 0;
    border: 0;
    border-bottom: 1px solid #555555;
    border-radius: 0;
    background-color: transparent;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#contact-form select option {
    background-color: #111111;
    color: #ffffff;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-bottom-color: #ffffff;
}

#contact-form textarea {
    min-height: 160ox;
    resize: vertical;
}

#contact-form button[type="submit"] {
    align-self: start;
    margin-top: 0.5rem;
    padding: 1.2rem 3rem;
    border: 2px solid #ffffff;
    background-color: #ffffff;
    color: #111111;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

#contact-form button[type="submit"]:hover {
    background-color: #111111;
    color: #ffffff;
    transform: translateY(-3px);
}

#contact-form button[type="submit"]:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 5px;
}

#contact-feedback {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    line-height: 1.7;
}

#contact-feedback:empty {
    display:none;
}

.field-feedback {
    margin-top: -1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
}

.field-feedback:empty {
    display: none;
}

#email-feedback[aria-live] {
    color: #aaaaaa;
}

#contact-email[aria-invalid="true"] {
    border-bottom-color: #ff6b6b;
}

#contact-email[aria-invalid="false"] {
    border-bottom-color: #8fd19e;
}

/*Tablet settings for contact form*/
@media (max-width: 900px) {
    .contact-form-section {
        gap: 3rem;
        padding: 7rem 7%;
    }

    .contact-form-heading h2 {
        font-size: clamp(3rem, 6vw, 5rem);
    }

    #contact-form input,
    #contact-form select,
    #contact-form textarea {
        font-size: 0.85rem;
    }
}

/* Mobile settings for contact form */
@media (max-width: 600px) {
    .contact-form-section {
        display: block;
        padding: 5rem 5%;
    }

    .contact-form-heading {
        margin-bottom: 3rem;
    }

    .contact-form-heading .section-label {
        margin-bottom: 1rem;
        font-size: 0.6rem;
    }

    .contact-form-heading h2 {
        font-size: clamp(2.8rem, 12vw, 4.2rem);
    }

    .contact-form-heading > p:last-child {
        font-size: 0.85rem;
    }

    #contact-form label {
        margin-bottom: 0.6rem;
        font-size: 0.6rem;
    }

    #contact-form input,
    #contact-form select,
    #contact-form textarea {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
        font-size: 0.8rem;
    }

    #contact-form textarea {
        min-height: 140px;
    }

    #contact-form button[type="submit"] {
        padding: 1rem 2rem;
        font-size: 0.65rem;
    }

    #contact-feedback {
        font-size: 0.75rem;
    }
}

/* Responsive design for tablet widths */

@media (max-width: 900px) {

    header {
        padding: 1.5rem 4%;
    }

    header nav {
        gap: 1.5rem;
    }

    header img {
        width: 85px;
    }

    header nav a {
        font-size: 0.7rem;
    }

    .contact-intro {
        padding: 7rem 5% 5rem;
    }

    .contact-intro h1 {
        font-size: clamp(4rem, 10vw, 7rem);
    }

    .contact-details {
        gap: 3rem;
        padding: 7rem 7%;
    }

    .contact-heading h2 {
        font-size: clamp(3rem, 6vw, 5rem);
    }

    .contact-item {
        padding: 1.5rem 0;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .location {
        padding: 7rem 5%;
    }

    .location h2 {
        font-size: clamp(3rem, 6vw, 5rem);
    }

    .location iframe {
        height: 400px;
    }

    footer {
        padding: 5rem 5% 2rem;
    }

    footer nav {
        gap: 2rem;
    }

}


/* Responsive design for mobile widths */

@media (max-width: 600px) {

    header {
        padding: 1.25rem 5%;
    }

    header nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-content: stretch;
        align-items: center;
        gap: 0.75rem;
    }

    header nav a:first-of-type {
        grid-column: 1 / 5;
        justify-self: start;
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    header img {
        width: 80px;
    }

    header nav a {
        font-size: 0.6rem;
        letter-spacing: 0.07em;
    }

    .contact-intro {
        padding: 5rem 5% 4rem;
    }

    .contact-intro h1 {
        margin-bottom: 1.5rem;
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .contact-intro p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .contact-details {
        display: block;
        padding: 5rem 5%;
    }

    .contact-heading {
        margin-bottom: 4rem;
    }

    .contact-heading .section-label {
        margin-bottom: 1rem;
        font-size: 0.6rem;
    }

    .contact-heading h2 {
        font-size: clamp(2.8rem, 12vw, 4.2rem);
    }

    .contact-item {
        padding: 1.5rem 0;
    }

    .contact-item span {
        font-size: 0.6rem;
    }

    .contact-item p {
        font-size: 0.85rem;
        overflow-wrap: break-word;
    }

    .location {
        padding: 5rem 5%;
    }

    .location h2 {
        font-size: clamp(2.8rem, 12vw, 4.2rem);
    }

    .location > p {
        margin-bottom: 2rem;
        font-size: 0.85rem;
    }

    .location iframe {
        width: 100%;
        height: 350px;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .contact-intro,
    .contact-details,
    .location,
    footer {
        width: 100%;
        max-width: 100%;
    }

    .contact-intro h1,
    .contact-intro p,
    .contact-heading h2,
    .location h2 {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .location iframe {
        max-width: 100%;
    }

    footer {
        padding: 4rem 5% 2rem;
    }

    footer nav {
        gap: 1.25rem;
        margin-bottom: 3rem;
    }

    footer nav a {
        font-size: 0.65rem;
    }

    .copyright {
        font-size: 0.6rem;
    }

}