/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Amarante&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Oswald:wght@200..700&display=swap");

/* Global Styles */
:root {
    --primary-font: "Amarante", sans-serif;
    --secondary-font: "Lato", sans-serif;
    --primary-color: #0b4f6c; /* deep teal / navy */
    --secondary-color: #7fb3d5; /* soft sky blue */
    --highlight-color: #ffffff; /* white */
    --highlight-color-light: #7a9fc2; /* light blue */
    --navbar-height: 64px; /* used to offset fixed navbar */
}

body {
    font-family: var(--primary-font);
}

html,
body {
    width: 100%;
    position: relative;
}

/* Hero image element */
#hero-image {
    height: 400px;
    width: 100%;
    background-image: url("../images/sand.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

#cover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem 1rem;
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    width: calc(100% - 2rem);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(11, 79, 108, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 5;
}

#header {
    margin-bottom: 2.5rem;
}

main {
    padding-top: 1rem;
}

.section {
    padding-top: calc(var(--navbar-height) + 1rem);
}

#affirmations {
    scroll-margin-top: calc(var(--navbar-height) + 0.75rem);
}

.logo {
    height: 40px;
    width: auto;
    display: inline-block;
}

h1,
h2,
h3 {
    font-family: var(--secondary-font);
    color: var(--primary-color);
}

.sub-heading-color {
    color: var(--primary-color);
    font-weight: 600;
}

/* Navbar */

#navbar {
    background-color: var(--secondary-color);
    z-index: 1030; /* ensure fixed navbar sits above page content */
}

#navbar .logo {
    height: 40px;
    width: auto;
    display: inline-block;
}

#navbar .navbar-brand,
#navbar .nav-link {
    color: var(--primary-color) !important;
}
#navbar .nav-link:hover {
    color: #063443 !important;
}

/* hero container (positioning context) */
#hero {
    width: 100%;
    position: relative;
}

/* Footer styling */

footer#contact {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 0; /* reduced vertical padding to make footer shorter */
    width: 100%;
}
footer#contact a {
    color: var(--primary-color);
}
footer#contact .social-links a {
    color: var(--primary-color);
    font-size: 1rem;
    margin-right: 0.5rem;
}

footer#contact .logo {
    height: 28px;
    width: auto;
}

footer#contact h2 {
    font-size: 1.5rem;
}
footer#contact h3 {
    font-size: 1rem;
}

/* Media queries */

/* Small screens and up */
@media screen and (min-width: 576px) {
    #cover-text {
        padding: 1.25rem 0.75rem;
        margin: 0.5rem;
        border-radius: 8px;
    }
    #services .card {
        margin-bottom: 1.25rem;
    }
    #services .col-12 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .carousel .carousel-item img {
        height: 40vh;
    }
}

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

@media screen and (min-width: 992px) {
    #header {
        margin-bottom: 4rem;
    }
    main {
        padding-top: 1.5rem;
    }
}

#affirmations-section {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}
@media screen and (min-width: 1200px) {
}

@media screen and (min-width: 1400px) {
}

.carousel {
    width: 100%;
}
.card-text {
    line-height: 1.6;
}
.card-text ul {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}
.card-text li {
    margin-bottom: 0.45rem;
}
.card-text p + ul {
    margin-top: 0.5rem;
}
.carousel .carousel-item img {
    width: 100%;
    height: 55vh;
    max-height: 700px;
    object-fit: cover;
}

/* Card hover */
.card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    will-change: transform;
}
.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(11, 79, 108, 0.12);
}
.card:active {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
        transform: none;
    }
}
