/* CSS reset  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased; /* remove webkit styles */
}

/* Logo text styling */
.logo-text-style {
    display: inline-block;
}

.logo-text-style .the {
    font-weight: normal;
}

.logo-text-style .karmic-kanya {
    color: #B22222 !important; /* Red color for "Karmic Kanya" */
    font-weight: bold;
}

:root {
    --background-color: #FFF5E6; /* Lighter beige background */
    --highlight-color: #D4AF37; /* Golden highlight */
    --font-color: #4A4A4A;
    --card-color: #FFF9F0; /* Light warm card background */
    --headline-color: #B8860B; /* Darker golden */
    --light-beige: #F5DEB3;
    --light-ochre: #DEB887;
    --medium-ochre: #DAA520;
    --input-field: #fff; 
  }  

html {
    scroll-behavior: smooth;
}

/* Nav bar */
header {
    height: 100px;
    position: relative;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--headline-color);
    margin: 2px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 99;
        border-bottom: 1px solid var(--headline-color);
        display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link {
        margin: 15px 0;
        font-size: 18px;
    }
}

/* Background colour  */
body {
    background-color: var(--background-color);
}

/* div container styles  */
.container {
    width: min(80%, 1440px); /* width will be 80% or 1440px max */
    margin: auto; /* center container */
    min-height: 100vh; 
    position: relative; /* needed to position footer at bottom of page */
}

.content-wrap {
    padding-bottom: 150px; /* footer height */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'PT Serif', serif;
    font-weight: bold;
    border-bottom: 1px solid var(--headline-color);
}

/* logo styling */
.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 100px;
    width: auto;
    object-fit: contain;
}

/* style for nav links list  */
.nav-links {
    list-style: none;
    display: none;
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
    }
    
    .nav-link {
        margin: 0 0 0 60px;
        font-size: 24px;
    }
}

/* styles for active page highlight in nav bar */
.active-page {
    text-decoration: underline;
    text-decoration-color: var(--headline-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 10px;
}

/* remove nav link text decoration  */
nav a {
    text-decoration: none;
    color: var(--headline-color);
}

/* landing content formatting  */
main {
    margin: 0 0 75px 0; /* bottom margin for space at end of context */
}

/* landing h1 style  */
h1 {
    font-size: 48px;
    font-style: italic;
    font-weight: bold;
    color: var(--headline-color);
    font-family: 'PT Serif', serif;
}

.intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 125px 0; /* margin to give space at top/btm of landing content */
}

/* landing paragraph styling  */
.landing-paragraph {
    font-size: 20px;
    font-family: 'PT Sans', sans-serif;
    max-width: 100%;
}

/* Set all paragraphs to justified alignment for a more polished look */
p {
    text-align: justify;
}

/* Center alignment for brand signoff */
.brand-signoff {
    text-align: center;
}

/* positioning for landing text - h1 and paragraph */
.landing-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 80%;
}

/* decorative line break */
.line-break {
    width: 40px;
    height: 4px;
    background-color: #7A5E40;
    border: none;
    border-radius: 2px;
    margin: 20px 0 25px 0;
}

/* primary CTA button */
.primary-cta {
    background-color: var(--highlight-color);
    color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 22.5px;
    height: 45px;
    text-align: center;
    text-decoration: none;
    font-family: 'PT Sans', sans-serif;
    font-size: 19px;
    font-weight: bold;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease; /* enlarge CTA button on hover */
}

.primary-cta:hover {
    transform: scale(1.05); /* enlarge CTA button on hover */
}

/* secondary CTA button */
.secondary-cta {
    background-color: var(--background-color);
    color: var(--headline-color);
    border: 1px solid var(--headline-color);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 22.5px;
    height: 45px;
    text-align: center;
    text-decoration: none;
    font-family: 'PT Sans', sans-serif;
    font-size: 19px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease; /* enlarge CTA button on hover */
}

.secondary-cta:hover {
    transform: scale(1.05); /* enlarge CTA button on hover */
}

/* style for "Get started" primary CTA */
.get-started {
    width: 165px;
    margin-top: 20px;
}

/* style for "Learn more" secondary CTA */
.learn-more {
    width: 165px;
    margin: 20px 0 0 10px;
    font-weight: normal;

}

.landing-cta-wrapper {
    display: flex;
}

.cta-container {
    display: flex;
    justify-content: center;
}

h2 {
    font-size: 40px;
    font-style: italic;
    font-weight: bold;
    color: var(--headline-color);
    font-family: 'PT Serif', serif;
    text-align: center;
}

/* decorative line break */
.h2-line-break {
    margin: 20px auto 35px; /* spacing above/below line break */
}

/* Founder photo section styling */
.founder-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 50px;
    max-width: 600px;
}

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

.founder-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0px 4px 22px rgba(0, 0, 0, 0.25);
    object-fit: cover;
}

.founder-caption {
    margin-top: 15px;
    font-family: 'PT Sans', sans-serif;
    font-size: 18px;
    text-align: center;
    color: var(--font-color);
}

/* Media query for founder image on smaller screens */
@media (max-width: 768px) {
    .founder-image {
        max-width: 300px;
    }
    
    .founder-caption {
        font-size: 16px;
    }
}

/* card for main content on home/about */
.why-bliss-card {
    background-color: var(--card-color);
    height: 525px;
    border-radius: 45px;
    border: none;
    box-shadow: 0px 4px 22px rgba(0, 0, 0, 0.25);
    display: flex;
    font-family: 'PT Sans', sans-serif;
    font-size: 24px;
    color: var(--font-color);
    align-items: center;
    justify-content: space-evenly;
    padding: 0 50px;
}

.why-bliss-card img {
    max-width: 50%; /* width of images on card */
}

.why-bliss-paragraph {
    margin: 0 20px;
}

/* decorative line joining cards */
.dotted-line {
    width: 170px;
    border: none;
    border-top: 5px dotted var(--headline-color);
    transform: rotate(90deg);
    margin: 85px auto; /* controls vertical spacing between cards */
}

/* decorative line break above newsletter */
.newsletter-line-break {
    margin: 50px auto 35px;
}

/* text above newsletter input */
.newsletter-container .landing-paragraph {
    text-align: center;
    margin: auto;
    width: 60%;
    margin-bottom: 20px;
}

/* style for input and button in newsletter */
.newsletter-form {
    display: flex;
    justify-content: center;
}

/* styles for text input fields */
.text-field {
    color: #707070;
    background-color: var(--input-field);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 22.5px;
    height: 45px;
    border: none;
    padding-left: 22.5px;
    font-family: 'PT Sans', sans-serif;
    font-size: 16px;

}

/* email input field for newsletter */
.newsletter-email {
    width: 325px;
}

/* CTA for newsletter submit */
.newsletter-cta {
    width: 150px;
    margin-left: 10px;
    -webkit-appearance: none;
}

/* footer social link */
.social-link-button {
    width: 40px;
}

/* adds spacing between social links */
.footer-social-link:not(:last-child) {
    margin-right: 20px;
}


.page-footer {
    border-top: 1px solid var(--headline-color);
    height: 100px; /* controls footer height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    position: absolute; /* needed to keep footer at btm of page */
    width: 100%;
    bottom: 0; /* needed to keep footer at btm of page */
}

/* styles for graphic in landing/intro */
.landing-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-graphic img {
    width: 60%; /* controls img width in intro section */
    max-width: 500px; /* limit maximum size */
    height: auto; /* maintain aspect ratio */
}

/* Style for founder image in landing section */
.landing-graphic .founder-image-container {
    position: relative;
    width: auto;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    background-color: var(--background-color);
    border-radius: 50%;
    overflow: hidden;
    padding: 10px;
    border: 15px solid var(--highlight-color);
    box-shadow: 0px 0px 15px var(--highlight-color);
}

.landing-graphic .founder-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    object-fit: contain;
    border-radius: 50%;
    background-color: var(--background-color);
}

@media (max-width: 768px) {
    .landing-graphic .founder-image-container {
        max-width: 300px;
    }
    
    .landing-graphic .founder-image {
        max-width: 300px;
    }
}

.landing-intro {
    flex: 1;
}

.contact-form-container {
    margin-top: 20px;
}

/* flex container for contact form inputs */
.input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-name-email {
    flex: 1; /* makes name and email contact form inputs equal width */
}

.contact-paragraph {
    width: 100%;
    margin: 20px 0;
    height: 250px;
}

.contact-cta {
    margin-top: 20px;
}

/* styles for contact form textarea input */
textarea {
    color: #707070;
    opacity: 1;
    font-family: 'PT Sans', sans-serif;
    padding: 22.5px;
    font-size: 16px;
}

h3 {
    font-size: 32px;
    font-style: italic;
    font-weight: bold;
    color: var(--headline-color);
    font-family: 'PT Serif', serif;
    text-align: center;
    margin: 60px auto 0;
}

/* style for top left nav logo */
.logo a {
    text-decoration: none;
    color: var(--headline-color);
}

/* cta style for the contact form */
.contact-cta {
    width: 100%;
    -webkit-appearance: none;
}

.landing-intro {
    display: flex;
    flex-direction: column;
}

/* container for each category of exercises */
.exercises-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

/* exercise cards on exercises page */
.exercise-card {
    border-radius: 20px;
    overflow: hidden;
    flex: 1 1;
    box-shadow: 3px 3px 12px 4px rgba(0, 0, 0, 0.25);
    background-color: var(--card-color);
    position: relative;
    transition: transform 0.3s ease;
}

.exercise-card:hover {
    transform: scale(1.03); /* make card bigger on hover */

}

/* hero image for each exercise card */
.exercise-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

/* dark overlay to make text on exercise card readable */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
}

/* text inside exercise cards */
.exercise-card-paragraph {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    font-family: 'PT Sans', sans-serif;

}

/* target top group of exercises and provide margin below for spacing */
.exercises-group:nth-of-type(2) {
    margin-bottom: 60px;
}

/* embedded video on exercises page */
.exercise-video {
    min-width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* btn to bring users back to exercises page */
.exercise-back-btn {
    text-decoration: none;
    font-family: 'PT Sans', sans-serif;
    font-weight: bold;
    margin: 30px 0;
    display: inline-block;
    color: var(--headline-color);
    font-size: 18px;
}

/* container for exercise content, video + description */
.exercise-content {
    margin: 0;
    box-shadow: 0px 4px 22px rgba(0, 0, 0, 0.25);
    border-radius: 0 0 10px 10px;
}

/* text description under exercise video */
.exercise-content-description {
    border: none;
    font-family: 'PT Sans', sans-serif;
    font-size: 18px;
    padding: 10px 15px;
}

/* Services page styles */
.services-content {
    margin: 0 auto;
    max-width: 1000px;
}

.service-card {
    background-color: var(--card-color);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0px 4px 22px rgba(0, 0, 0, 0.15);
}

.service-card h2 {
    color: var(--headline-color);
    font-size: 28px;
    margin-bottom: 15px;
    text-align: left;
}

.service-card p {
    color: var(--font-color);
    font-family: 'PT Sans', sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

.booking-section {
    text-align: center;
    margin: 50px 0;
}

.booking-button {
    width: 200px;
    margin: 0 auto;
}

/* Instagram section styles */
.instagram-section {
    margin: 75px 0;
    text-align: center;
}

.instagram-container {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    max-width: 540px;
    width: 100%;
}

@media (max-width: 768px) {
    .instagram-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .instagram-media {
        min-width: 280px !important;
    }
}

/* Media queries for services page */
@media (max-width: 768px) {
    .service-card {
        padding: 20px;
        margin: 15px 0;
    }

    .service-card h2 {
        font-size: 24px;
    }

    .service-card p {
        font-size: 16px;
    }
}

/* MEDIA QUERIES */

/* 1200px */
@media (max-width: 1200px) {
    h1 {
        font-size: 38px;
    }

    .landing-paragraph {
        font-size: 16px;
    }
}

/* 1024px */
@media (max-width: 1024px) {
    .why-bliss-card {
        font-size: 18px;
    }

    .exercise-card-paragraph {
        font-size: 18px;
    }
}

/* 955 px */
@media (max-width: 955px) {

    /* Center alignment for specific elements only, not all body text */
    h1, h2, h3, .landing-cta-wrapper {
        text-align: center;
    }
    
    /* Set paragraphs to justified alignment for a more polished look */
    p {
        text-align: justify;
    }

    .intro {
        flex-direction: column;
    }

    .line-break {
        margin: 20px auto 25px;
    }

    .landing-cta-wrapper {
        justify-content: center;
    }

    main {
        margin: 75px 0;
    }

    .landing-graphic img {
        width: 70%;
        margin-top: 40px;

    }

    .nav-link {
        margin: 0 0 0 30px;
        font-size: 20px;
    }

    .landing-intro {
        align-items: center;
    }

    .landing-text {
        max-width: 90%;
    }
}

/* 768px */
@media (max-width: 768px) {
    main {
        margin: 50px 0;
    }

    .intro {
        margin: 5px 0; /* Minimized margin for mobile screens */
    }

    .landing-graphic img {
        width: 70%;
        margin-top: 0; /* Removed top margin completely */
    }

    main {
        margin: 20px 0; /* Further reduced main margin */
    }

    .logo-image {
        height: 50px;
    }

    .why-bliss-card {
        height: auto;
        border-radius: 20px;
        box-shadow: 0px 4px 22px rgba(0, 0, 0, 0.25);
        flex-direction: column;
        font-size: 14px;
        padding: 15px;
    }

    .why-bliss-card img {
        width: 50%;
        margin-bottom: 10px;
    }

    .why-bliss-card:nth-of-type(2) {
        flex-direction: column-reverse;
    }

    .dotted-line {
        width: 100px;
        border-top: 5px dotted var(--headline-color);
        transform: rotate(90deg);
        margin: 50px auto;

    }

    h2 {
        font-size: 24px;
    }

    .newsletter-container .landing-paragraph {

        width: 90%;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-email {
        width: 100%;
        max-width: 325px;
        margin-bottom: 10px;
    }

    .newsletter-cta {
        margin: 0;
    }

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

    .contact-name-email {
        flex-basis: 100%; /* make inputs full width at 768px and below */
    }
}

/* 625px */
@media (max-width: 625px) {
    
    /* stacks landing content vertically on smaller screens */
    .landing-cta-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .learn-more {
        margin-left: 0; /* removes left margin from cta when stacked on smaller screens */
    }
}

/* 390px */
@media (max-width: 390px) {
    
    /* resize nav elements on smaller screens */
    .nav-link {
        margin: 4px;
        font-size: 12px;
    }

    .logo-image {
        height: 35px;
    }
}
