/* Google fonts import */
@import url('https://fonts.googleapis.com/css2?family=Bad+Script&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Asterix wildcard selector to override default styles added by the browser */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* General styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Generic project styles */
    color: #3a3a3a;
    font-family: 'Roboto', sans-serif;
}

/* Header some parts of this have been used from previous sessions, but all repurposed/customised and none copied */
header {
    background-color: #ffffff;
    padding: 0 1rem;
    position: fixed;
    z-index: 99;
    width: 100%;
    box-shadow: 0 2px 2px #3a3a3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* A tags within the header - copied from previous lesson */
header a {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-family: 'Bad Script', sans-serif;
    letter-spacing: 1px;
    color: #ADD8E6;
}

#logo {
    margin-left: 20px;
    margin-top: 20px;
}

/* Custom Nav Bar - copied from previous lesson */
#menu {
    margin-right: 20px
}

#menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

#menu li {
    margin-left: 20px
}

/* Customising the links */
#menu a {
    text-decoration: none;
    color: lightblue;
}

#menu a:hover {
    color: lightgray;
}

/* Highlight current active page - copied from previous lesson */
.active {
    border-bottom: 1px solid lightgray;
}

/* Hamburger for mobile customisation - copied from previous lesson */
.nav-menu {
    display: none;
}

.nav-menu-label {
    display: none;
}

.nav-menu-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: lightblue;
    margin: 5px 0;
    transition: 0.3s;
}

/* Main content */
main {
    background-color: lightblue;
    /* Make main elements take up any surplus space to push footer down */
    flex: 1 0 auto;
    padding-top: 70px;
}

/* Logo styling */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

#circular-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ADD8E6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Introductory text styling */
.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    font-family: 'Roboto', sans-serif;
    color: white;
}

.intro-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.intro-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Carousel styling */
.col-md-6 .carousel-item img {
    height: 300px;
    /* Remove distortion */
    object-fit: cover;
}

/* Adjust captions in carousel */
.col-md-6 .carousel-caption {
    padding: 8px;
}

.col-md-6 .carousel-caption h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.col-md-6 .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Customise buttons */
.col-md-6 .carousel-control-prev-icon,
.col-md-6 .carousel-control-next-icon {
    width: 25px;
    height: 25px;
}

/* Informative section styling */
.info-grid-section {
    padding: 3rem 0;
    background-color: lightblue;
}

.info-grid-section h2 {
    color: lightblue;
    margin-bottom: 2rem;
    font-family: 'Roboto', sans-serif;
}

.info-grid-section .row+.row {
    margin-top: 1.5rem;
}

.logo-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo-image {
    flex: 0 0 80px;
    margin-right: 1rem;
}

.logo-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 2px solid lightblue;
}

.logo-text {
    flex: 1;
}

.logo-text h3 {
    font-size: 1.2rem;
    color: lightblue;
    margin-bottom: 0.5rem;
}

.logo-text p {
    font-size: 0.9rem;
    color: lightblue;
    margin-bottom: 0;
}

/* Google maps styling */
.location-section {
    padding: 3rem 0;
    background-color: rgb(177, 216, 228);
    margin-top: 2rem;
}

.location-section .row {
    display: flex;
    flex-wrap: wrap;
}

.location-section .col-md-6 {
    position: relative;
    margin-bottom: 1.5rem;
    padding-top: 60px
}

.location-section .col-md-6 h2 {
    position: absolute;
    top: 15px;
    left: 15px;
    margin: 0;
    color: white;
    z-index: 1;
}

.location-section .col-md-6:first-child::after {
    content: "";
    position: absolute;
    top: 60px;
    left: 15px;
    right: 15px;
    bottom: 0;
    background-color: white;
    border-radius: 8px;
    z-index: -1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    display: block;
}

/* Store info styling */
.store-info {
    background-color: transparent;
    padding: 1.5rem;
}

.store-info p {
    color: white;
}

.store-info i {
    color: white;
    margin-right: 10px;
}

/* Contact form styling */
.contact-form {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form .form-label {
    color: lightblue
}

.contact-form .form-control,
.contact-form .form-select {
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.contact-form .btn {
    background-color: white;
    color: lightblue;
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn-hover {
    background-color: lightcyan;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.location-section .row {
    display: flex;
    flex-wrap: wrap;
}

.map-container iframe {
    width: 100%;
}

/* Photo and text sections for additional pages */
.photo-section {
    padding: 4rem 0;
}

.photo-section img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-height: 450px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.photo-section img:hover {
    transform: scale(1.02);
}

.photo-section h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-family: 'Roboto', sans-serif;
}

.photo-section p {
    color: white;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

/* Enquiry form styling for additional pages */
.enquiry-section {
    padding: 4rem 0;
    background-color: lightblue;
}

.enquiry-content {
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid white;
}

.enquiry-section h2 {
    color: white;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
}

.enquiry-section p {
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.enquiry-form .form-label {
    color: white;
    font-weight: 500;
}

.enquiry-form .form-control,
.enquiry-form .form-select {
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.enquiry-form .form-control:focus,
.enquiry-form .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.enquiry-form .btn {
    background-color: white;
    color: lightblue;
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.enquiry-form .btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Success page for forms styling */
.success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: lightblue;
    padding: 2rem;
}

.success-message {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.success-message i {
    font-size: 3rem;
    color: rgb(5, 210, 5);
    margin-bottom: 1rem;
}

.success-message h2 {
    color: lightblue;
    margin-bottom: 1rem;
}

.success-message p {
    color: black;
    margin-bottom: 1.5rem
}

.success-message .btn {
    background-color: lightblue;
    color: white;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
}

/* Footer */
/* Customised social media links - copied from previous lesson */
#social-media-links {
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: space-evenly;
    list-style-type: none;
}

#social-media-links i {
    font-size: 200%;
    padding: 5%;
    color: lightblue;
}

#social-media-links i:hover {
    color: lightgray;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    .nav-menu-label {
        display: block;
        cursor: pointer;
        padding-right: 20px;
    }

    #menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
    }

    #menu ul {
        flex-direction: column;
        padding: 1rem 0
    }

    #menu li {
        margin: 1rem 0;
        text-align: center;
    }

    .nav-menu:checked~#menu {
        display: block;
    }

    #circular-logo {
        width: 150px;
        height: 150px;
    }

    .intro-text h2 {
        font-size: 1.6rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .col-md-6 .carousel-item img {
        height: 200px
    }

    .carousel-caption h5 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }

    .logo-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .logo-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .col-md-5 {
        margin-bottom: 1.5rem;
    }

    .map-column,
    .contact-column {
        margin-bottom: 2rem;
    }

    .contact-column {
        margin-top: 0;
    }

    .alternating-section {
        padding: 2rem 0;
    }

    .enquiry-content {
        padding: 1.5rem
    }
}

@media screen and (max-width: 576px) {
    .col-md-6 .carousel-item img {
        height: 200px;
    }

    .carousel-caption {
        padding: 5px;
        bottom: 5px;
    }

    .carousel-caption h5 {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .carousel-caption p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}