@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* colour palette


#558c8c - teal
#5B4E49 - brown
#1e1d1b - dark text
#fdf6ed - light
#f8f9fa - light grey
*/



/* Styles setup */
:root {
        --primary-font: "Open Sans", sans-serif;
        --secondary-font: "Poppins", sans-serif;
    --primary-color: #1e1d1b; /* dark text */
    --secondary-color: #558c8c; /* teal */
    --highlight-color: #5B4E49; /* brown */
    --highlight-color-light: #fdf6ed; /* light */
}

html {
    scroll-behavior: smooth; /* Enables smooth scrolling for anchor links */
} 

body {
    background-color: var(--highlight-color-light);
    font-family: var(--primary-font);
    min-height: 100vh;
    display: flex; /* usingg flexbox for layout */
    flex-direction: column;
}

/* Headings styles */
h1,
h2 {
    font-family: var(--secondary-font);
    font-weight: 600;
    color: var(--highlight-color);
}

.sub-heading {
    background-color: var(--secondary-color);
    border: none;
    font-family: var(--secondary-font);
    color: var(--highlight-color-light);
    border-radius: 0;
    padding: 0.5rem 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card {
    background-color: var(--highlight-color-light);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;

    /* make all the cards align height */
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-body {
    flex-grow: 1;
}

/* Hover effect for cards to make the site more responsive */
#effects .card:hover,
#coping .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/*navbar and used again in footer styles */
.navbar {
    background-color: var(--highlight-color-light);
    font-family: var(--secondary-font);
    font-weight: 600;
    /* Making navbar fixed to top */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Add padding to body to prevent content from hiding under fixed navbar */
body {
    padding-top: 56px;
}

.navbar .teal {
    color: var(--secondary-color);
    font-weight: 500;
}

.navbar .brown {
    color: var(--highlight-color);
    font-weight: 500;
}

/* Hero section styles */
#hero {
    width: 100%;
    overflow: hidden;
    position: relative;
}

#hero img {
    width: 100%;
    height: 10%;
    }

    /* Hero button styles */
#hero .btn {

    background-color: var(--secondary-color);
    border: none;
    font-family: var(--secondary-font);
    font-weight: 600;
}

#hero .btn:hover {

    background-color: var(--highlight-color);
    border: none;
    font-family: var(--secondary-font);
    font-weight: 600;
}

/* Links section styles */

#links .btn-outline-primary {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: var(--highlight-color-light);

    /* Ensuring buttons are uniform size, AI helped me with this */
    white-space: normal;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Hover effect for link buttons */
#links .btn-outline-primary:hover {
    background-color: var(--highlight-color-light);
    border-color: var(--highlight-color);
    color: var(--highlight-color);
}
/* Affirmations section was not visible with the footer */
#positive-affirmations {
    padding-bottom: 20px;
}


/* Giving people more time to read the text as it was too fast */
#positive-affirmations .carousel-item {
    transition: transform 6s ease-in-out;
}

/* Footer styles */
body > footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

/* Reusing navbar colours in footer */

body > footer .teal {
    color: var(--secondary-color);
    font-weight: 500;
}

body > footer .brown {
    color: var(--highlight-color);
    font-weight: 500;
}

/* Blockquote footers remain visible */
.blockquote-footer {
    position: static !important;
    color: #6c757d;
}




/*media queries for responsiveness */

/* Extra small devices (phones, less than 576px) were showing up with navbar on two lines */

@media (max-width: 320px) {
    .navbar-brand {
        font-size: 0.85rem;
    }
}

/* Extra large screens - full width navbar */
@media (min-width: 1200px) {
    .navbar .container {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Wider containers for sections */
    .container {
        max-width: 90%;
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    /* More spacing between cards - AI added this on my request */
    .row.g-4 {
        --bs-gutter-x: 3rem;
        --bs-gutter-y: 3rem;
    }

    #hero img {
        height: 10%;
    }
}