@import url("./colours.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
}

body {
    font-family: 'Libre Baskerville', serif;
    background-color: var(--petal-blush);
    color: var(--bark);
}

body, .main-container, .container {
    overflow-x: hidden;
    max-width: 100%;
}

.main-container {
    width: 100%;
}

.content-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Title of webpage */
.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
    background-color: var(--antique-cream);
    border-bottom: 1px solid var(--rose-hip);
}

.main-title {
    height: 400px;
    width: auto;
    object-fit: contain;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 20px;
}

.nav-link {
    font-family: 'Libre Baskerville', serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--bark);
    position: relative;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-link--active {
    opacity: 1;
}

.nav-link--active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 100%;
    height: 2px;

    background: linear-gradient(to right, transparent, var(--rose-hip), transparent);
}

/* Hamburger Menu for Mobile View */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.hamburger--open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger--open .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger--open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Page Titles */
.page-title {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    letter-spacing: 6px;
    text-align: center;
    width: 100%;
    margin-top: 60px;
}

.page-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 60%;
    margin: 0 auto 20px;
}

.divider-line-left {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--rose-hip));
}

.divider-line-right {
    flex: 1;
    height: 2px;
    background: linear-gradient(to left, transparent, var(--rose-hip));
}

.divider-ornament {
    font-size: 18px;
    color: var(--rose-hip);
    flex-shrink: 0;
}

/* Home page only */
/* Services */
.services-container {
    display: flex;
    justify-content: center;
    padding: 60px 40px;
    gap: 40px;
    align-self: center;
    width: 100%;
}

.service-card {
    flex: 1;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-title {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: 400;
    align-self: center;
    color: var(--bark);
    border-bottom: 1px solid var(--rose-hip);
}

.service-body {
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--bark);
}

/* Info */
.info-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 60px 40px;
    width: 75%;
    align-self: center;
}

.info-description {
    font-size: 18px;
}

.about-image {
    width: 280px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* FAQ Page only */
.faq-container {
    width: 60%;
    margin: 60px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--antique-cream);
    border: 1px solid rgba(var(--rose-hip-rgb), 0.3);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    border: none;
    background: none;
    cursor: pointer;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-family: 'Libre Baskerville', serif;
    font-size: 18px;
    color: var(--bark);
}

.faq-icon {
    font-size: 24px;
    color: var(--rose-hip);
    transition: transform 0.3s ease;
}

.faq-item--open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.faq-answer p {
    padding: 0 20px 20px;
    line-height: 1.6;
    color: var(--bark);
}

.faq-item--open .faq-answer {
    max-height: 300px;
}

/* Contact Page */
.contact-form-container {
    width: 55%;
    margin: 60px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-row {
    display: flex;
    gap: 20px;
}

.contact-form-row .contact-form-group {
    flex: 1;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--bark);
}

.contact-input {
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--rose-hip-rgb), 0.4);
    background-color: var(--antique-cream);
    color: var(--bark);
    outline: none;
    transition: border-color 0.2s ease;
    border-radius: 2px;
    width: 100%;
}

.contact-input:focus {
    border-color: var(--rose-hip);
}

.contact-textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-submit {
    align-self: flex-start;
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    letter-spacing: 2px;
    padding: 14px 32px;
    background-color: transparent;
    border: 1px solid var(--rose-hip);
    color: var(--bark);
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.contact-submit:hover:not(:disabled) {
    background-color: rgba(var(--rose-hip-rgb), 0.1);
}

.contact-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.contact-status {
    font-size: 14px;
    min-height: 20px;
}

.contact-status--success {
    color: #5a7a5a;
}

.contact-status--error {
    color: #a05050;
}

/* Footer */
.footer-container {
    margin-top: 40px;
    border-top: 1px solid #ddd;
    padding-left: 40px;
    padding-right: 40px;
    background-color: var(--lighter-bark);
    border-top: 1px solid var(--rose-hip);
}

/* Logos */
.footer-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 200px;
    width: auto;
    object-fit: contain;
}

/* Information + Map */
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.footer-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-info-logo {
    height: 200px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-info p {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--muted-rose);
}

.footer-map {
    flex: 1;
    min-width: 300px;
    align-self: center;
    margin-bottom: 20px;
}

.footer-map iframe {
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

/* Mobile View */
@media screen and (max-width: 768px) {
    .title-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 32px;
    }

    .service-card {
        max-width: 100%;
    }

    .page-title {
        font-size: 36px;
    }

    .info-description {
        font-size: 12px;
    }

    .hamburger {
        display: flex;
    }

    /* Dropdown navbar */
    .navbar {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        right: 20px;
        background-color: var(--antique-cream);
        border: 1px solid rgba(var(--rose-hip-rgb), 0.5);

        min-width: 180px;
        z-index: 100;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .navbar--open {
        display: flex;
    }

    .nav-link {
        padding: 10px 20px;
        font-size: 16px;
    }

    .nav-link:hover {
        background-color: #eee;
        opacity: 1;
    }

    .footer-container {
        padding: 30px 20px;
    }

    .footer-logos {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-logo {
        height: 140px;
        max-width: 80%; /* Shrinks i its bad */
        width: auto;
        object-fit: contain;
    }

    .footer-content {
        flex-direction: column;
    }

    .info-container {
        flex-direction: column;
    }

    .about-image {
        align-self: center;
        max-width: 350px;
    }

    .faq-container {
        width: 80%;
    }

    .footer-map {
        width: 100%;
        min-width: unset;
    }

    .nav-link--active::after {
        height: 1px;
    }

    .main-title {
        height: 250px;
    }

    .footer-info {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info-logo {
        height: 120px;
    }

}