/*Google Fonts Import*/

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/*Removes some browser default styles*/

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

:root {
    
    --primary-background: #FFEEDB;
    --secondary-background: #FFD4A3;
    --primary-accent: #F2994A;
    --secondary-accent: #D37B5E;
    --dark-text: #4A4A4A;
    --light-text: #FFFFFF;
}

body {
    background-color: var(--primary-background);
    color: var(--dark-text);
    font-family: "Roboto", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text);
}

p {
    color: var(--dark-text);
}

a {
    color: var(--primary-accent);
}

a:hover {
    color: var(--secondary-accent);
}

.secondary-text {
    color: var(--light-text);
}

.warning {
    color: var(--secondary-accent);
}

.button-primary {
    background-color: var(--primary-accent);
    color: var(--light-text);
}

.button-secondary {
    background-color: var(--secondary-accent);
    color: var(--light-text);
}

/*Navbar styling*/

.navbar {
    width: 100%;
    height: 10vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--primary-accent);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.navbar a, .navbar-content ul li a, .navbar .home-btn {
    color: var(--light-text);
    text-decoration: none;
}

.navbar-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--light-text);
}

.navbar-content {
    display: none;
    width: 100%;
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: row;
}

.navbar a {
    display: block;
    padding: 10px;
    text-decoration: none;
}

.navbar label {
    font-family: "Lora", serif;
    font-size: 24px;
    display: block;
    cursor: pointer;
    padding: 10px 0 10px 50px;
    width: 150px;
    position: absolute;
    top: 0px;
    right: -40px;
}



#collapse:checked ~ .navbar-content {
    background-color: var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    position: absolute;
    top: 10vh;
    left: 0;
    width: 100%;
    height: auto;
}

#collapse:checked ~ .navbar {
    height: auto;
} 

#collapse {
    display: none;
}

.home-btn {
    font-size: 24px;
    position: absolute;
    top: 5px;
    color: var(--secondary-accent);
    left: 20px;
}

.nav-btn {
    margin: 10px 0 10px 9px;
    background-color: var(--secondary-accent);
    width: 200px;
    color: var(--dark-text);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

/* Hero Section Styles */

#hero {
    background: url(../images/hero2.webp) no-repeat center center / cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.8); /* Dark Overlay */
    padding: 20px;
    margin-top: 10vh;
}

#hero .container {
    max-width: 100%;
}

#hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

#hero p {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--light-text);
}

/* Main Body Styles */

#what {
    padding: 40px 20px;
    text-align: center;
}

#what h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.what-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.what-text {
    max-width: 800px;
    text-align: left;
    line-height: 1.5;
}

.what-text, .what-image {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
}

.what-image img {
    width: 600px;
    height: 400px;
    max-width: 100%;
    border-radius: 5px;
}

/* Principles Section */

.principles-section {
    padding: 40px 20px;
    text-align: center;
}

.principles-section h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

/* Stack content into single column for mobile */

.principles-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: auto 10px;
}

.principles-text-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.principles-text-content ol {
    margin-top: 10px;
    line-height: 1.5;
}

.principles-text-content ol li {
    margin: 5px auto;
}

/* Image gallery Styling*/

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-img {
    width: 100%;
    max-width: 100%;
    border-radius: 5px;
}

.principles-img2,
.principles-img3 {
    display: none;
}

/* Identify Page Styles */

.identify-section {
    padding: 3rem 0;
    background-color: var(--primary-background);
    margin-top: 50px;
}

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

.identify-text {
    display: flex;
    gap: 2rem;
    flex-direction: column;
}

.identify-content {
    display: flex;
    flex-wrap: wrap;
}

.identify-text, .identify-img {
    flex: 1 1 100%;
}

.identify-text p {
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 1rem;
    color: var(--dark-text);
}

.identify-img {
    display: flex;
    justify-content: center;
}

.identify-img-content {
    width: 50%;
    height: auto;
    min-height: 300px;
    border-radius: 8px;
}

/* Respond Section Styling */

.respond-section {
    padding: 2rem 1rem;
    background-color: var(--primary-background);
}

.respond-container {
    max-width: 1400px;
    margin: 0 auto;
}

.respond-paragraph {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.respond-content {
    display: flex;
    flex-direction: column;
}

.respond-text {
    width: 100%;
}

.respond-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark-text);
}

.respond-text ol {
    padding-left: 1rem;
    margin: 1rem 0;
}

.respond-image {
    width: 100%;
    display: flex;
    margin: auto 20px;
}

.respond-image1,
.respond-image2,
.respond-image3 {
    width: 30%;

    height: auto;
    border-radius: 8px;
    margin: auto 10px 1rem 10px;
}

/* Resources Page Styling */

#resources-section {
    padding: 2rem 1rem;
    background-color: var(--secondary-background);
    color: var(--dark-text);
    margin-top: 50px;
}

.resources-container {
    max-width: 1200px;
    margin: 0 auto;
}

.resources-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.resources-lead {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--dark-text);
}

.resources-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-card {
    background-color: var(--primary-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} 

.resource-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.resource-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.resource-card p {
    margin: 0;
}

.resource-card a {
    text-decoration: none;
}

/* Report Page Styling */

.form-container {
    max-width: 600px;
    margin: 80px auto 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--secondary-background);
}

#form-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

.radio-group, .checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.radio-group label, .checkbox-group label {
    font-weight: normal;
}

.invalid-feedback {
    color: #d9534f;
    font-size: 0.875em;
    display: none;
}

input:invalid + .invalid-feedback {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--secondary-accent);
    color: var(--light-text);
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
}

.submit-button:hover {
    background-color: var(--primary-accent);
}

/* Success Page Styles */

.success-message {
    text-align: center;
    padding: 20px;
    margin-top: 75px;
}

.success-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.success-text {
    font-size: 1.25rem;
    color: var(--dark-text);
    margin-bottom: 20px;
}

/* Footer Styles */

footer {
    text-align: center;
    background-color: var(--secondary-background);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h5 {
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: var(--dark-text);
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 10px;
}



/*Media Queries*/

/*Laptop screens (768px and up)*/

@media only screen and (min-width: 768px) {

    /* Navbar Styling */

    .navbar {
        height: 10vh;
        position: fixed;
    }

    .navbar .navbar-content {
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 100px;
    width: 80%;
    height: auto;
    z-index: 100;
    }

    .navbar .navbar-toggle {
        display: none;
    } 
    
    .navbar .navbar-content ul {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        padding: 0;
        margin: 10px;
        width: auto;
    }

    .navbar .navbar-content ul li {
        display: flex;
        align-items: center;
        margin: 0 10px;
    }

    .navbar .navbar-content ul li a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        width: 100%;
        color: var(--light-text);
        font-size: 1.2rem;
    }

    .navbar .navbar-content .nav-btn {
        margin-left: 20px;
    }    

    /* Hero Section Styling */

    #hero .container {
        max-width: 800px;
    }

    #hero h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    #hero p {
        font-size: 1.25rem;
        line-height: 1.6;
    }

    /* What is Safeguarding Styles */

    .what-content {
        flex-direction: row;
        align-items: stretch;
        text-align: left;
    }

    .what-text {
        flex: 1;
        padding: 20px;
    }

    .what-image {
        height: 100%;
        width: 100%;
        max-height: 500px;
    }

    /* Principles Styling */

    .principles-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .principles-text-content, .image-gallery {
        flex: 1;
    }

    .image-gallery {
        flex-direction: column;
        justify-content: space-between;
    }

    .identify-section {
        padding: 3rem 2rem;
    }

    .identify-text {
        gap: 2rem;
    }

    .identify-text p {
        font-size: 1.1rem;
    }

    .principles-img2,
    .principles-img3 {
        display: flex;
    }

    .principles-img1,
    .principles-img2,
    .principles-img3 {
        height: 40%;
        width: 100%;
        max-height: 40%;
    }

    /* Respond Section */

    .respond-section {
        padding: 3rem 2rem;
    }

    .respond-paragraph {
        gap: 2rem;
    }

    .respond-text p {
        font-size: 1.1rem;
    }
    .respond-image {
        display: block;
    }

    /* Resources Styles */

    .resources-cards {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .resource-card {
        flex: 1 1 calc(50% - 1rem);
    }

    .resources-title {
        font-size: 2rem;
    }

    .resources-lead {
        font-size: 1.1rem;
    }

}

/* Desktop Screens (> 992px) */

@media only screen and (min-width: 992px) {

    .what-image {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
    }

    .identify-content {
        flex-direction: row;
        gap: 2rem;
    }

    .identify-text, .identify-img {
        width: 50%;
    }

    .identify-text p {
        margin-bottom: 1.5rem;
    }

    .identify-section {
        padding: 4rem 2rem;
    }

    /* Principles Section */

    .principles-img3 {
        display: none;
    }

    /* Identify Section */

    .identify-img {
        display: flex;
        justify-content: center;
    }

    .identify-img-content {
        width: 50%;
        height: auto;
    }

    /* Respond Section */

    .respond-content {
        flex-direction: row;
        gap: 2rem;
    }

    .respond-text,
    .respond-image {
        width: 50%;
    }

    .respond-section {
        padding: 4rem 2rem;
    }

    .respond-text p {
        margin-bottom: 1.5rem;
    }

    .respond-image1,
    .respond-image2,
    .respon-image3 {
        width: 100%;
    }

    /* Resources Section */

    .resources-title {
        font-size: 2.2rem;
    }

    .resources-lead {
        font-size: 1.2rem;
    }

    .resource-card {
        padding: 2rem;
        flex: 1 1 calc(33.33% - 1rem);
    }
}

/* Wider Desktops (> 1200px) */

@media only screen and (min-width: 1200px) {

    .identify-container {
        max-width: 1400px;
    }

    .identify-text p {
        font-size: 1.2rem;
        line-height: 1.8;
    }

    .identify-section {
        padding: 5rem 3rem;
    }

    .identify-img-content {
        border-radius: 12px;
    }

    /* Respond Section */

    .respond-section {
        padding: 5rem 3rem;
    }

    .respond-container {
        max-width: 1200px;
    }

    .respond-text p {
        font-size: 1.2rem;
        line-height: 1.75;
    }

    /* Resources Section */

    #resources-section {
        padding: 3rem 1rem;
    }

    .resources-title {
        font-size: 2.5rem;
    }

    .resources-lead {
        font-size: 1.3rem;
    }

    .resource-card {
        padding: 2.5rem;
    }
}

/* Extra  Screens (> 1400px) */

@media only screen and (min-width: 1400px) {
    .principles-img2 {
        display: none;
    }
}